From: Aron Bartle (abartle++at++vrco.com)
Date: 01/24/2005 12:31:24
Hi Performers,
I'm having some issues with performer loading an .iv file with
IndexedFaceSets. I attached a stripped down version of the model to this
email.
1) Performer does not seem to respect the vertex ordering requested in
the .iv file. It ignores the vertexOrdering shape hints, and
subsequently gets the front/back facing wrong unless I hand-edit the
coordIndex list to reverse the order of each prim (in between the -1's).
2) It decides to render them with FLAT_TRISTRIPS instead of normal TRIS.
Because of this (I think???) I get washed-out colors on the back side
(what should be the front!) even with 2-sided lighting enabled.
Does anyone else have this problem? Any workaround *besides* reordering
everything inside the coordIndex arrays???
I'm running on IRIX 6.5, and Perf 3.2 seems to have this issue as well.
Try loading the model in perfly and you'll see.
Thanks!
-Aron
#VRML V1.0 ascii
Separator {
Transform {
translation 0 0 0
rotation 0 0 0 0
scaleFactor 1 1 1
}
ShapeHints {
vertexOrdering CLOCKWISE
}
Separator {
Material { #darkred
ambientColor 0.9 0.0 0.0
specularColor 0.0 0.0 0.0
diffuseColor 0.9 0.0 0.0
shininess 0.0
}
Coordinate3 {
point [ -2.88007 6.62271 2.73165,-1.92005 6.62271 1.90763,-1.92005 6.21782 1.90763,
-2.88007 6.21782 2.73165,-1.91993 6.21782 -2.51933,-1.91993 6.62271 -2.51933,
1.92007 6.62271 -2.51922,2.87967 6.62271 12.45951,2.87993 6.62271 2.7318,-2.88033 6.62271 12.45936,
1.91995 6.62271 1.90773,1.91995 6.21782 1.90773,1.92007 6.21782 -2.51922,-2.88033 6.21782 12.45936,
2.87967 6.21782 12.45951,2.87993 6.21782 2.7318,-0.95993 6.21782 -2.52333,0.96007 6.21782 -2.52328,
6.600000e-005 6.21782 -2.52733, ]
}
IndexedFaceSet {
coordIndex [ 3,2,1,0,-1,6,5,4,-1,9,0,8,7,-1,12,11,10,6,-1,13,3,0,9,-1,10,1,5,6,-1,
2,4,5,1,-1,15,14,7,8,-1,14,13,9,7,-1,18,17,12,6,4,16,-1,11,15,8,10,-1,1,10,8,0,-1,
]
}
}
Separator {
Material { #brown
ambientColor 0.2 0.2 0.2
specularColor 0.3 0.3 0.3
diffuseColor 0.2 0.2 0.2
shininess 0.25
}
Coordinate3 {
point [ -1.70777 1.85928 14.58873,1.70728 1.85928 14.58882,2.97145 1.85928 13.48271,
-2.97216 1.85928 13.48255,2.0012 1.85928 -15.32074,2.09439 1.85928 -9.13028,
5.10792 1.85928 -2.93975,5.944 1.85928 -15.32063,5.85775 1.38425 -15.82043,
-5.85692 1.38425 -15.82074,-5.9432 1.85928 -15.32095,-2.00039 1.85928 -15.32084,
5.94325 1.85928 13.48279,5.10751 1.85928 12.46237,3.37154 2.23026 29.27854,
-3.37308 2.23026 29.27836,-9.100000e-004 2.41575 34.59449,-2.96663 1.85928 18.6463,
-5.94396 1.85928 13.48247,-5.49055 1.85928 18.64623,-5.10817 1.85928 12.4621,
1.70471 1.85928 17.54028,2.96695 1.85928 18.64645,-1.70461 1.85928 17.54019,
5.48957 1.85928 18.64652,-2.09391 1.85928 -9.13039,-5.10776 1.85928 -2.94002,
-5.75872 0.84444 -21.92571,-5.85676 1.38425 -21.59316,5.8579 1.38425 -21.59285,
5.75988 0.84444 -21.92541,4.77254 2.04477 23.96254,-4.7738 2.04477 23.96228,
5.76007 0.84444 -29.38479,-5.75853 0.84444 -29.38509, ]
}
IndexedFaceSet {
coordIndex [ 3,2,1,0,-1,7,6,5,4,-1,7,4,11,10,9,8,-1,13,12,2,-1,16,15,14,-1,19,18,3,17,-1,
12,13,6,7,-1,18,20,3,-1,2,22,21,1,-1,17,3,0,23,-1,22,2,12,24,-1,26,10,11,25,-1,
30,29,28,27,-1,15,32,31,14,-1,32,19,17,22,24,31,-1,30,27,34,33,-1,8,9,28,29,-1,
20,18,10,26,-1,22,17,23,21,-1, ]
}
}
}
This archive was generated by hypermail 2b29 : Mon Jan 24 2005 - 12:31:40 PST