Posted By: Elektron
Problems displaying the terrain - 04/06/10 14:15
Hello,
I have a terrain with entities over it.
And it looks ok, but after travel with camera for a while some parts of terrain look transparent.
I use a sample code of engine to move the camera not the debug code (After press 0)
I you donīt understand what i mean i can post a image of the screwded terrain.
Thanks in advance.
Posted By: Widi
Re: Problems displaying the terrain - 04/06/10 18:07
Boa tarde...
If you don`t use a shader:
Make sure the Skin of the Terrain have no Alpha Channel.
Open the Terrain in MED
--> Edit
--> manage Skins
There should be: Texture:256x256x24...
if is not 24 (the others can be different):
--> Skin Settings
--> Texture Format
Here should be 24bit selected.
Posted By: Elektron
Re: Problems displaying the terrain - 04/07/10 00:42
Obrigado widi.
But my texture must be 32bit the problem is opaque portions sometimes look transparent.
Posted By: Widi
Re: Problems displaying the terrain - 04/07/10 07:58
OK, now i need some more Infos.
For what do you need the alphacannel (32bit)?
Do you apply a Shader to your terrain?
If you don`t use a shader you will always have this problems with opaque portions sometimes look transparent. If a Skin have 32 bit then the engine will render the Terrain at the transparent pass and that gives problems.
maybee that can help:
set the flag PASS_SOLID in the Material of your terrain.
Posted By: Elektron
Re: Problems displaying the terrain - 04/08/10 01:05
Well i have a level with a big block wich is the water and i put on top of it the terrain.
I want a irregular terrain for looks like a island soo parts of it are transparent for show the block (water) around the island.
Posted By: TerraSame
Re: Problems displaying the terrain - 04/20/10 15:49
Hey...
Do n internet search for "Mysty Mood" by "Loopix"
It is available in both C Light and C Script...
It's all done for you.
All the art work and code is there for you to use...
It's awesome.
Have fun...