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.

DarkBASIC Discussion / Play/Loop Object Problem

Author
Message
D a r k
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: In ur fridge, eatin ur foodz.
Posted: 17th Sep 2007 07:39
I have a model created and animated in 3D canvas. It is exported as ".x" and works fine in 3D Canvas.

When I load it into DB, It loads fine, and looks normal. However, when I play the animation, the parts of the model change places. Like the arm is where the head should be. The head is where the legs should be. The animation plays right, its just that it switches everything around. Why is this happening and how can I fix it.

Heres the code... Although, it was just a simple code to make sure the model and animations work.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 17th Sep 2007 17:12
I think I saw something about this in 3D Chat, are you using bones in 3D Canvas?
I'm not a modeller so I can't really help but have a look in 3D chat

In programming, nothing exists
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 18th Sep 2007 00:39
@Dark

It likely doesn't have to do with your code, but with how 3d canvas exported your model. Check 3d chat like Obese87 suggested. Often, when model packages export to X format, there are settings as to how to export normals, which direction y or z are, quad export versus triangle, and many other options. There may be some settings you can check or select for the export.

When the position of limbs or parts of the mesh are reversed or in different places or orders, Y and Z axes in the modeling program are reversed from what an X file expects. In DirectX, Y runs up and down, and Z runs into and out of the monitor (the direction you are looking). Also positive X is to the right, positive Y is up and positive Z is forward. See if there are any settings that allow you to control how the directx file is exported from 3d canvas.

Enjoy your day.
D a r k
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: In ur fridge, eatin ur foodz.
Posted: 18th Sep 2007 19:23
I've been searching in 3D Chat and I can't find anything related to this.

I'm not using bones. and it changes around the objects, not the way the objects move. Like the leg moves correctly, except instead of the leg being there, its the head. If anyone finds the topic in 3D Chat please post it here.

-Dark-
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 20th Sep 2007 00:30
I'm not 100% sure of this, but if I remember correctly, you have to use bones for animations to work in DBC, because mesh deformation isn't supported.

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 20th Sep 2007 18:27
Quote: "you have to use bones for animations to work in DBC, because mesh deformation isn't supported."

Other way round; Bones aren't supported in DBC, just DBP.

Our home is our world, our life, home is our world...
Homeworld: The ladder

Login to post a reply

Server time is: 2025-06-02 06:24:42
Your offset time is: 2025-06-02 06:24:42