Concatenating Node transforms

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
lunkhound
Gremlin
Posts: 169
Joined: Sun Apr 29, 2012 1:03 am
Location: Santa Monica, California
x 18

Re: Concatenating Node transforms

Post by lunkhound »

It turns out to be pretty easy to get squash and stretch working in the 1.x code. I only had to change Node, Bone, and TagPoint.
squash-n-stretch.jpg
squash-n-stretch.jpg (38.92 KiB) Viewed 2254 times

scrawl
OGRE Expert User
OGRE Expert User
Posts: 1119
Joined: Sat Jan 01, 2011 7:57 pm
x 214

Re: Concatenating Node transforms

Post by scrawl »

Care to post the changes? :)

User avatar
lunkhound
Gremlin
Posts: 169
Joined: Sun Apr 29, 2012 1:03 am
Location: Santa Monica, California
x 18

Re: Concatenating Node transforms

Post by lunkhound »

Sure. The changes to TagPoint are just a guess, I didn't have a test case.
Attachments
5377.patch
nonuniform scaling patch
(23.13 KiB) Downloaded 119 times

User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 185
Joined: Mon Mar 24, 2008 4:54 pm
Location: Odessa, Ukraine
x 41

Re: Concatenating Node transforms

Post by Eugene »

Necroposting! :)

This time I meet the issue, and want to resolve it. First attempt work reasonable well for me, but Node size is increased by Matrix4 size (304 => 368).
Nodes that inherit full transform could be intermixed with old-style Nodes, but this design decision prevents some possible optimizations.
https://bitbucket.org/sinbad/ogre/pull- ... -full/diff

Post Reply