Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C OpenGL
hi,
 
I am trying to simulate the process of how a star is formed by the particle system. I am new to OpenGL so I have no idea where to start. I am currently trying to simulate objects that would be the particles but I don't know how to get it to come together to form a star.
 
I hav searched the internet for guides on where to start but most article guide using C++... the problem is that i mayb approaching this project on a totally wrong approach but i dont know how else to approach it... I am consulting a mathematician rite now n iwas advise to create one particle and call it in a random function and i have done that but i am not used to opengl so i am having alot of problem with the display... I dont want to waste ur time so am trying to give u the entire overview of whats going on...
 
How do i get the particle to move towards one direction, as a magnet would attract metals cause its basically a method like that i am thinking i need but i may b wrong....
 

 
Can anyone help me please?
 
Thanks
Posted 1-Apr-11 5:03am
Edited 1-Apr-11 7:47am
v3
Comments
Henry Minute at 1-Apr-11 10:14am
   
Are you saying that you do not know/understand the principles/math involved in the subject, or that you just do not know how to visualise it using OpenGL?
 
It would help, if you edited your question to make this clear.
Smithers-Jones at 1-Apr-11 12:17pm
   
Posted by OP as answer:
"i dont understand that math involve... i was told that i hav to use some formula but i dont know where to start. I was thinking to create one particle and then generate it using a random function but that is not working so far...
 

Hope i have helped in clearing up the question...
 
Help!"
 
I deleted your fake answer. Use "Improve question" to go back and add more information.
 
A start would be to find out, which formula you should use - "some formula" is a bit vague, don't you think so?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Surely, the place to start is not with the OpenGL implementation, but with the physics?
 
Get your algorithm for star formation sorted first, using a random cloud of particles (or a defined initial state) and process it until you end up with a star, or something vaguely recognisable as a star. Worry about the presentation when the damn thing works in the first place!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

This[^] is the simplest explanation I could find. It is broken down into steps and it contains some named formulae that will at least give you some terms to search on.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

As pointed out by our Original, you need to worry first about having a 'reasonable' physical model and then of its presentation.
Random motion might describe a gas, wherein the particles move freely, that is they under no forces (only collisions happen). On the other hand, in order to form an aggregate of particles (like a star is) you need to add the gravitational force.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

instal autodesk maya or max and make it easyer instead of programing a particle system.
 
btw. there are presets for star explosions and star forming. and they have high definision quality for movies Wink | ;)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

ISBN 1-55860-740-4
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,149
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 16 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100