Home | Profile | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 Why is this transparent?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


1 Posts

Posted - Aug 24 2005 :  12:37:23 PM  Show Profile  Visit Wackedout1's Homepage  Send Wackedout1 an AOL message  Click to see Wackedout1's MSN Messenger address  Send Wackedout1 a Yahoo! Message  Reply with Quote
I'm working on an Editor for the game GTA San Andreas.

I decided to try and make a 3D preview, with some hard work I got the file format decoded and drawn. But before I even got to mess with textures my object was showing up transparent. (Only when Light is enabled)

Here is an example...

I have tried to setting CULLMODE to NONE/CW/CCW and they all have diffrent effects.

I have also played with the ambient colors setting it to "1" makes it solid with no shading and anything less makes it transparent. Also some things show up on the wrong side (can see the opposite door threw the one on the side your looking at)

So dose anyone know what i can check to see what else could be wrong.


142 Posts

Posted - Aug 25 2005 :  12:24:24 AM  Show Profile  Visit Spodi's Homepage  Send Spodi an AOL message  Click to see Spodi's MSN Messenger address  Send Spodi a Yahoo! Message  Reply with Quote
No idea of what could be wrong. You can also try posting in some of the more "active" forums. :)

Game Programming Wiki Forum (VB):

Xtreme Visual Basic Forum (where all the pros hang out :p):

Go to Top of Page

Eric Coleman

811 Posts

Posted - Aug 25 2005 :  08:14:10 AM  Show Profile  Visit Eric Coleman's Homepage  Send Eric Coleman an AOL message  Send Eric Coleman an ICQ Message  Click to see Eric Coleman's MSN Messenger address  Send Eric Coleman a Yahoo! Message  Reply with Quote
Well, it looks like the winding order is reversed on the doors on the back of your trailer. When creating triangles in any software package, it is important make sure your triangles' vertices are created in the correct order, either clockwise or counter-clockwise.

This order allows directx and opengl to discard (not draw) triangle that are facing away from the camera. When you're in front of a triangle it is drawn, when you're behind it then it is not drawn. The "front" and "back" of a triangle is determined by the winding order of the vertices of the triangle.

By setting the cullmode to NONE then the test for front/back of a triangle is ignored and all triangles are drawn. The CW and CCW values allow you to determine which winding order you want to draw and discard.

As for seeing object through other objects, you might want to make sure you're using a Z-buffer.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.