LDraw.org Discussion Forums
[LSynth] Suggestions - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: [LSynth] Suggestions (/thread-1058.html)

[LSynth] Suggestions - Stan Isachenko - 2011-10-05

I think we need Lsynth option, or other tool to create cloth elements, such as sails or other. I really don't understand how to realise it( But I think it is possible.

Re: [LSynth] Suggestions - Don Heyse - 2011-10-05

Something like this draping demo as a frontend to pathtruder would probably do it.

Re: [LSynth] Suggestions (net generator) - Don Heyse - 2011-10-05

Also, this is probably as good a place as any to mention the sometimes hard to find net generator spreadsheet.

Re: [LSynth] Suggestions - Philippe Hurbain - 2011-10-06

Don Heyse Wrote:
> Something like
> [url=http://www.custom-logic.com/exp/cloth/cloth.h
> tml]this draping demo[/url] as a frontend to
> [url=http://www.philohome.com/isecalc/pathtruder.h
> tm]pathtruder[/url] would probably do it.
I am afraid pathtruder would be of little use here. If you have the vertices coordinates of a triangulated mesh then you have the mesh itself...

Re: [LSynth] Suggestions - Don Heyse - 2011-10-06

Hmmm, I guess you're right about pathtruder. Oh well.

By the way, here's another example cloth simulation demo to get you all thinking. All we need is a button that says stop moving now and gimme the mesh in ldraw format...

Oooh, this one comes with source code. Who wants to add that button?

Re: [LSynth] Suggestions - Philippe Hurbain - 2011-10-07

I am not sure that these simulations provides enough flexibility for LDraw usage: how do we give the right shape (not rectangular)? how do we specify pinning points not in the same plane? There seems to be no notion of rigidity/elasticity of the cloth (eg. minifig capes are quite rigid).

Re: [LSynth] Suggestions - Tim Gould - 2011-10-08

If you associate a normal with each point you can add a rotational spring constant by looking at the dot products of neighbouring normals. It's not going to do cape too well since they're papery (which is different physics again) but it would give more accurate stiffness.[1]

The hard part is not so much doing the physics of the cloth, but dealing with the constraints. Making sure the cloth doesn't pass through itself is challenging enough, making sure it doesn't pass through anything else is even harder.

I think I could deal with the physics for the cape part but I simply don't have any time for the programming. If anyone is desperate to do some coding I'd be happy enough to help.


[1] Actually I've got an idea how you could do paper too by considering lines as potential creases but it all gets a bit nasty.