Mirror..
Blitz3D Forums/Blitz3D Beginners Area/Mirror..
| ||
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 |
| ||
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. |
| ||
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 |
| ||
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. |