Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.
Moderator: Coders of Rage
Ginto8
ES Beta Backer
Posts: 1064 Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java
Post
by Ginto8 » Thu Dec 30, 2010 8:04 pm
I haven't really looked at the link, but the first thing I think of when I hear "fire painter" is this:
http://en.wikipedia.org/wiki/Computatio ... d_dynamics
Quit procrastinating and make something awesome.
Ducky wrote: Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
xiphirx
Chaos Rift Junior
Posts: 324 Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:
Post
by xiphirx » Thu Dec 30, 2010 8:08 pm
That looks a bit off of what the application uses, maybe a bit too complicated for it..
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Thu Dec 30, 2010 9:22 pm
Its just looks like a list of points, where each is attracted to each previous one, with the first one being attracted to the mouse, looks like some random noise is added. no real algorithm.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
xiphirx
Chaos Rift Junior
Posts: 324 Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:
Post
by xiphirx » Thu Dec 30, 2010 9:28 pm
avansc wrote: Its just looks like a list of points, where each is attracted to each previous one, with the first one being attracted to the mouse, looks like some random noise is added. no real algorithm.
Okay that sounds right since that's all I observed... So attraction then.... That would be as easy as easing the movement on a vector from one point to another point right?
dandymcgee
ES Beta Backer
Posts: 4709 Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:
Post
by dandymcgee » Thu Dec 30, 2010 11:21 pm
xiphirx wrote: avansc wrote: Its just looks like a list of points, where each is attracted to each previous one, with the first one being attracted to the mouse, looks like some random noise is added. no real algorithm.
Okay that sounds right since that's all I observed... So attraction then.... That would be as easy as easing the movement on a vector from one point to another point right?
Sounds like a good start.
Falco Girgis wrote: It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
xiphirx
Chaos Rift Junior
Posts: 324 Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:
Post
by xiphirx » Fri Dec 31, 2010 9:38 pm
Hmm... Actually, looking at the "jigglyness", it seems like he uses the easing from
http://www.robertpenner.com/easing/easing_demo.html (choose easeInOutBack)
I'll try to start programing a prototype soon and post results.
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 31, 2010 10:09 pm
Id probably just use the inverse of the gravitational constant, as i suspect that is what is going on there.
1/(gravitational_constant * m1*m1/r^2
r is the distance from the two bodies so dont mess with the sqrt
return m1.x*m2.x +m1.y*m2.y;
something like that.
ps: happy new new year folks.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
xiphirx
Chaos Rift Junior
Posts: 324 Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:
Post
by xiphirx » Fri Dec 31, 2010 10:25 pm
Sorry, idiot terms please? lol I didn't understand all of that D:
What do m1 and m2 represent? and where do I use this equation, to move points to one another?
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 31, 2010 10:35 pm
xiphirx wrote: Sorry, idiot terms please? lol I didn't understand all of that D:
What do m1 and m2 represent? and where do I use this equation, to move points to one another?
http://en.wikipedia.org/wiki/Newton's_l ... ravitation
altho i would apply only the force to the bodie "following"
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
xiphirx
Chaos Rift Junior
Posts: 324 Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:
Post
by xiphirx » Tue Jan 04, 2011 1:32 pm
Alright, I started to program my own version. I'll post builds as I finish them :P
http://arse.voidteam.net/Personal/fp1.zip
thejahooli
Chaos Rift Junior
Posts: 265 Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England
Post
by thejahooli » Tue Jan 04, 2011 1:57 pm
That is awesome. I played with it for about 10 minutes and now I really want to make my own program like this.
I'll make your software hardware.
Singleton
Chaos Rift Newbie
Posts: 26 Joined: Tue Jan 05, 2010 10:32 pm
Favorite Gaming Platforms: SNES, PC
Programming Language of Choice: C\++,x86\64 assembly
Location: Maya temple, Brazil
Contact:
Post
by Singleton » Tue Jan 04, 2011 3:31 pm
Haha pretty nice application, seeing cool stuff like that is really inspirational, as thejahooli said. Good job
What a funny looking child... Wait, it's a dog!
dandymcgee
ES Beta Backer
Posts: 4709 Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:
Post
by dandymcgee » Tue Jan 04, 2011 4:41 pm
That would make an awesome screensaver.
Falco Girgis wrote: It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
xiphirx
Chaos Rift Junior
Posts: 324 Joined: Mon Mar 22, 2010 3:15 pm
Current Project: ******** (Unkown for the time being)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Contact:
Post
by xiphirx » Tue Jan 04, 2011 4:46 pm
Another build, I think I'm digressing from the original goal, oh well, I think its cool D:
http://arse.voidteam.net/Personal/fp2.zip