Page 1 of 1

Models appear almost invisible/transparent in ZE Editor

Posted: Thu Dec 15, 2016 12:38 am
by MissingTexture
So I recently converted some props for a map I am making but when I load the ODF file into ZE, they look almost, if not entirely, invisible!

I am not sure why this is, but they appear fine ingame! I do have lowrez models for them aswell. Any ideas as to why this is?

Re: Models appear almost invisible/transparent in ZE Editor

Posted: Thu Dec 15, 2016 2:50 pm
by Kingpin
This happens to me when I use models with alpha channels on the texutres. Do your custom models have alpha channels?

Re: Models appear almost invisible/transparent in ZE Editor

Posted: Thu Dec 15, 2016 3:56 pm
by Marth8880
Yep, Kingpin's right. ZE loads all textures with alpha channels as transparent textures, which is really annoying when they're just diffuse textures with specular. A way around this is to have an "editor" version of the mesh. Simply export a different version of the mesh and have it use different versions of the textures but without alpha channels. To *set* the editor mesh, simply set the GeometryName in the [GameObjectClass] tree to the name of the editor mesh like so:

Code: Select all

[GameObjectClass]		
ClassLabel		=	"prop"
GeometryName	=	"editor_eur_prop_kodiak_interior_cinematic.msh"    // editor mesh

[Properties]		
GeometryName	=	"eur_prop_kodiak_interior_cinematic"    // in-game mesh

FoleyFXGroup    = "metal_foley"

Re: Models appear almost invisible/transparent in ZE Editor

Posted: Thu Dec 15, 2016 4:19 pm
by MissingTexture
Ah never thought of that, totally forgot about alpha channels!

So I'd need to remove the alpha channels through Photoshop or something?

Re: Models appear almost invisible/transparent in ZE Editor

Posted: Thu Dec 15, 2016 4:41 pm
by Marth8880
Correct, but keep in mind that doing so will destroy any specular maps that the textures may have if you're not doing this to editor versions of the textures.

Re: Models appear almost invisible/transparent in ZE Editor

Posted: Thu Dec 15, 2016 5:32 pm
by MissingTexture
Marth8880 wrote:Correct, but keep in mind that doing so will destroy any specular maps that the textures may have if you're not doing this to editor versions of the textures.
I actually don't have spec maps on the models, it's just diffuse maps

Edit:
I deleted the alpha channel in photoshop! Props appearing just fine :)