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 Professional Discussion / How to do clothes movement?

Author
Message
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 22nd Mar 2015 20:11
I mean, like a flag, how can you animate it with realisic movements?
In 3ds max you can apply a Wave modifier and the movement is very realistic, although, when I export the file .x and convert it to .dbo the wave movement of the clothes is missing, I have made a little search and seen that even keeping the object to .x will have the wave missing because .x objects can't have vertex animation, how can I do then?
Sasuke
19
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 22nd Mar 2015 20:59
It's Soft Body Dynamics or Physics so you could either construct your own physics engine of which this is pretty complex or look at the various physics wrapper plugins

"Get in the Van!" - Van B
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 22nd Mar 2015 21:22 Edited at: 22nd Mar 2015 21:35
Can you link me to some of these plugins? I know there is something called dark physics but I don't know how to use it actually, I do have installed it.

Edit:

Looking at the examples seems that dark physics needs to create a new object to use that as physic objects, the problem is that the object i have need to be the same object I have already created:

Basicly I have a little boat, it already has an animation so that it moves with a little bit of rotation like the movement a boat should have with a few of waves.
The Sail boat is a limb of the boat, I want to animate that sail, so dark physics is useless in this case because it needs to create a new object, and even attaching it at the boat will not work because the animation of the boat will not changes his parameters (positions, rotation), so the sail will actually not being attached to it, but only following the boat when it will moves
James H
18
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 23rd Mar 2015 05:24
DBP comes with its own cloth physics already, you could check out this thread and download the examples to see if it is suitable for your needs
http://forum.thegamecreators.com/?m=forum_view&t=184904&b=18
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Mar 2015 13:09
Its a tall order for DBPro. The thing is you'd need really good collision detection, and even industry standard physics engines often don't have very good collision - usually it's a case of sticking a lot of primitives together, which are less than ideal for mimicking the shape of arms and legs, shoulders, elbows, and knees are usually ok as spheres but having square arms or legs will really mess with the effect.

In DBPro there's only really support for DX models, so bone animation only. You could glue a load of primitives to limbs and attach a PhysX cloth object, but it probably wouldn't look too great. Really I think you are stuck with manually animating cloth using bones, at least when it's on a character. PhysX cloth is good, but it's really only meant for flags and hanging washing and stuff like that (like Borderlands2) - character models are a bit too complicated to make real use if it.

I am the one who knocks...
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 23rd Mar 2015 18:33
I do not need it for the character, just for the sail boat, and yes, I will probably do a manual animation with bones and keep the file in .x. Will be hard doing that very realistic, it's a shame because the wave modifier of 3ds max was perfect
Stab in the Dark software
Valued Member
22
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 23rd Mar 2015 22:37
All you needed to do was search the forum.
Check out this post I tried this demo awhile ago and it worked well.

http://forum.thegamecreators.com/?m=forum_view&t=45585&b=5

WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 23rd Mar 2015 22:54 Edited at: 23rd Mar 2015 22:56
There is nothing but an exe on that demo, completely useless, also as I said previously, the sail boat should also follow the animation of the base boat (which doesn't change parameters like position and rotation so attaching it to the boat will not let it follow the movements)

PS: Stab please remember to check the inbox messages, i know this website doesn't warn you when you have a message so it's easy to lose them

Login to post a reply

Server time is: 2025-05-11 05:39:01
Your offset time is: 2025-05-11 05:39:01