Horde3D http://horde3d.org/forums/ |
|
Joints error http://horde3d.org/forums/viewtopic.php?f=1&t=73 |
Page 1 of 1 |
Author: | tihare [ 08.05.2007, 07:38 ] |
Post subject: | Joints error |
I'm a pretty big admirer of this engine so far. It's very clean, and seems very easy to use. So I thought of plugging in some assets, and got some errors reguarding max joints of 59. Is there anything special about this? If I change it, will other bad things happen? |
Author: | marciano [ 08.05.2007, 17:59 ] |
Post subject: | |
Great that you like the design of the engine The issue with the joints is something that has to be solved rather sooner than later. The problem is that the shader registers only have space for storing 59 joint matrices for doing GPU skinning. There are several solutions to this, but until now I didn't find the time to implement one of them. Just increasing the constant won't work. What I will have to do for the one of the next releases is writing a function for the Collada tool that splits the mesh if it has more joints than the current limit. How many joints does your model have? We also ran into this limit in one of our projects and an easy work-around was to delete the nubs joints that were created automatically by 3ds max and that are usually not required for animation. |
Author: | tihare [ 09.05.2007, 06:11 ] |
Post subject: | |
Thanks for the fast reply, I figured it was a limitation with the gpu skinning. The artist didn't know how many it had, I stepped it in the debugger and looks like 72. Although it doesn't look like there is that many. We thought we were under the number, I dunno I'll have to look at it some more. The only thing I'm curious is about is would you still be able to have attachments to joints or null objects ? |
Author: | marciano [ 09.05.2007, 21:51 ] |
Post subject: | |
Arbitrary attachments to joints are no problem. Only the matrices of the joint nodes are sent to the graphics card. BTW, I never mentioned explicitly in the docs that animations are fully integrated with the scene graph. That means if you apply a skeletal animation to a model you can read back or modify the new transformation of a joint node which makes it easily possible to do dynamic animations. Just in case you should need something like that |
Author: | marciano [ 25.06.2007, 03:31 ] |
Post subject: | |
I recently spent some time on the joint limit issue. By doing some tricks (compressing matrices) I managed to increase the joint limit from 59 to 79. I think that's a value that is much more acceptable since many detailed models have between 60 and 80 joints. The update will come with the soon to be released version 0.11 |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |