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 / Child objects in animated object

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 7th Mar 2019 21:17 Edited at: 7th Mar 2019 21:38
The BoneAnimation example of the AppGameKit comes with a model named Original_Soldier.x
This model is being loaded correctly, using the LoadObjectWithChildren command, and the Gun is considered as a child object.
How can I create models that contain child objects using a 3D app?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Mar 2019 22:41 Edited at: 7th Mar 2019 23:23
I cannot verify this because whenever i load and then save the object in UU it destroys the child mesh info for some reason.
Have you tried exporting the "Scene" rather than the model?

Experimenting with blender i got it to work by, selecting alll the meshes, then exporting to .x. As far as blender is concerned i had to check "Export animations", even though i didn't have any animations in my scene

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 8th Mar 2019 00:30 Edited at: 8th Mar 2019 00:32
If your exporting to .x chafari has a great thread https://forum.thegamecreators.com/thread/223848
it includes some options that blink has left out in his picture which work great for animated .x files with and without children
unfortunately Blender doesn't seem to remember them for next time

fubar
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Mar 2019 01:15
I think george uses maya or 3D studio. I'm hoping there are parallels between them
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 8th Mar 2019 02:12
From my experience, when exporting from Blender the child object needs its own armature.
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 8th Mar 2019 08:34 Edited at: 8th Mar 2019 08:37
Hi guys,
Thank you for your responses.
First of all my tools are: Silo3D ( this the best all over the world... ), UU & Akeytsu (@blink0k: although I have 3DS Max I don't use it because I am not familiar with it)
Here is what I've done so far:
I created a simple scene using silo 3D and exported the scene in .FBX format
I imported the scene into Akeytsu and made a simple animation
I exported the scene from Akeytsu in .FBX format. The LoadObjectWithChildren crashes
I imported the scene into UU and I exported it using 4 different plugins (Autodesk FBX 2021, Autodesk FBX 2015, Autodesk FBX 2017 & Autodesk FBX 2019). The LoadObjectWithChildren crashes with 2019 & 2017 versions and works OK with 2015 & 2012 versions (no children though)
I imported the scene into Blender3D (all 4 different versions of my scene) and exported to .X format following the chafari's instructions. The LoadObjectWithChildren works fine but no children found

@AGK Team: I am an old poor man, do I deserve such a pain?

I hope that the upcoming AppGameKit Studio will have a better documentation and give some guide lines for a 3D pipeline compatible to the 3D commands

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 8th Mar 2019 09:05
maybe the naming of the children is the issue
not really sure just trying to help but wouldn't really know
fubar
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 8th Mar 2019 22:08
When i load your scenes into blender (2.79) i see nothing (Only animations). When i load it into UU it crashes
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 9th Mar 2019 06:27
Quote: "When i load your scenes into blender (2.79) i see nothing (Only animations). When i load it into UU it crashes"

Strange, the blender (2.79b) loads fine on my system


UU does not crash on my system. Are you using the latest version (3.50.44) and loaded all the fbx plugins? (2012, 2015, 2017, 2019) (attached)

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 10th Mar 2019 03:52 Edited at: 10th Mar 2019 03:53
I copied the plugins and UU worked fine (Didn't know that was a thing). I think my problem with Blender was, i imported it and it was hidden by that stupid box they always start with.
Anyway i exported it to .x with blender with ALL the animation boxes checked and was able to set the color of each child object;

Attachments

Login to view attachments
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 11th Mar 2019 19:49
@blink0k: could you please attach the .x file the one you managed to set the color of each child?
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 11th Mar 2019 20:32 Edited at: 11th Mar 2019 20:33
@george++


So duplicate a cube pressing alt+D+ enter then move right the second cube to see . Now Create a new material but instead of data, select object ...create two different matterial and select each cube to asign different colors. At first this could be a mess until we get it working .

I'm not a grumpy grandpa

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 11th Mar 2019 20:38
Sorry. Should have done that in the first place. If you want i could do a video

Attachments

Login to view attachments
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 12th Mar 2019 06:10 Edited at: 12th Mar 2019 06:11
@chafari & blink0k: My models are working as I expect. Thank you guys, you helped me a lot!

Login to post a reply

Server time is: 2024-11-05 23:26:44
Your offset time is: 2024-11-05 23:26:44