Environment mapping with a normal texture

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JeffL
Competition winner
Posts: 14
Joined: Wed Dec 14, 2005 10:42 am
Location: San Jose, CA
Contact:

Environment mapping with a normal texture

Post by JeffL »

Does anyone know how to have a model render where the first texture is the diffuse texture and the second one is an environment map of some kind?

The supposedly built-in sphere-mapping would work, except I want to combine the environment map with the normal texture map. Even better, I would like to environment map where I dot the normal of each vector with [1, 0, 0] and [0, 1, 0] to get UV coordinates on the environment map, since the camera is fixed above and this seems like it would be faster.

I tried the EMT_REFLECTION_2_LAYER material type, but this seems to not get any dynamic lighting and not exactly what I'm looking for.

Thanks.
Guest

Re: Environment mapping with a normal texture

Post by Guest »

JeffL wrote:Does anyone know how to have a model render where the first texture is the diffuse texture and the second one is an environment map of some kind?

The supposedly built-in sphere-mapping would work, except I want to combine the environment map with the normal texture map. Even better, I would like to environment map where I dot the normal of each vector with [1, 0, 0] and [0, 1, 0] to get UV coordinates on the environment map, since the camera is fixed above and this seems like it would be faster.

I tried the EMT_REFLECTION_2_LAYER material type, but this seems to not get any dynamic lighting and not exactly what I'm looking for.

Thanks.
dynamic cube maps would be handy right now (hint Niko ;) ) - shaders can be used but talk about over-egging things, we don't all want to use non fixed function pipeline stuff because of older system compatibility.
JeffL
Competition winner
Posts: 14
Joined: Wed Dec 14, 2005 10:42 am
Location: San Jose, CA
Contact:

Post by JeffL »

Has anyone made a new material type? I will have to go into the source, I guess and make something like EMT_REFLECTION_2_LAYER but that takes on lighting, or EMT_SPHERE_MAP except that it has a second texture map. How hard will this be to do?
Post Reply