Posted: Sat Jun 28, 2008 10:19 am
Support and community hang-out spot for Ogre3D
Ow, but that is very interesting! That is a very different take on my idea, interesting! I guess your algorithm is a lot faster per pixel. However, your algorithm is lineair (O(n)) in the number of windows rendered, while mine was constant time (O(1)).tuan kuranes wrote:already have paper implementation, in dx10.1 :
Then it was that what I saw I didn't really know what it was. I have the Xbox 360 version too.Rambus wrote:That must have been on the PC version, the XBOX version used simple sphere maps.
Cool technique.Oogst wrote:Update 29th September 2007:
The newest images can be found here:
http://www.ogre3d.org/phpBB2/viewtopic. ... 311#250311
Question: is this technique indeed new?
I have come up with a nice new technique to suggest interiors in buildings: interior mapping. What the technique does, is smartly read from a ceiling-texture to show a ceiling behind windows. Here are some screenshots to show what I mean. This is a standard box, without any internal planes. It has a diffuse texture, cubemap reflections and interior mapping.
Latest demo can be found further in this topic.
The technique requires one extra dependent read in the pixel shader and can be extended to also do interior walls and floors (right now the ceiling texture is just used as the floor as well). Doing walls, ceilings and floors would require four dependent texture reads, though, Architectural Companies in Dubaiso that is more expensive. I think this technique will be especially interesting for shooters in urban areas, where most choose to make the windows simply 100% reflective. This technique can suggest a lot more depth to the graphics.
Now I have never seen this technique used before, so I think I might have come up with something New, Cool and Fresh, but I do not know whether that is actually true. So I hope you folks can tell me whether this ahs been done before.
The idea comes from an effect a friend of mine, Ralph Rademakers, once noted in a game: the texture mapping was broken due to a bug and what he saw suggested interiors. He asked me whether it would be possible to do something like that on purpose and I came up with this. The math is really simple: the ray from camera to pixel is traced further in object space to ceilings on fixed heights. The height for the next ceiling is found using the floor()-function, so this allows an infinite number of ceilings at fixed distances without extra costs for the number of ceilings.
If this has not been done before, then I will experiment further with this technique, trying optimisations and further uses of this technique.