Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12045 Posts in 1593 Topics- by 594 Members - Latest Member: Soidgetoutt

19. June 2013, 12:13:53 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Bone animation
Pages: 1 2 [3]
Print
Author Topic: Bone animation  (Read 2679 times)
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 124

197432680
View Profile
« Reply #30 on: 30. May 2012, 08:02:22 am »

try to apply a texture to the model.
Logged

Anton
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #31 on: 30. May 2012, 05:03:19 pm »

No result : (
Logged
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 124

197432680
View Profile
« Reply #32 on: 31. May 2012, 10:27:12 am »

You can achieve some result if insert the line to NewMain#createScene():

Code:
m = ModelLoader.getInstance().loadModel("tur10(withani)-tr.dae");
m.setRenderable(true);

m.getNestedTransform( 0 ).getTransform().setScale( 2.0e2f );
Logged

Anton
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #33 on: 31. May 2012, 01:51:28 pm »

Thank you, I'll try this!
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #34 on: 31. May 2012, 06:46:17 pm »

Don't forget to call updateTransform() after you manipulated a TransformGroup's matrix.
Logged
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #35 on: 01. June 2012, 07:02:33 am »

Thank you! Nice, I've understood this. Now if I'll calculate SkeletalKeyFrameController and Skeleton and will set it to ModelAnimation, will it be correctly calculated for viewing? Or are there some features?
Logged
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 124

197432680
View Profile
« Reply #36 on: 01. June 2012, 07:08:00 am »

please describe more detailed what you want to do...
Logged

Anton
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #37 on: 01. June 2012, 09:31:21 am »

OK. Animation has a controller, which has skeleton. Every skeleton has joints with keyframes. Are this keyframes linked to something on loading? Or if I generate this keyframes in my programm, they will be correct? If I generate keyframes manually, will the animation be correct?
Logged
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 124

197432680
View Profile
« Reply #38 on: 01. June 2012, 10:13:11 am »

OK. Animation has a controller, which has skeleton. Every skeleton has joints with keyframes. Are this keyframes linked to something on loading?
No.
Or if I generate this keyframes in my programm, they will be correct? If I generate keyframes manually, will the animation be correct?
Looks like correct, though, if a trouble happened you're welcome. Smiley

And Btw :animation code you using may be redesigned in the future.
Logged

Anton
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #39 on: 01. June 2012, 10:34:42 am »

And Btw :animation code you using may be redesigned in the future.

I understand this, thank you a lot!
Logged
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #40 on: 01. June 2012, 12:54:00 pm »

One more question again. I'm animating example cube (in Blender) using two bones, but have strange result. Look, here is model, source code and screens before and after animation. Engine doesn't play animation, it only transforms geoumetry in some strange way : )
Logged
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 124

197432680
View Profile
« Reply #41 on: 01. June 2012, 06:38:33 pm »

well...Is the model animated ok in Blender? What does this animation?
Logged

Anton
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #42 on: 02. June 2012, 07:23:00 pm »

The second bone rotates near 15 degrees only for 100 frames with 2 keyframes and that's all
Logged
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 124

197432680
View Profile
« Reply #43 on: 06. June 2012, 06:58:38 pm »

fixed a few bugs Undecided ... now should work ... update project from svn.
Logged

Anton
sickfar
Enjoying the stay
*
Offline Offline

Posts: 46


Eat fish - it contains phosphor

358797535
View Profile WWW Email
« Reply #44 on: 06. June 2012, 09:20:04 pm »

niiiiccce!!! Thank you, I'll do this later!
Logged
Pages: 1 2 [3]
Print
Jump to:  

Theme orange-lt created by panic