[SOLVED] Model transparency issues

Got problems with your models? Struggling with textures? Get help with your custom assets.

[SOLVED] Model transparency issues

Postby Mehis on Mon Jul 21, 2014 5:14 pm

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?
Last edited by Mehis on Tue Jul 22, 2014 4:43 pm, edited 1 time in total.
User avatar
Mehis
Regular
Regular
 
Joined: Fri Jan 28, 2011 8:41 pm

Re: Model transparency issues

Postby Stormy on Tue Jul 22, 2014 2:51 pm

Try compiling the model with $mostlyopaque. Otherwise you probably will need to split them up.
User avatar
Stormy
May Contain Skills
May Contain Skills
 
Joined: Sun Nov 28, 2010 6:03 am
Location: Cairns, QLD, AUS

Re: Model transparency issues

Postby Mehis on Tue Jul 22, 2014 4:43 pm

Black_Stormy wrote:Try compiling the model with $mostlyopaque. Otherwise you probably will need to split them up.


That worked! Thanks!
User avatar
Mehis
Regular
Regular
 
Joined: Fri Jan 28, 2011 8:41 pm

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users

cron