Box Projected Cubemap Environment Mapping

Started by
18 comments, last by gfxgangsta 10 years, 6 months ago
Advertisement
mind in a box
April 05, 2011 07:45 PM
Oh, that is awesome! I will definitely build this into my engine.
VISQI
June 21, 2011 04:44 AM
i just have a few questions to wrap this thing around my head:
- what is the green box??
- what is the blue box??
- i thought that env-mapping just needed a reflection vector and the cube-map and that is it, what does an AABB have to do with anything??

I still am a beginner so please help me get this thing
Ingenu
1,631
June 21, 2011 09:01 AM
Made me think of that : http://developer.amd...pCorrection.pdf

You seem to apply the same idea to reflections while that was demonstrated for refraction.
-* So many things to do, so little time to spend. *-
Trigle
June 25, 2011 05:03 PM
One day.. one day I hope to be as talented with this as you behc that is one seriously impressive demo; it's better than tech demo from a graphics card manufacturer!
CukyDoh
June 27, 2011 11:53 AM
Simple but clever little technique, good job! :lol:
gjoel
June 27, 2011 12:04 PM
This appears quite similar to the localized cubemaps of Kevin Bjorke / Nvidia - e.g. http://http.developer.nvidia.com/GPUGems/gpugems_ch19.html .

Still, very cool demo!
behc
Author
1,400
September 06, 2011 02:52 PM
Sorry for such late reply (for some reasons I have got no notifications that thread was active)

Many thanks for the links, looks like both nvidia and ati developed similar technique based on sphere. Idea is the same: apply some correction to reflection vector to account for finite environment. I choose box (instead of sphere) because it's more common to have environment built from boxes (especially in urban areas). Also I had more ALU instructions to spend :)

@VISQI - green box is just abstract represetation of cubemap, it's size doesn't matter, only position is important, blue box is a room (or some box approximation of environment visible in cubemap). Having only cubemap and reflection vector is enough, when you render cubemap every frame (from the center of every glossy object), AABB part improves quality when you use cubemaps pre-rendered from some fixed locations.
YKMZY
November 09, 2012 07:11 AM
It's very good!smile.png
Nothing is true, everything is permitted.
MrOMGWTF
November 10, 2012 09:03 AM
(•_•)
Classic enviroment mapping for planar surfaces is just...
( •_•)>??-?
(??_?)
... plane wrong.
YEAAAAAAAAAAAAAAH!
gfxgangsta
November 10, 2012 06:55 PM
FYI, I downloaded your demo file, and my AntiVirus blocked it (it named the following trojan):

TR/Crypt.XPACK.Gen

Might be a red herring, but you might want to run a scan of your PC, just to be safe.
Share:

This topic is closed to new replies.

Advertisement