GGGggreetings, i’m working with VRML 1.0 files, and it seems some normals are not going the right way, so instead of “viewing” the front side i see the back side, so it screws up the lighting when i display them with OpenGL.
those files were made with blender, is there a way to correct that problem?
ok, i managed to edit one VRML files (i got a few mores to do… BUT, it seems even worse after i did what you said… i’m confused, i don’t understand why it doesn’t correct the problem… can it be related to the orientation the points were done? is there a way to invert some vertex orientation?
example: triangle has been defined with points 1,2,3, and they are clockwise, but i need them ther other way around like they would been declared 1,3,2.
is there a fast way to do that? and only on vertexes that were defined in bad orientation?
Perhaps then you have a non-manifold mesh ie 3 or more faces attached to one edge. If this is the case a program can’t decide which is the inside and outside of your object. In blender you can draw the normals of an object and see which way they are pointing and flip them if necessary. If worse comes to worse post your blend file so people can have a look at what the problem might be.
i gotta display the VRML files in a c++ application using OpenGL. all the display is done. But like i said the normals aren’t good. In Blender if i remove the double sided option in edit mode, it appears the same way i manage to display it with my application. if someone knows the OpenGL function i gotta use to use the double sided directly in my application it would be awesome!
is there a way to select a whole groups of triangles to flip their normals? because cheking a whole bunch of polygons is very long. i know there’s some pointing out of the mesh and some pointing in… so i’d like to choose every triangles that their normals point inside the polygon and flip their normal.
Yes you can select multiple faces and then flip them. While in edit mode Ctrl-tab will give you a popup where you can set the select mode to faces. Hold down the shift key while selecting to add more faces to your selection.