About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Problem with importing own character
Author Message
Ogniok Offline
Member

Post: #1
Problem with importing own character
Hi!

I have a very weird problem which I have been trying to resolve entire last week. I have imported main character for my game into esenthel editor. There, everything looks good.
[Image: EbHDo.png]
Every bone is named just like in this article: http://www.esenthel.com/wiki/index.php?title=Skeleton
[Image: bLo67.png]
Also both of the two imported animations(stand.anim & run.anim) looks good:
[Image: RD6wC.png]
[Image: MODIQ.png]
(I know that run animation is weird - it is because it's not completed yet)

But when I start my game or try to play my world in Editor, my character is not standing right:
[Image: dsNVq.jpg]
[Image: zso9s.jpg]
Running animation is good, but when he's idle he looks like this.

Can you please help me with that? What do I have to do to make this character working?

If you will need any additional information to help me i will provide it ASAP. smile
(This post was last modified: 08-07-2012 05:14 PM by Ogniok.)
08-06-2012 01:04 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Problem with importing own character
Hello,

The world editor uses default animations which are not compatible with your model.
you need to do programming and setup your own animations.
08-06-2012 07:46 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #3
RE: Problem with importing own character
I have replaced default animations in directory "Data/Anim" with my own.

(In game it looks the same.)
(This post was last modified: 08-07-2012 07:35 AM by Ogniok.)
08-07-2012 07:34 AM
Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #4
RE: Problem with importing own character
Did you also change any code in your own custom exe build?
08-07-2012 05:04 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #5
RE: Problem with importing own character
Code in my own exe is taken from tutorials.

Screens which I have uploaded and inserted in the first post have been taken in Editor.
(This post was last modified: 08-07-2012 05:32 PM by Ogniok.)
08-07-2012 05:14 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #6
RE: Problem with importing own character
I have changed "stand.anim" to "stand2.anim" and now working... Weird...

It's playing right animation, but when I am looking around myself character moves his legs weird.

Here is a video:



(Notice how his legs are moving.)
08-08-2012 12:53 AM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #7
RE: Problem with importing own character
Very silly question, but did you match the names of the skeleton as specified here: http://www.esenthel.com/wiki/index.php?title=Skeleton

or did you override the skel names via code?
08-08-2012 04:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #8
RE: Problem with importing own character
They are matching.

Here is the skeleton file: http://www.mediafire.com/download.php?8llfvi9kcv1fb6a
08-08-2012 10:13 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #9
RE: Problem with importing own character
this is related to Game::Chr dynamically rotating some bones to make the character look up/down.
details available in the Esenthel C++ Game Object Sources in Esenthel Store.
08-10-2012 02:30 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #10
RE: Problem with importing own character
I know it is related to it, but i think it shouldn't work that way. Default esenthel characters legs are not moving while character is moving his head up and down.
08-10-2012 04:17 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Problem with importing own character
transforming a bone transforms its children as well
it means that your bones must be a child of the bones that are being transformed
08-14-2012 02:32 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #12
RE: Problem with importing own character
I've checked your model and this is the case which I posted you in message above
I recommend getting EE C++ game object classes sources from the store, and seeing how the Game.Chr class does the bone animation.
09-26-2012 01:33 PM
Find all posts by this user Quote this message in a reply
Post Reply