Recursive Mirror

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
babyfox
Posts: 4
Joined: Sat Aug 19, 2006 4:20 pm
Location: England, UK

Recursive Mirror

Post by babyfox »

I have put together a demo to show recursive mirroring effect using render-to-texture and a customised 2-pass rendering routine.

At this stage I am still trying to varify the correctness of the mirroring recursion, once this is done I will post the source code here. :)

Here is a screen shot , hope you enjoy it. This is meant to be a scene of a first person puzzle game that I have been working on. There are six mirrors surrounding the player ("the tall white box" :oops: ).

Image
IPv6
Posts: 188
Joined: Tue Aug 08, 2006 11:58 am

Post by IPv6 »

Very cool! It would be great if you share the code :) is it possible to make something like portals (from Prey ^) ) too? portal rendering is almost the same as manual mirror handling :) IMHO
buhatkj
Posts: 444
Joined: Fri Dec 12, 2003 4:53 am
Contact:

depth of recursion?

Post by buhatkj »

how deep do you recurse in showing repeated reflections? is this something you find you have to worry about at all? i would think you would, but am not sure...
If so, how do you control it?
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

Each iteration is going to be a seperate render operation, so it could get slow very quickly I think. . .

Still sounds cool though
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Post Reply