Left -> Right handed models like in Half-Life

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
KillerXX7
Posts: 22
Joined: Sat Oct 07, 2006 4:50 pm
Location: Russian Federation
Contact:

Left -> Right handed models like in Half-Life

Post by KillerXX7 »

Hello everybody!
I have one problem:

I have a model of a weapon, this model made for "Left-Hand", but i need it to Right-Hand.
How can switch this model to right hand? Like in HL (Counter-Strike).
Think Fast, Act Right... OR Be Dead :)
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Scale by -1 in X. You'll need to reverse the backface culling mode, though, which I'm not sure Irrlicht lets you do.
KillerXX7
Posts: 22
Joined: Sat Oct 07, 2006 4:50 pm
Location: Russian Federation
Contact:

Post by KillerXX7 »

Thanks, sio2!

I have set EMF_BACK_FACE_CULLING to False, it help to sove problem with culling backfaces.
All looks cool, but this made scene some slowly (i'm using hi-poly models) :(

Is there a way to reverse backface culling?
Think Fast, Act Right... OR Be Dead :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Not yet. mandrav submitted a patch, but I have not yet commited it.
Post Reply