• Transparent model, damn it!
    6 replies, posted
Been trying out modeling and this is my result. As you can see in the picture the metal has somehow become transparent showing the inside of the model. Anyone know the problem? It's the same both in-game as well as in the model viewer. [IMG_THUMB]http://i.imgur.com/TXnAq.jpg[/IMG_THUMB]
Flip the normals of the "inverted" part in whatever software you used to make it.
[QUOTE=Ilwrath;31845009]Flip the normals of the "inverted" part in whatever software you used to make it.[/QUOTE] So the texture is inverted? It acutally worked first time I compiled it but it didn't work in game and then I got it working in game but then the texture broke.
[QUOTE=ninjharr;31845046]So the texture is inverted? It acutally worked first time I compiled it but it didn't work in game and then I got it working in game but then the texture broke.[/QUOTE] The texture isn't inverted, the faces are, and as they are facing inwards, only the faces on the "back" side are visible, which causes it to look like that. [editline]21:03[/editline] Here: This is a normal cylinder, with another cylinder in it: [IMG]http://dl.dropbox.com/u/4888695/normal.jpg[/IMG] And here's the same cylinders, with the bigger one's faces inverted: [IMG]http://dl.dropbox.com/u/4888695/flipped.jpg[/IMG] As you can see, in the inverted normals picture you can see the smaller cylinder through the bigger cylinder.
[QUOTE=Ilwrath;31845129]The texture isn't inverted, the faces are, and as they are facing inwards, only the faces on the "back" side are visible, which causes it to look like that. [editline]21:03[/editline] Here: This is a normal cylinder, with another cylinder in it: [IMG]http://dl.dropbox.com/u/4888695/normal.jpg[/IMG] And here's the same cylinders, with the bigger one's faces inverted: [IMG]http://dl.dropbox.com/u/4888695/flipped.jpg[/IMG] As you can see, in the inverted normals picture you can see the smaller cylinder through the bigger cylinder.[/QUOTE] I was told I could use $nocull in the .vmt file. It looks ok in the model viewer and hammer but not in-game.
[QUOTE=ninjharr;31845260]I was told I could use $nocull in the .vmt file. It looks ok in the model viewer and hammer but not in-game.[/QUOTE] $nocull only makes the texture being drawn on both sides of a face. Better solution is to simply fix the inverted normals.
[QUOTE=Ilwrath;31845294]$nocull only makes the texture being drawn on both sides of a face. Better solution is to simply fix the inverted normals.[/QUOTE] Ok, thanks man.
Sorry, you need to Log In to post a reply to this thread.