Vousk-prod. Posted November 10, 2015 Share Posted November 10, 2015 Yep, that's clear. But it still would be great to be able to go to specific frame (no problem for complex calculations to happen in the background if the final result is the correct frame's state without having to launch an unwanted little movement). Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 10, 2015 Share Posted November 10, 2015 does scene.beginAnimation(mesh, 6.99999, 7) works? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 10, 2015 Share Posted November 10, 2015 does scene.beginAnimation(mesh, 6.99999, 7) works? Not very elegant, but yep it seems to work indeed.How do I go to frame 0 ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 10, 2015 Share Posted November 10, 2015 animatable.reset() Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 10, 2015 Share Posted November 10, 2015 and NOW introducing...goToFrame ;Dhttp://www.babylonjs-playground.com/#218MLS Vousk-prod. 1 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 10, 2015 Share Posted November 10, 2015 Nice !!!!! Thanks. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 11, 2015 Share Posted November 11, 2015 Hmm, I tried speed ratio value greater than 1 but that doesn't speed up the animation.From 0 to 1 it slows down the anim, but above 1, animation always keep normal speed.Is it normal ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 11, 2015 Share Posted November 11, 2015 no and it seems to work for me:http://www.babylonjs-playground.com/#F4SZU Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 11, 2015 Share Posted November 11, 2015 Hmm... the difference I see between your scene and my test scene is that my scene has animations exported from 3D modeler. Could that be a reason ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 11, 2015 Share Posted November 11, 2015 This is exactly the same code executed behind the scene. What kind of animations? Vector3? matrices? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 11, 2015 Share Posted November 11, 2015 Don't know. Meshes positions are animated in blender (not each frame, interpolated, 4 keys created inside 100 frames - for instance -).Then all of this is exported to babylon file.In BJS I simply call :scene.beginAnimation(mesh, 0, 100, false, 4); and animation goes normal speed (equivalent ratio = 1). Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 11, 2015 Share Posted November 11, 2015 can you share it with a reference to babylon.max.js somewhere? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 12, 2015 Share Posted November 12, 2015 Erm... forget it, I transfered one of my scene objects in a playground to demonstrate, and it works... So this is clearly not a BJS bug!I need now to understand why it doesn't work in my complete scene (certainly a strange bad method call somewhere, because it works with value below 1) Quote Link to comment Share on other sites More sharing options...
Blax Posted November 12, 2015 Author Share Posted November 12, 2015 @Wingnut, you was right, respect! )@Deltakosh, thanx you for fist bugfixing! It very important and cool for engine. Quote Link to comment Share on other sites More sharing options...
Blax Posted November 12, 2015 Author Share Posted November 12, 2015 and NOW introducing...goToFrame ;Dhttp://www.babylonjs-playground.com/#218MLS Wow! What we need! upd: this must will be in doc Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 12, 2015 Share Posted November 12, 2015 Ok, found the problem, I totally forgot that I capped speed between 0 and 1 earlier in the project... Quote Link to comment Share on other sites More sharing options...
Blax Posted November 12, 2015 Author Share Posted November 12, 2015 I'm pretty sure Animatable is not DK's work, I think it's something JCP added afterwards in the engine (but I can be wrong). Think LensRenderingPipeline was writed something other developer (interface style is different).@Deltakosh I guessed? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 12, 2015 Share Posted November 12, 2015 You are right I did not develop the LensRenderingPipeline:) Looks like archaeology..finding who writes what afterwards Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 12, 2015 Share Posted November 12, 2015 @Blax: as part of the community now, you can update the doc if you want Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 12, 2015 Share Posted November 12, 2015 jahow wrotes the LensRenderingPipeline (I'm totally sure of that this time , I worked in conjonction with him - by making many real test cases - to help him enhance it) Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 12, 2015 Share Posted November 12, 2015 What was I right about, Blax? (ref a few posts ago) I missed it, apparently. I need all the ego-boost I can get. "respect?" Hell, I try to do comedy, Blax... so I rarely show respect for anything or anyone. heh. I AM PUPZILLA!! (See? A weak comedy attempt to ref another thread... just bad comedy writing.) Quote Link to comment Share on other sites More sharing options...
Blax Posted November 13, 2015 Author Share Posted November 13, 2015 @Blax: as part of the community now, you can update the doc if you want Uh, great, how i can do this? Quote Link to comment Share on other sites More sharing options...
Blax Posted November 13, 2015 Author Share Posted November 13, 2015 What was I right about, Blax? (ref a few posts ago) I missed it, apparently. I need all the ego-boost I can get. "respect?" Hell, I try to do comedy, Blax... so I rarely show respect for anything or anyone. heh. I AM PUPZILLA!! (See? A weak comedy attempt to ref another thread... just bad comedy writing.) About animationStarted bug.Hmm, if you do not like my "respect", urgently bring him back!!! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 13, 2015 Share Posted November 13, 2015 Documentation doc:http://www.html5gamedevs.com/topic/16365-contributing-to-documentation-101/ Quote Link to comment Share on other sites More sharing options...
Blax Posted November 16, 2015 Author Share Posted November 16, 2015 Documentation doc:http://www.html5gamedevs.com/topic/16365-contributing-to-documentation-101/ o-o.. too much stuff must dig Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.