Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Flipping/mirroring 3d object animations...possible?

Author
Message
D18AGON
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 8th Jul 2006 06:06
I do not want to have to do a whole animation of the same move in my anim8ing program for the other side, bcoz it wont be the same and is time consuming and takes too much effort. I was wondering if there's a command or a possible way of doing it using code in DBC/DBP? It would be verry usefull and is necessary for what I'm doing. If theres is not I'm requesting an update which will include this command. PLS contribute with your own request of the same thing to TGC to let them know we really do need it. Thnks.
D18AGON
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 8th Jul 2006 07:29
Ok i'm thinking because my previose question isn't possible I might animate my model (with bones) from within DB, anyone know how to flip/mirror (so to speak) the animation data so the exact anim is played but on the oppisite limbs? for eg: a right hand punch anim converted so it becomes a left punch anim.
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Jul 2006 13:19 Edited at: 8th Jul 2006 14:30
scale the object negative on the X axis.

scale object obj, -100, 100, 100

It should mirror all verteces from left<>right.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 8th Jul 2006 13:45 Edited at: 8th Jul 2006 13:46
Or set the object speed to a negative number.

Set object speed 1,-100

DBPro Functions:
DBPro Functions
D18AGON
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 8th Jul 2006 22:31 Edited at: 8th Jul 2006 23:01
"scale the object negative on the X axis.

scale object obj, -100, 100, 100

It should mirror all verteces from left<>right."

Hey yeah thnks that sounds like it should work, I will try.

@ Sixty squares Hey wouldn't that just play the animation backwards rather than fliping/mirroring it? Any way I shall try both and see What happens thnks .

Ok Sven well that definately works but not without glitches, for instance, his neck is kinda out of place now and some how by magic he now has a right eyeball object in the exact right place of the right shape and size which I did not put there o_O That is verry verry weird!
D18AGON
21
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 9th Jul 2006 04:58
Ok thats great it works exept minus scaling it also inverts the object making it inside out...does anyone know how to uninvert it or invert it again after its been minus scaled?
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 9th Jul 2006 20:04
use set object obj, 1, 0, 0

It turns off culling (= hiding faces that are turned backwards to the camera).

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2026-07-07 14:24:07
Your offset time is: 2026-07-07 14:24:07