Page 1 of 1

[SOLVED] Model transparency issues

PostPosted: Mon Jul 21, 2014 5:14 pm
by Mehis
I have a model that uses three different textures. One of them is supposed to act as a glass. It looks fine in the editor, but in-game rest of it cuts off due to the other parts of the model. I've tried changing shader types on all of the textures.

Glass:
Code: Select all
VertexLitGeneric { // UnlitGeneric, VertexLitGeneric. Tried both.

   $basetexture bla\bla\blbalala
   $model 1

   $translucent 1
   //$alphatest 1, tried both.
   //$additive 1

   $surfaceprop glass
   //$nodecal 1

}


Image
Image

Do I really have to separate the glass and the rest of the model?

Re: Model transparency issues

PostPosted: Tue Jul 22, 2014 2:51 pm
by Black_Stormy
Try compiling the model with $mostlyopaque. Otherwise you probably will need to split them up.

Re: Model transparency issues

PostPosted: Tue Jul 22, 2014 4:43 pm
by Mehis
Black_Stormy wrote:Try compiling the model with $mostlyopaque. Otherwise you probably will need to split them up.


That worked! Thanks!