Environment Maps

Started by AGP, July 04, 2013, 06:48:50 PM

Previous topic - Next topic

AGP

I'm sure there are better places in which to ask this, but why does this map:


not work whereas Egon's:


does? I wish to have an environment map that reflects my sky box textures and my game's general tones...

EgonOlsen

It should work pretty similar. What's the problem with it? If you are using the software renderer,  make sure to call recreateTextureCoords if you assign the texture on an already built object.

AGP

It doesn't produce much of a reflection. It's not entirely true that it doesn't produce any reflection, but it sure doesn't work as well. Do you know why?

EgonOlsen

I see no real reason. But if you are using the software renderer, try to scale it to 256*256...deep in my mind there's a voice telling me that there was some limitation of the software renderer when it comes to environment mapping, but i'm not sure if that is true anymore or ever was. It's worth a try though.

AGP

I only tested the reflection on OpenGL. I hate that there are different grammars for the different renderers.

By the way, I'm having trouble loading an OBJ scene. Trees are oriented differently than the city. I'm fairly certain that it's Max's OBJ exporter's fault, since it didn't even export an important texture (it seems to be having trouble with this particular model).

EgonOlsen

I don't see why this texture shouldn't work as expected. It might not look good in all situations because of the large white section in the lower right, but i actually don't think that this is an issue. Do you have an example screen shot that compares the results of the two textures?