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!

11,648,436 members (78,865 online)

Email

Password

Sign in using

It would help, if you edited your question to make this clear.

"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?