No light/effect on the terrain?

Hi,



why does my terrain has a pure white surface and is not affected by the light?



I created the terrain with EarthSculptor and exported it as .obj. The terrain has not textures or UV's (by the way what are UV's?) so i expected the model to be gray and affected by light, but its simply white.



What I am missing? Maybe the object must have a defined material to be affected by light? I only need object because I like to set the textures in jME.



If I use a graystyle image (which also has no texture and material information) and the ImageHighmap generation the resulting terrain has normal ligth effects, but where is the difference? I don't use images because the meshes are not optimized and this eats too much frame rates.



Any idea would be create 8)

A common cause for a completely white object is that you don't actually have any lights. I presume that's not the case though as it works from an image map.



Does your model have correct normals data saved with it?


by the way what are UV's?)


UVs are texture coordinates. For each point in the model, you need to know what part of the texture (or other sort of) map that would represent. This is what uv coordinates do. Most models are uv mapped, as without it you cannot use texture mapping or most other sorts of mapping. Having uv data does not mean you actually have texture maps on the model, just that the model can be texture mapped.

My terrain is still a white bloob.



How can I post a message with a picture inside in this forum? the insert image button doesn't allow to upload an image. Somehow it works and I would like to know how.



Yeah I have a light which works. The problem is somehow related to my terrain object.



If I press N i cans see all the funny read normals^^ (orthogonal to the surface). I guess thats a usual look.



Any other ideas?

Have you added a texture to the terrain?  Objects without textures get rendered pure white in jme.

I use graystyle imges for our terrains as the vehicles need to know the height of the terrain at any position.

The lights are working this way.


Objects without textures get rendered pure white in jme

How about a Box object wihout any texture? It is lighted and appears grey, doesn't it?

So, is there a difference between a Box and a object model (assumed that both haven't material and textures)?
mathias4u said:

So, is there a difference between a Box and a object model (assumed that both haven't material and textures)?

There isn't. Make sure your terrain is actually a child of the spatial containing the lightstate, and make sure you are calling updateRenderState() after attaching your terrain. Then make sure your material settings are not maxed out at white. [shameless plug] You can use Scene Monitor to check all these things out and see where your problem might be.  ;) [/plug]

mathias4u said:

How can I post a message with a picture inside in this forum? the insert image button doesn't allow to upload an image.

You must host your image on your own, or upload it to a site like image shack and use the URL.