Horde3D

Next-Generation Graphics Engine
It is currently 16.04.2024, 10:21

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 26.09.2008, 17:26 
Offline

Joined: 26.09.2008, 17:13
Posts: 2
Hi everybody!

I'm sorry but this is not a bug report, it's a feature request to add new functions to the core API (dind't know where to post...).
The "problem" I'm having is with the setNodeTransform() function, for example I want to set a node translation without changing the rotation and scale of the node (or set the node rotation without changing the node translation and scale). Right now it's not prossible, with the setNodeTransform() function I've to apply all three parameters at once. It would be cool to have functions like: setNodeTranslation(), setNodeRotation() and setNodeScale() for that matter.

If you think it's reasonable to add them, please do it as I see them as very handy functions.


Thank you very much for taking the time on reading this post,

Federico Omoto


Top
 Profile  
Reply with quote  
PostPosted: 26.09.2008, 18:28 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
That's something I've thought about some time ago, too. I remember that I discussed this with Nicolas, but I couldn't remember what was the final decision.
At my projects, I added a wrapper for scene graph nodes that adds additional functionality like translateRelative, translateAbsolute, etc. I guess Nicolas wanted to keep the interface to Horde3D simple and if you want to handle graphical objects, you normally have to add something like such a wrapper anyway.


Top
 Profile  
Reply with quote  
PostPosted: 26.09.2008, 18:31 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
I find it most useful to manipulate the transform matrix directly - you can easily write functions to scale, rotate and translate the matrix, and then just set the matrix.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
PostPosted: 26.09.2008, 18:32 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
http://horde3d.org/docs/_api.html#Gener ... _functions
have fun


Top
 Profile  
Reply with quote  
PostPosted: 27.09.2008, 17:55 
Offline

Joined: 26.09.2008, 17:13
Posts: 2
Volker and swiftcoder,

Thank you very much for your answers. I think I'm going to follow swiftcoder's recomendation and write functions to manipulate the transformation matrix directly as it's the only way to accomplish this task.


Best regards,

Federico Omoto


Top
 Profile  
Reply with quote  
PostPosted: 27.09.2008, 18:05 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
You can also use the utMath.h by creating a Matrix4f from the pointer you get from e.g. getNodeTransformMatrices()


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group