Forum: Poser - OFFICIAL


Subject: Just curious....Why don't people optimize thier files?

ScottA opened this issue on Oct 15, 2002 ยท 36 posts


Spanki posted Wed, 16 October 2002 at 6:05 AM

Steve, I'm not sure that I follow you completely, but here's the deal... Poser does not use the Normal vertex lines from the .obj file (the lines that start with 'vn '). Instead, it calculates the normals. The way that it calculates them is based on the ordering of the vertices that make up the polygon... This ordering information is stored in the .obj file in the facet lines (the ones that start with 'f '). There are multiple formats for the facet lines, so you might see any of the following: f v v v ... f v/t v/t v/t ... f v//n v//n v//n ... f v/t/n v/t/n v/t/n v/t/n ... ...where 'v' is an index into the Vertex array, 't' is an index into the Texure (UV) coordinate array and 'n' is an index into the Normal vertex array. Note that if there are no texture coordinates, the center value is left out, but the extra slash remains. So... using the simplest example above where there are no normals and no texture coordinates, here's an example of what a triangle might look like: f 1 2 3 ...so when the software computes the normal for that triangle, it uses the first then second then third vertices in it's calculations. When you 'flip' a polygon (or 'Reverse Winding Order' in UVMapper export options), you are re-arranging the vertex order so it then looks like this: f 3 2 1 ...now the normal computation comes out opposite, so the polygon is 'facing' the opposite direction. Note that this is true whether or not there are Normals present in the .obj file, since Poser ignores those and computes it's own normals, based on the vertex ordering. So, if your entire mesh looks inside out, you can either export it with UVMapper with the 'Reverse Winding Order' box selected, or you can import it into Poser with the 'Reverse Normals' option checked and then re-save it. If you just have some polygons facing the wrong way, then you'll need to select and flip them using some feature of your modeling program... OR, you can try importing it into Poser with the 'Make Normals Consistent' option checked - but that doesn't always work. Does that make sense? - Keith

Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.