Advertisement

Objects loaded from .X files are see through

Started by August 23, 2001 08:06 AM
0 comments, last by Zawar 23 years, 6 months ago
I load some 3D primitives from .x files, and even after applying textures, I can see geometry on the other side of the object, which is to say that the objects are see through, even though I wouldn''t say transparent, since I can''t see anything beyond the geometry on the other side. What setrenderstate(..) or whatever invocation do I make before rendering to fix this? There doesn''t seem to be a problem with the way the file is exported, since the models look perfect in the X file viewer shipped with DX 7. You can see the models and their screen shots in my simulation at www.geocities.com/zawar.geo/dxproblem.zip . Kindly help Zawar Qayyum. |IRR|
|IRR| -- The hungary Programmer - till yet.
There was a guy at another forum that had this exact
same problem. This description of the problem is really
spooky because of how close it resembles your problem.

The answer was to reverse the winding order of the
triangles in the object. Also in the Direct X
documentation, it recomended using the -r switch when
converting 3DS to X files if that problem occurs.

In short, try the -r switch in conv3ds.exe
Hope this helps,

Guy
Adulthood is the vehicle for making you childhood dreams come true.

This topic is closed to new replies.

Advertisement