Rear-view mirror - camera or mirror?

Blitz3D Forums/Blitz3D Programming/Rear-view mirror - camera or mirror?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How about, use a sprite/quad for the mirror, flipping the U texture coords, then just copyrect from rear view cam to texture.
Reason I didn't do it that way, was because I still needed to render the camera, then copy it to a texture. The texture had to be base 2, but the dimensions of the rear view mirror were 4:1 or something.

So instead of farting about with scaling textures and messing with UVs, I went for the CopyRect method, which was plenty fast enough anyway.

I think you can horizontally/vertically flip a camera render by scaling it with negative values.
This works in a fashion, but it also flips the normals of any object the camera sees.

Mmm, "Scouse's" idea is interesting too.

I'll have to work out how to use the CopyRect with the camera though.
Assuming you can get the image onto your texture at the right size/scale, then the best way would be to use SpriteViewMode 2, and disable backface culling.