Another Flag Scene Node

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Another Flag Scene Node

Post 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
Last edited by Klunk on Sun Oct 30, 2011 6:01 pm, edited 1 time in total.
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Another Flag Scene Node

Post by ACE247 »

Very nice! I see its even shader based. But cant run the exe directly, says my side by side configuration is incorret.
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Re: Another Flag Scene Node

Post 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.
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Another Flag Scene Node

Post 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!
eejin
Posts: 97
Joined: Sun Jul 24, 2011 11:50 am

Re: Another Flag Scene Node

Post by eejin »

Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Re: Another Flag Scene Node

Post by Klunk »

i think you confused me with someone who gives a crap :wink:

another jolly roger

Image
fmx

Re: Another Flag Scene Node

Post by fmx »

Heh, interesting experiment :)
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Re: Another Flag Scene Node

Post by cobra »

This is very impressive. The flag animation looks great and quite fluid.

Well done.
Josiah Hartzell
Image
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Re: Another Flag Scene Node

Post by Klunk »

thank you, I wish could take the credit :D
tbw
Posts: 59
Joined: Sat Jan 15, 2011 9:51 am
Location: Germany

Re: Another Flag Scene Node

Post by tbw »

Awesome! Thank for sharing this. :)
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Re: Another Flag Scene Node

Post 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.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Another Flag Scene Node

Post by mongoose7 »

That's what "side-by-side configuration" refers to, as in the earlier post. No one seemed to be interested then.
Klunk
Posts: 264
Joined: Mon Jan 10, 2011 5:21 pm

Re: Another Flag Scene Node

Post 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
Post Reply