Hi Antonio, > Scrive Antonio Bleile <[EMAIL PROTECTED]>: > >> Hi, >> >> I'm trying to use the calcVertexNormals function in order >> to regenerate my surface normals. I first try to share all >> possible vertices, then I run calcVertexNormals on the >> geometry node (see the "calc" method below). The problem is >> that not all normals are updated after a first run. If I >> recall the "calc" method a second time, all normals are >> finally updated. I can't see what the problem is... >> > > Some more info perhaps.... > > Here's the osglog for the first time I run the traverse: > > INFO: Create sharedIndex: 0/3 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > > And here for the second run (on the same node!): > > INFO: Create sharedIndex: 0/1 pass; data/index remap: 8081/1447 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 4635/118 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 2/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 2/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 2/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 2/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > INFO: Create sharedIndex: 0/1 pass; data/index remap: 0/0 > INFO: Create sharedIndex: 1/2 pass; data/index remap: 3/0 > > > What does it mean?
the createSharedIndex() implementation is buggy actually it finds not all identical elements in the geometry's properties! I wrote my own GraphOp for the single indices case. We really need to fix this function but that's quite complicated. Andreas ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
