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?
Difference between absoluteTransform & relativeTransform
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.
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
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
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
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
3DModelerMan
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
errr
Ummm it looks like I posted a wrong theory at the exact same time someone else posted.
oops sorry.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
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.
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:
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.emre2345 wrote:Is there a possibility to be a bug in rendering?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way