View Full Version : ge2 normal problems
02-14-2004, 04:32 PM
I am loading a ge2 file exported from maya. I am loading a sphere among other objects, and have a problem with the normals. Here is a pic to show the problem.
Is this problem related to the ge2 file format, because there is no reason that this should be happening?
02-15-2004, 11:03 AM
are you sure your normals are normalized
(0.0 to 1.0)?
02-15-2004, 11:20 AM
Yes, they are normalized.
02-15-2004, 12:22 PM
I found, that I've got similar artifacts with model , where I had normals pointing INWARDs (to the invisible center of object),
but I don't know if it can be similar or how can it happen during export (my model originated in 3d studio,but I exported it into pure gl c code)(but I would trust maya doing things right)
i wasn't able to download ge2 opengl loader,
cause that codeproject.com seems stucked for me, but I'll try do it later.
[This message has been edited by tachyon_eagle (edited 02-15-2004).]
02-15-2004, 04:50 PM
No, I tried to reverse the normals and that didn't help (it made it much worse). Half of the triangles on the top half of the sphere are correct, however the other half of the top and the whole bottom are flipped (as in the top part of each triangle is dark, where as the bottom should be). I tried rotating the normals around and that didnt help at all. As far as I can tell it's a problem with the ge2 file format. Any ideas?
02-15-2004, 04:52 PM
From the sphere screenshot, you can see that it is just the order of the normals which is incorrect.
For the lower part of the sphere, try to exchange the normals of the vertices ....well, it is time for some ASCII graphics http://www.opengl.org/discussion_boards/ubb/tongue.gif :
I often found that exporting from 3d packages like 3dsmax or maya can give unexpected and intriguing results...
[This message has been edited by ZbuffeR (edited 02-15-2004).]
02-16-2004, 01:36 AM
3D max uses a different coordinate system.
The negative z axis in opengl is the positive y axis in 3D max and the positive y axis in opengl is the positive z axis in 3D max. the x axis is the same.
In other words: y and z are switched and the (negative openGL) z axis is negated.
02-16-2004, 05:47 PM
OK, I fixed the problem. I have to select "reverse winding" when I export out of Maya. Thanks for the help, this forum is definitely the best I've ever been to.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.