sparhawk on 19/11/2009 at 13:26
LOL, that was exactly the room that I had in mind when I wrote my response. :)
mudi on 19/11/2009 at 17:22
I'm sure it's already been mentioned, but there were mirrors in Duke3D.
"Fake" mirrors with a clone of the room behind them, but a cool effect regardless.
jtr7 on 19/11/2009 at 18:56
Yep. I only had the 5-mission demo, and the Theatre restroom was what I was referring to in a previous post.:cheeky:
ZylonBane on 19/11/2009 at 20:34
Quote Posted by mudi
"Fake" mirrors with a clone of the room behind them, but a cool effect regardless.
They're not as faked as you think.
Chade on 19/11/2009 at 21:40
Quote Posted by sparhawk
Another problem is that if you happen to watch another mirror with the mirror then the engine will crash because it will go into a recursion. This can not easily solved and without access to the renderengine it can not be solved at all.
I'm haven't done much with rendering algorithms, so I might be about to make a
huge fool of myself.
But I'm interested to know why mirrors viewing mirrors is such a problem (assuming you have access to the source code).
Ok, so a part of the image in each mirror has a mutually recursive definition. But if you avoid rendering that part of the mirror, then once you have the resulting images, the mutally recursive section should just be a simple linear transformation of those images (and then another one for the subsequent smaller unrendered sections, untill those section are small enough that you can fill them in with an appropriate colour) ... ?
This sounds like the sort of thing that a modern graphics card could do thousands of times per frame?
KoHaN69 on 20/11/2009 at 00:38
Doom3 (Prey) had mirrors facing mirrors (portals) with limited recursion.
So does Source Engine (pOrtal) with up to 9 (or more?) reflections.
Could the number of reflections in DarkMod be limited without hard-coding?
mudi on 20/11/2009 at 02:33
You'd think you'd be able to put a break on any mirror recursion with a counter of some sort. Especially since it's been done before.
ZylonBane on 20/11/2009 at 04:26
Quote Posted by Chade
Ok, so a part of the image in each mirror has a mutually recursive definition. But if you avoid rendering that part of the mirror, then once you have the resulting images, the mutally recursive section should just be a simple linear transformation of those images (and then another one for the subsequent smaller unrendered sections, untill those section are small enough that you can fill them in with an appropriate colour) ... ?
Inline Image:
http://farm4.static.flickr.com/3217/3015062728_6b27f9a6ae.jpg
Chade on 20/11/2009 at 04:43
Don't just post crappy pictures. Explain what I got wrong.
ZylonBane on 20/11/2009 at 15:27
Quote Posted by Chade
Don't just post crappy pictures. Explain what I got wrong.
Every part of it that could be reasonably described as "technobabble".