Mirror..

Blitz3D Forums/Blitz3D Beginners Area/Mirror..

Azaratur(Posted 2008) [#1]
I create a mesh of a mobile, and i want create a mirror..
What can i do it?
I see the mirror command but everytime i use it i don't understand what i do!
Please help me

Aza


mtnhome3d(Posted 2008) [#2]
don't use mirror it copys all entitys and rotates them 180 degrees. use cameraviewport and a second cam pointing backwards. http://blitzbasic.com/b3ddocs/command.php?name=CameraViewport&ref=3d_cat .this also solves the splitscreen question posted above.


Andy(Posted 2008) [#3]
Cameraviewport with a second cam pointing backwards will make a mirror which is visually incorrect, ie. flipped right to left.

The proper way to create a mirror, is to place a camera pointing backwards and then copyrect the render to a texture(with texturecoords flipped in the horizontal plane) and texture a mesh in front of the forward looking camera.

http://www.blitzbasic.com/codearcs/codearcs.php?code=1524


Ross C(Posted 2008) [#4]
Had me from ages when i was picking up blitz. Remember and set the cameraviewport to your texture size and then render :o) That way you copy everything the camera can see.