Cloth Sample

Everything about the development of Urho3D.

Cloth Sample

PostPosted by NiteLordz » 06 Aug 2016, 14:27

I was searching thru the forum, but couldn't find any mention of anyone working on a Cloth sample. I am wondering, cause i wanted to enable my models hair to move, and was going to simulate using a cloth simulation, unless someone has a better idea.

Thanks much
User avatar
NiteLordz
Some active
Some active
 
Posts: 51
Joined: 11 Feb 2014, 12:21
Location: United States

Re: Cloth Sample

PostPosted by codingmonkey » 08 Aug 2016, 09:31

Hi!
I want to note about hair
if urho3d use bullet there is must be to able to create similar stuff like in blender - with bones and constraints.
Actually i'm not dig deep into urho3d's physics, but i see only 2d constraints examples

Show spoiler
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: Cloth Sample

PostPosted by cadaver » 08 Aug 2016, 10:20

VehicleDemo sample has Bullet constraints (wheels attached to car body). However I'm not sure if it's a good idea performance-wise for hair, which contains a lot of small objects. Probably running a specialized lightweight simulation is more appropriate.
User avatar
cadaver
Urho3D author
Urho3D author
 
Posts: 1802
Joined: 16 Jan 2014, 14:52
Location: Finland

Re: Cloth Sample

PostPosted by Mike » 08 Aug 2016, 15:54

Ragdoll demo also makes heavy use of constraints.
Alternatively you could experiment with jiggle bones, or with shaders.
User avatar
Mike
Moderator
Moderator
 
Posts: 353
Joined: 16 Jan 2014, 20:35
Location: France

Re: Cloth Sample

PostPosted by carnalis » 09 Aug 2016, 03:08

Found some C++ source on Urho3D JiggleBone; might be of some use.
http://pastebin.com/hV1gJw8m
<Patrician|Away> what does your robot do, sam
<bovril> it collects data about the surrounding environment, then discards it and drives into walls
carnalis
Moderator
Moderator
 
Posts: 180
Joined: 21 Jan 2014, 19:00
Location: United States

Re: Cloth Sample

PostPosted by codingmonkey » 09 Aug 2016, 20:01

I just guess what we may use similar stuff from bullet

Code: Select all
However I'm not sure if it's a good idea performance-wise for hair, which contains a lot of small objects

Yes it meybe cause reduce of the perfomance with bullet, but CE use bones with somekind of constraints.
see this:
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk


Return to Developer Talk

Who is online

Users browsing this forum: No registered users and 0 guests

cron