Samuel Girardin Posted January 22, 2015 Share Posted January 22, 2015 Hi, My typescript sources (as a VS community 2013 project) are now online, with the 3dsmax file. Developed with babylonjs 1.14. Enjoy ! http://www.visualiser.fr/page.php?id=Character_study_-_Babylonjs (source button on the top right). Decompress and launch oldman.sln. Just to remember one screenshot and one video : spritefire, HugoMcPhee, julien-moreau and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted January 22, 2015 Author Share Posted January 22, 2015 Forgot to tell that I made some minor changes in few babylon files and in oimo.js . Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 22, 2015 Share Posted January 22, 2015 That's huge! Samuel Girardin 1 Quote Link to comment Share on other sites More sharing options...
AndyBeaulieu Posted January 23, 2015 Share Posted January 23, 2015 Excellent work Samuel!! As you know I spent hours some time ago trying to get rag dolls working in babylon! I still need to poke around your code to see how you did it One small note on your sample code, which might be good for folks newer to Babylon... I had to add the mime extensions for the Babylon types to get it up and running (noticed a couple of 404's before that). <system.webServer> <staticContent> <!-- add mime types for babylon file types --> <mimeMap fileExtension=".fx" mimeType="application/shader" /> <mimeMap fileExtension=".babylon" mimeType="application/babylon" /> </staticContent> </system.webServer> Samuel Girardin 1 Quote Link to comment Share on other sites More sharing options...
davrous Posted January 23, 2015 Share Posted January 23, 2015 Great! Thanks for sharing. Samuel Girardin 1 Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted January 23, 2015 Author Share Posted January 23, 2015 Hi Andy, You're right about mime types. In my case I use local IIS Express and add to do something like this : appcmd set config /section:staticContent /+[fileExtension='.babylon',mimeType='application/babylon']appcmd set config /section:staticContent /+[fileExtension='.fx',mimeType='application/fx']An other important thing and maybe I already told you that. The key to get this demo works, was to not have hierarchy (if you prefer parent/child) between bones exported to babylon. Here you can find my really first start to achieve my demo : http://www.visualiser.fr/deltak/a/default.htm (4 to apply impulse)Sam Quote Link to comment Share on other sites More sharing options...
benoit-1842 Posted March 6, 2015 Share Posted March 6, 2015 What a cool work..... I am looking with interest at this huge work.... It's doing in a certain way what I am trying to achieve.... I am passing through the code and I was wondering where I can put one of my own animation... I look and study the code but I cannot find where the animation is in that code.... Thanx for any help, Benoit Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 8, 2015 Share Posted March 8, 2015 Hi B1842... good to see you. And hi Andy... good to see you again, too. And you too, Sam, Dav and DK. Benoit... if you look at the webpage source for http://www.visualiser.fr/deltak/a/default.htm ... you will see a file listed at the bottom... called z.js. Here is its url: http://www.visualiser.fr/deltak/a/z.js If you highlight and paste that code to a JS beautifier such as http://www.jspretty.com/ ... it will re-format the code to be more readable. Then... at or near line 160 (at the end of a messy mainloop), you will see this.iScene.startKeyframeAnimation() ... and the function that is being called... is at or near line 308. A keyframe animation function. These guys write some fancy code, eh? *nod* Sweet bones/skeleton demo, huh? *nod* (thx Sam!) I like it. I couldn't get any keypresses to work, there... FF or IE, though. Not sure what the story is on that. Maybe Sam will have insights. Be well! Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted March 8, 2015 Author Share Posted March 8, 2015 Hy wingy, I posted few weeks ago the complete source of the 'character study' here : http://www.visualiser.fr/source.php?id=Character_study_-_Babylonjs sam Wingnut 1 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.