Posted: 29th Nov 2003 0:33
Use the arrows to move the ball around. I tried to use set camera to image but it distorts the image too much. Hope you guys like it.
Posted: 29th Nov 2003 22:16
thats very cool, might be a bit hard to implement in a big 3d world though if you need 2 of everything
Posted: 30th Nov 2003 1:15
Very interesting.

Posted: 30th Nov 2003 4:17
Good Job!
Posted: 30th Nov 2003 4:44
thats very cool, might be a bit hard to implement in a big 3d world though if you need 2 of everything


For us, yes. In DirectX you would just flip the world geometry. This is what the reflection shading command does (roughly speaking) btw.
Posted: 5th Dec 2003 22:13
Nice Now a Mirror Fun House PRoject is bound to come next
Posted: 6th Dec 2003 19:01
can you make an exe cuzz it doesn't work in DBC
Posted: 12th Dec 2003 7:45
Mirrors are more fun then Television!

Wait, did you say you got the "Set Camera to Image" to work? I keep getting a "Cannot grab image due to illegal area" error. I Don't suppose you still have the code?
Posted: 15th Dec 2003 1:29
This is one of my first rendering camera to image progs. It's a bit slow but it gets the job done>
Posted: 15th Dec 2003 2:25
did you perfect our old one mate ?

http://darkbasic.thegamecreators.com/?m=forum_view&t=10046&b=6
Posted: 15th Dec 2003 4:27
Nice job, very cool
Posted: 15th Dec 2003 14:03
Doesn't look distorted to me. Looks really, really good.
Posted: 16th Dec 2003 0:11
Distorted may not be the correct terminology. Let me explain, as an object gets closer to the camera the image that is reflected gets larger so it doesn't make for a good mirror. In order to get an accurate reflection from a camera image, the camera used for the reflection has to be the exact distance from the mirror as the primary camera(the viewer) but behind it. This poses a problem because you cannot make the camera see through objects. If anyone else has any ideas let me know this is as far as I got with this before I gave up using set camera to image.
Posted: 19th Dec 2003 19:06
@The Cubist - what if the mirror is on a plain object that's culled? You could put the camera behind the plain object on the culled side. also, if the mirror is on a wall, the walls could be culled plains too! thus if your camera is in front of the wall/mirror, you see the wall/mirror. If a camera is behind the wall mirror facing back, it won't see the wall/mirror but just the rest of the "room."

I hope I make sense and this helps.
Posted: 20th Dec 2003 13:16
That's what I thought as well except what happens if it's a wall you can walk behind? I guess you could uncull it because then you don't need to see the mirror.
Posted: 20th Dec 2003 17:40
when you walk through the area to get to the area "behind" the wall, you could unhide a wall facing towards you.

another possibility is to create an exact copy of the room somewhere way out in the 3d space that will never be visited and not have the wall where the mirror is at all. have the mirror camera there. So you think your looking at the same room but your looking at a camera image of a room that looks exactly the same!