Skeletal API

Started by AGP, May 30, 2007, 09:51:04 PM

Previous topic - Next topic

AGP

Manumoi, please stop writing about "us" as if you're representing anyone but yourself. You haven't been waiting nearly as long as I have, so I don't expect you to be as anxious. Thank you.

hytparadisee

Today I finally found a problem to my soluuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuution

cyberkilla

#17
I have finished the example program. It is 3:30am now though. Ill upload it tomorrow.
Its really quite simple though:

OgreXMLLoader.loadOgreXML()
SkeletalObject3D.advanceAnimation()

Thats all you need to get it to do 'something':)

Also, I haven't tried with multiple animation sequences, because I just didn't happen to have any models with more than one movement in:P
However, by the looks of it, I did allow multiple animations.
There is code in the OrgeXMLLoader I made which loads multiple animation sequence blocks,
and a function set in the SimpleAnimation class for changing the current sequence.

Naturally, I could add more functions for better ease of use, but right now, it seems to work, which is one heck of an achievement considering I knew nothing about skeletal animation before this little project:)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

AGP

Cooooool. Are you also uploading the files themselves so we can see how they're built? Again, thank you.

AGP

I see you already included two models in the original package. What makes those files? Blender? How about my original assumption of a SimpleBone(SimpleVertex joint1, SimpleVertex joint2) constructor so we can manually build a bone structure?

cyberkilla

It should be possible. I'd check out how I am doing it in the source code.

I'm almost ready to upload it.

I think ill include the examples in this package to for the sake of it.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

cyberkilla

Here you go:

http://rpwar.com/cyber3/SkeletalExample.zip

I am sorry about the delay, and I realise this example is pretty simple, but time is a luxury I do not have at the moment;)

There is more to the skeletal api than I have shown, and much more potential, but I haven't got round to adding new stuff, because I am not currently working on FutureRP - Codenamed 'Round 4' :P
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

AGP

Thanks a lot. I appreciate it.

Now if we could get the constructor to SimpleBone... :-)

EgonOlsen

FYI: I've added the example to the distribution in the download section.

cyberkilla

Great:) It should suffice for now. It is simple enough to understand.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

manumoi

Great,

Thanks for the hard work cyberkilla ;)

joaogabrielm

Can anybody send this example to me?
Thanks!

EgonOlsen


joaogabrielm

No! I have this...
I want that example that Cyberkilla published in this link http://rpwar.com/cyber3/SkeletalExample.zip!
This link is broken now...  :(
Thanks for your help!

cyberkilla

Hello again!

I'm sorry I've been away for so long. I'm running a start-up business based around my other game and it's taking up all of my time.

I still have intentions to work on a 3d version, so I will have to return at some point.

I took that link off-line accidentally when I changed hosts.
I will try to find it for you today, from a backup drive.

It has been months since I last looked at the source code, so I have forgotten how it works for the most part;)

If you have any questions I will make sure I reply to them through this thread.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG