Horde3D

Next-Generation Graphics Engine
It is currently 19.04.2024, 05:22

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 30.09.2008, 19:30 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
(I've moved this to bugs, I believe it's a bug).

Additive animations with weight 0 are still applied because of this line in egModel.cpp:
Code:
// Ignore stages with a blend weight near zero
if( curStage.blendWeight < 0.0001f && !curStage.additive ) continue;

I changed this to:
Code:
if( curStage.blendWeight < 0.0001f ) continue;

I don't understand why that condition was there.


Top
 Profile  
Reply with quote  
PostPosted: 01.10.2008, 08:28 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Actually it is not a bug but was done deliberately. The weight determines the importance of the stage relative to other stages for interpolation/blending. Additive animations are just added on top of the rest, without any scaling with the weight factor. But there is no strong argument that it was done like this. If it makes sense it could be changed, will have to reflect about that a bit.


Top
 Profile  
Reply with quote  
PostPosted: 01.10.2008, 08:53 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
You got one vote in support of weight options to additive animations.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 28 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