Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Dark_Mark

#1
Bones / Re: How to properly scale AnimatedGroup?
July 26, 2012, 10:09:53 PM
OK, thanks.
#2
Bones / Re: How to properly scale AnimatedGroup?
July 26, 2012, 09:59:48 PM
Quote from: raft on July 26, 2012, 09:37:08 PM
do you really need scaling objects on the fly? what about scaling them when loading?
I know it can be done via BonesImporter.importOgre and BonesImporter.importCollada, but is there an easy way to accomplish the same for .bones files as well?
#3
Bones / How to properly scale AnimatedGroup?
July 26, 2012, 08:44:26 PM
Hi. I have a simple scene like the one mentioned in the Advanced Example and I've added the popular ninja model in .bones format. Everything works well, but if I scale the model like this:
animatedGroup.getRoot().setScale(0.2f);
The model itself becomes very dark :( However, when I do it like this:
for (Animated3D o : animatedGroup)
{
o.setScale(0.2f);
}

the model is properly lit, but the katana's position is wrong. So here's my question: what is the proper way of scaling an animated .bones model?