Flame Painter Dev Thread

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

User avatar
xiphirx
Chaos Rift Junior
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:

Flame Painter Dev Thread

Post by xiphirx »

Build 4: http://arse.voidteam.net/Personal/fp4.zip (click to draw)
Build 3: http://arse.voidteam.net/Personal/fp3.zip (click to draw)
Build 2: http://arse.voidteam.net/Personal/fp2.zip
Build 1: http://arse.voidteam.net/Personal/fp1.zip
http://www.escapemotions.com/experiment ... x.html#top

Please, someone, explain what type of math functions or algorithms are used for the trail?

I want to create something very similar to that D:

EDIT: It uses Processing http://processing.org/

And I noticed that the trails spiral into the cursor, but the spiral is jiggly...
Last edited by xiphirx on Wed Jan 05, 2011 3:37 pm, edited 3 times in total.
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Question about Math and Algorithm

Post by Ginto8 »

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.
User avatar
xiphirx
Chaos Rift Junior
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:

Re: Question about Math and Algorithm

Post by xiphirx »

Ginto8 wrote: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

That looks a bit off of what the application uses, maybe a bit too complicated for it..
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Question about Math and Algorithm

Post by avansc »

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"
User avatar
xiphirx
Chaos Rift Junior
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:

Re: Question about Math and Algorithm

Post by xiphirx »

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?
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
dandymcgee
ES Beta Backer
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:

Re: Question about Math and Algorithm

Post by dandymcgee »

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! :twisted:
User avatar
xiphirx
Chaos Rift Junior
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:

Re: Question about Math and Algorithm

Post by xiphirx »

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.
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Question about Math and Algorithm

Post by avansc »

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"
User avatar
xiphirx
Chaos Rift Junior
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:

Re: Question about Math and Algorithm

Post by xiphirx »

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?
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Question about Math and Algorithm

Post by avansc »

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"
User avatar
xiphirx
Chaos Rift Junior
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:

Re: Question about Math and Algorithm

Post by xiphirx »

Alright, I started to program my own version. I'll post builds as I finish them :P

http://arse.voidteam.net/Personal/fp1.zip
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: Question about Math and Algorithm

Post by thejahooli »

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.
User avatar
Singleton
Chaos Rift Newbie
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:

Re: Question about Math and Algorithm

Post by Singleton »

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!
User avatar
dandymcgee
ES Beta Backer
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:

Re: Question about Math and Algorithm

Post by dandymcgee »

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! :twisted:
User avatar
xiphirx
Chaos Rift Junior
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:

Re: Question about Math and Algorithm

Post by xiphirx »

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
StarCraft II Zerg Strategy, open to all levels of players!

Looking for paid work :< Contact me if you are interested in creating a website, need a web design, or anything else you think I'm capable of :)
Post Reply