Difference between absoluteTransform & relativeTransform

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
emre2345
Posts: 37
Joined: Mon Jul 09, 2007 7:02 pm

Difference between absoluteTransform & relativeTransform

Post by emre2345 »

Hi all,

I compare the ISceneNode::getAbsoluteTransform and
ISceneNode::getRelativeTransform functions. There was no difference.

What are these two?If they have difference what can be the reason of being the same of these two function' s return values?
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

for example, there are the legs, what are turned 30 right.
the upper will be turned 30 left (-30)
the head is at 0.
(child system)

so, with abs transformation, you got these datas but with relative:

legs are 30
upper is -60
head is 30

because relative to legs, the upper is turned 60 left.
and so on.

but if your node is just one mesh (not parented), then it doesn't have relative value, so it returns the absolute to you, for not crash your app.
Last edited by B@z on Sat Aug 30, 2008 3:22 pm, edited 1 time in total.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

hmmm

Post by 3DModelerMan »

You might have gotten me excited about that.
I think they might have something to do with getting the local axis of that scene node, but I don't know. I've got to check the api for ISceneNode::setRelativeTransform() now
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

errr

Post by 3DModelerMan »

Ummm it looks like I posted a wrong theory at the exact same time someone else posted. :oops: oops sorry.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

well, i just think that way, it doesn't mean that it's the truth :D
emre2345
Posts: 37
Joined: Mon Jul 09, 2007 7:02 pm

Post by emre2345 »

Thanx for the answers

Now i come across with another problem. i am working on physx and irrlicht implementation.

I get mesh from 3ds, then take its bounding box and send dimensions to physx. But my physic object and rendered mesh is different in dimensions. After a while i realize that irrlicht is scaling mesh while rendering although i give the scale as vector3df(1, 1, 1).

Is there a possibility to be a bug in rendering?


p.s. i didnt want to open a new thread so i continued to this.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

emre2345 wrote:Is there a possibility to be a bug in rendering?
Yes, you've found a critical core bug in the most basic Irrlicht functionality that nobody else has ever noticed. Your amazingly detailed and specific bug report will allow it to be fixed in record time. Adulation and worship will follow. There may even be statues.

Image
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply