Dynamic cubic environment mapping

This is a discussion on Dynamic cubic environment mapping within the Game Programming forums, part of the General Programming Boards category; I need some help with my cubic environment mapping. It looks fairly good from the screenie but there are some ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586

    Dynamic cubic environment mapping

    I need some help with my cubic environment mapping. It looks fairly good from the screenie but there are some odd textures in the cube map. However when I output all the surfaces to bmp's they look just fine.

    As you can see in this screenie there is some weird green color. I do not have any green textures in the entire game. Also you can see some odd lines which looks to me like an uninit texture. However all textures should be init. I've also had where the HUD is in the map except I call a completely different render for the cube map which does not render the HUD or debug information.

    I will provide code as it becomes necessary. It's quite a bit and would just clutter the post at this time. You can also see where the object being reflected is rendering - yet I specifically check for this in my render so I have no clue how it's happening.
    Last edited by VirtualAce; 03-12-2011 at 10:41 AM.

  2. #2
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    I see no green line except for something that looks like reflection o.O
    Currently research OpenGL

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    If it's reflecting where is the green coming from. There isn't any green in any of the cube maps.

  4. #4
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    Maybe you've actually done magic :O!
    But I mean the green stuff that also looks like the window... Isn't it too detailed to just be some random thing o.O?
    Currently research OpenGL

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    Here is another screenshot with the cube map down to 64x64 and it looks a bit better. Seems my video card falls apart with cube maps over 256x256.

    I'm still getting some unit texture data in the cube map but only when I zoom the camera out. Very odd. How the cube map can be init zoomed in and then turn uninit zooming out is beyond me.
    Last edited by VirtualAce; 03-12-2011 at 10:41 AM.

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    I think I fixed it. Now it's time to alter the skybox to have different textures to make sure my reflections are oriented correctly. This demo cannot do anything over a 64x64 cubemap and I'm not sure why. I get really weird textures when I try anything over 64x64. However I can use a static cubemap of 512x512 and even 1024x1024 so I'm not sure what the issue is.
    Last edited by VirtualAce; 03-12-2011 at 10:41 AM.

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    Fixed. My video card does not support mip-mapped cube textures. That's why at various distances the textures were corrupt since it had no texture data for that level of the texture.
    Last edited by VirtualAce; 03-12-2011 at 10:41 AM.

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    There appears to be a seam in your background texture.

    The reflections look good.

  9. #9
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    Yes the top and bottom textures don't match. As a test I just used the same texture on all sides. I'll fix the static environment map later.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Draw distance through environment mapping
    By VirtualAce in forum Game Programming
    Replies: 1
    Last Post: 05-14-2006, 11:52 AM
  2. Identify dynamic IP address of network device
    By BobS0327 in forum Tech Board
    Replies: 2
    Last Post: 02-21-2006, 12:49 PM
  3. Cubic Root by Newton's Iterative Method
    By amirahasanen1 in forum C++ Programming
    Replies: 2
    Last Post: 03-15-2005, 01:05 PM
  4. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2003, 11:51 PM
  5. Dynamic Toolbars
    By nvoigt in forum Windows Programming
    Replies: 1
    Last Post: 01-11-2002, 09:21 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21