Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-23-2009, 07:42 PM   #1 (permalink)
Nitrex88
New Member
 
Nitrex88's Avatar
 
Join Date: Apr 2008
Location: Long Island, NY
Age: 21
Posts: 84
Nitrex88 is an unknown quantity at this point
Send a message via AIM to Nitrex88 Send a message via Skype™ to Nitrex88
Default GLUT --> openGL ES help!!!

Ok I'm trying to learn fluid simulation and the best I could find was using the navier stokes equations for fluid simulation in gaming. A very in depth article about this was created by Jos Stam. The article can be found here...

http://www.google.com/url?sa=t&sourc...sDBl28cphoIxUQ

Along with this article (on Jos Stam's website) I found a link to a full C project written in openGL and GLUT creating this fluid simulation. You can download it yourself from his website if you want. I went ahead and packaged it in an xcode project already and you can see it here...

www.nitrexpro.com/GLUT_Fluid_Example.zip

Just build and go to run. To add density you right click and hold and then click with left mouse button to apply forces. You can also hit "V" to see a line version of the velocity.

Anyway I'm trying to port this to iPhone which does not have GLUT and i am having some trouble. I know it can be done and a video using this exact code ported to iPhone can be seen here...

Besmoke - Interactive Fluid Simulation with iPhone and Sound Reactivity on Vimeo

Therefore i know it can be done but i cannot figure out the transition. If any of you are up for the challenge and have some spare time can you try to make the changes in code so it will run on iPhone. I dont need the velocity view with the lines and stuff, just the stuff with adding density and pushing it around (you will see). If not can you perhaps give me some pointers on what needs to be changed and where to look or start. This forum has been super helpful so hopefully someone can solve this problem too. Thanks a ton!

Nick
Nitrex88 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,630
Threads: 94,088
Posts: 402,800
Top Poster: BrianSlick (7,990)
Welcome to our newest member, RickyGervaiss
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.