Page 1 of 1

Another Flag Scene Node

Posted: Sun Oct 30, 2011 1:39 pm
by Klunk
my version of a flag scene node, enjoy.

the source is for a windows visual studio opengl build and the demo exe is a debug build so don't expect too many fireworks.

http://www.mediafire.com/?dn3d2pi5avo2bl9

the weight map will pin the flag where ever the map is black (remember its mapped to verts so the rez is pretty coarse) setting the "pinned" areas with
any kind of precision is a trial and error affair. I think this kind of approach could be used for a generic cloth scene obj.

Image

an additional flag texture

Image

Re: Another Flag Scene Node

Posted: Sun Oct 30, 2011 5:33 pm
by ACE247
Very nice! I see its even shader based. But cant run the exe directly, says my side by side configuration is incorret.

Re: Another Flag Scene Node

Posted: Sun Oct 30, 2011 5:47 pm
by Klunk
I'm sorry to say I've no idea what a side by side configuation is :oops: the shader part is for lighting only as irrlicht doesn't support the kind of material needed for this kind of thing.

Re: Another Flag Scene Node

Posted: Sun Oct 30, 2011 5:54 pm
by ACE247
I neither have a clue what the side-by-side config is :D
Also nice litte perlin Wind generator and lighting shader is definetly reusable for all kinds of cloth objects and obviously if you rotate this you can make towels on a line!

Re: Another Flag Scene Node

Posted: Sun Oct 30, 2011 6:22 pm
by eejin

Re: Another Flag Scene Node

Posted: Sun Oct 30, 2011 6:34 pm
by Klunk
i think you confused me with someone who gives a crap :wink:

another jolly roger

Image

Re: Another Flag Scene Node

Posted: Sun Oct 30, 2011 8:35 pm
by fmx
Heh, interesting experiment :)

Re: Another Flag Scene Node

Posted: Wed Nov 02, 2011 10:35 am
by cobra
This is very impressive. The flag animation looks great and quite fluid.

Well done.

Re: Another Flag Scene Node

Posted: Wed Nov 02, 2011 11:45 am
by Klunk
thank you, I wish could take the credit :D

Re: Another Flag Scene Node

Posted: Wed Nov 02, 2011 1:26 pm
by tbw
Awesome! Thank for sharing this. :)

Re: Another Flag Scene Node

Posted: Fri Nov 04, 2011 12:56 pm
by belfegor
Klunk wrote:...is a debug build...
That is a problem, unless user has same debug runtimes as you installed they can't run it. Build as "Release" so everybody can try executable.

Re: Another Flag Scene Node

Posted: Fri Nov 04, 2011 1:13 pm
by mongoose7
That's what "side-by-side configuration" refers to, as in the earlier post. No one seemed to be interested then.

Re: Another Flag Scene Node

Posted: Fri Nov 04, 2011 3:10 pm
by Klunk
for those who can't be bothered with compiling the source here is a release build (source is still in the original file)

http://www.mediafire.com/?ic1f2lq3il94dpa