Mirror mirror on the floor.. =)

Blitz3D Forums/Blitz3D Programming/Mirror mirror on the floor.. =)

BerhanK(Posted 2003) [#1]
Funny topic but not.. doh..

Anyways, here it goes.

Is it possible to Mirror objects so the modell is somehow mirrored lie this:

I have a player model who kicks ball with his right foot.
If I mirror him and display the mirror view then he hits the ball with his left foot.

Can this be done without the mirror stuff, ie the player object motion (md2 file) is copied /translated so it is a "mirror:ed" copy of the original file?


Rob Farley(Posted 2003) [#2]
You can copymesh and scale it -1,1,1


Rob(Posted 2003) [#3]
Copymesh might not work on md2's, but try it. If not then you can try rendering to a texture.


Genexi2(Posted 2003) [#4]
Wouldnt you want to mirror the texture on the model as well?
(considerin' it isnt a symmetrical texture, as Dr.Av mentioned, the scale should work)


BerhanK(Posted 2003) [#5]
md2 is an entity not mesh, right? so It won't be copied!

Or is there a way?


you mean rendering - then showing it as animation?

w8, w8.. can it be shown faster then actualy doing 3d?

I mean I make the 3d models render to a bitmap then use sprites instead?

Should be faster, no?


BerhanK(Posted 2003) [#6]
Hold, it.. it works!!

'-------------------
a_player=LoadMD2( "player.md2" ) //original player
ScaleEntity a_player,-0.75,0.75,0.75 // scale it (mirror) negative x
player = copyentity(a_player) // the player entity to be used
freeentity a_player // get rid of the reversed dude

'---------------------


BerhanK(Posted 2003) [#7]
Forgot to mention it, the same texture is used and it doesn't affect the result.