Author Topic: Environment Maps  (Read 2161 times)

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Environment Maps
« on: July 04, 2013, 06:48:50 pm »
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...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Environment Maps
« Reply #1 on: July 04, 2013, 07:26:15 pm »
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.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Environment Maps
« Reply #2 on: July 05, 2013, 07:42:05 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Environment Maps
« Reply #3 on: July 05, 2013, 10:00:46 pm »
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.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Environment Maps
« Reply #4 on: July 10, 2013, 09:35:49 am »
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).

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Environment Maps
« Reply #5 on: July 10, 2013, 08:49:34 pm »
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?