Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Loading .Obj Animation in Agk

Author
Message
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 26th Jan 2020 13:21 Edited at: 26th Jan 2020 13:25
Hi there . Lastly this cuestion have been asked . How to load an animation from Wavefront(.obj) . When we have our object riggid and ready to export, take kare of marking the animation box .
Blender (in this case) will save every frame as a single mesh . Then we can use this code :




In order to make collision work with all differntet meshes we have to SetObjectMeshCollisionMode(my_obj,mesh,0)


I'm not a grumpy grandpa

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 26th Jan 2020 20:44
Good trick Chafari
Everywhere I have read across the web wavefront Obj don't support animations
that's part of the reason most sites with Obj's are static. I guess the newer formats
do support animations, and its great to see that we can utilize that in AppGameKit

Il have to remember this as its one of the common questions asked on the forum
MerryChristmas Everyone
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Jan 2020 08:36
Thanks fubarpk . I have to say that this trick is not mine...this is the way old quake use 3D meshes. Blender has this option to export every keyframe to do exactly that and usin this "trick" we can animate any format . The best formats for me are .x and fbx.
Cheers.
I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-04-16 22:29:50
Your offset time is: 2024-04-16 22:29:50