New sprites based nebulae
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
New sprites based nebulae
I'm starting a new nebula projet, out of some old Mathematica codes I've done during the previous years. I intend to built something more precise, with *eventually* filaments and some rich internal structures, using the Legendre polynomials. I can't tell if I'll be successfull with this, but it's an interesting experiment anyway.
Here's a first draft :
Here's the model itself, placed around 82 Eri for testing purposes :
Navigating inside (if you placed some planets, spacecrafts, etc) is fun.
EDIT : Nomore Legendre polynomials. I'm using the Beta distribution instead.
http://en.wikipedia.org/wiki/Beta_distribution
Here's a first draft :
Here's the model itself, placed around 82 Eri for testing purposes :
Navigating inside (if you placed some planets, spacecrafts, etc) is fun.
EDIT : Nomore Legendre polynomials. I'm using the Beta distribution instead.
http://en.wikipedia.org/wiki/Beta_distribution
Last edited by Cham on 29.08.2011, 17:34, edited 2 times in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 3 months
Re: New sprites nebula (from old)
--- edit ---
Last edited by John Van Vliet on 19.10.2013, 07:09, edited 1 time in total.
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
john Van Vliet wrote:looks nice
but i have a question
In both test1 & 2 cmod
there is a invisible cube
as to the mesh
it looks like it is a perlin noise function
The invisible cube is used to center the model. Without it, the model may have an apparent offset relative to the central object (a star, for example). With lots of random sprites on a spherical shell, the cube isn't really necessary, but it helps. It becomes especially important if the nebula has a non-spherical shape (which I'll try to do once I master the technique for ellipsoidal planetary nebula).
I know nothing about the perlin noise function. What I'm doing is to define a distribution of randomly sized sprites on a spherical shell (uniform distribution between some min and max sizes). The sprites are also randomly distributed on the surface of the sphere (uniform distribution) and on its thickness (gaussian distribution).
By weighting the various distributions for some specific positions, I could get non-spherical shapes. I'll also try to use the Legendre polynomials as statistical distributions, instead of simplistic uniform distributions on the sphere.
Last edited by Cham on 21.08.2011, 20:54, edited 1 time in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Re: New sprites nebula (from old)
The auto-centre behaviour can be switched off for ssc objects but not dsc or stc objects. Kind of annoying, probably should take another look at that.
Re: New sprites nebula (from old)
Cham, do you have taken into account the Voronoi tassellation?
Never at rest.
Massimo
Massimo
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
Fenerit wrote:Cham, do you have taken into account the Voronoi tassellation?
No. What's that ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
Here's another prototype (the oblate shape is intentional. Feels more "natural" that a perfect sphere) :
Here's the model for you to play with. Just use the same SSC file as given in the first post.
The colors can easily be edited in the cmod file...
Here's the model for you to play with. Just use the same SSC file as given in the first post.
The colors can easily be edited in the cmod file...
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
The frame rate hit is large, if the model has more than about 10k sprites. So I'll limit myself to about 1000 or 2000 sprites.
Also, there's a rendering problem when the sprites are very large, as seen from the inside of the model : moving the point of view makes some blobs to appear or disappear suddenly, when their center is close to the screen's edge. This is annoying, and inevitable.
Anyway, here's another model, which I think looks very nice from its outside :
And here's the model itself (again, use the SSC given in my first post, as a test) :
Also, there's a rendering problem when the sprites are very large, as seen from the inside of the model : moving the point of view makes some blobs to appear or disappear suddenly, when their center is close to the screen's edge. This is annoying, and inevitable.
Anyway, here's another model, which I think looks very nice from its outside :
And here's the model itself (again, use the SSC given in my first post, as a test) :
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
Here's another model. Its stucture is very interesting, and I may have something great here. Very nice from the interior too.
Of course, the color is arbitrary and may be edited in the cmod file, since it's a pure text file :
To test the model, use the same ressources as given in my first post (SSC and texture files) :
Of course, the color is arbitrary and may be edited in the cmod file, since it's a pure text file :
To test the model, use the same ressources as given in my first post (SSC and texture files) :
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
Now here's a surprising result. I'm not sure yet if it's good or not :
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
Here are two other variations. The 3D effect is looking pretty convincing, in Celestia.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
Guys, I need your opinion. Here are five nebula models to be tested. Test1 is probably too dense. Test2 and Test3 are alike (some variations are a good thing), while test4 and test5 are alike and have more colors (test5 is more fluffy than test4).
Which one do you prefer, and why ?
Just place the NebulaeTest folder inside your extras folder and start Celestia. Then type in "Test (test1.cmod)" up to "Test (test5.cmod)" to visit the nebula's interior (the white sphere is just there as a reference to be clicked on), and move also around the nebula's exterior.
Before doing more nebulae, I need to know how they are performing on other systems (frame rate, rendering quality, etc).
Which one do you prefer, and why ?
Just place the NebulaeTest folder inside your extras folder and start Celestia. Then type in "Test (test1.cmod)" up to "Test (test5.cmod)" to visit the nebula's interior (the white sphere is just there as a reference to be clicked on), and move also around the nebula's exterior.
Before doing more nebulae, I need to know how they are performing on other systems (frame rate, rendering quality, etc).
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Re: New sprites nebula (from old)
Not good with an ATI HD 2400. All drivers up to date.
Vendor: ATI Technologies Inc.
Renderer: ATI Radeon HD 2400
Version: 3.2.9704 Compatibility Profile Context
GLSL version: 1.50
Max simultaneous textures: 8
Max texture size: 8192
Max cube map size: 8192
Point size range: 1.000000 - 63.000000
Tim
Vendor: ATI Technologies Inc.
Renderer: ATI Radeon HD 2400
Version: 3.2.9704 Compatibility Profile Context
GLSL version: 1.50
Max simultaneous textures: 8
Max texture size: 8192
Max cube map size: 8192
Point size range: 1.000000 - 63.000000
Tim
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
fungun wrote:Not good with an ATI HD 2400. All drivers up to date.
How old is that video card ? The sprites should work on most video cards from the last few years.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Re: New sprites nebula (from old)
Cham, test4 is my favorite.
@Tim, your sprite's view looks like on my sistem with OpenGL 2.0 render path not active. It seem more like points mesh than sprites.
@Tim, your sprite's view looks like on my sistem with OpenGL 2.0 render path not active. It seem more like points mesh than sprites.
Never at rest.
Massimo
Massimo
Re: New sprites nebula (from old)
Never at rest.
Massimo
Massimo
Re: New sprites nebula (from old)
Yea she's pretty old.
I went through every setting I could on the card and in Celestia.
Tim
I went through every setting I could on the card and in Celestia.
Tim
Re: New sprites nebula (from old)
Your card has all the requisites to run Celestia like a charm. OpenGL card specification is 3.1. Latest drives version is 11.8. Can I ask you which Celestia's version you have and how you do update it amongst versions. Maybe do you have missing some shaders?fungun wrote:Yea she's pretty old.
I went through every setting I could on the card and in Celestia.
Tim
Never at rest.
Massimo
Massimo
-
Topic authorCham
- Posts: 4324
- Joined: 14.01.2004
- Age: 60
- With us: 20 years 10 months
- Location: Montreal
Re: New sprites nebula (from old)
I'm adapting the previous technique to rings as well. A first draft :
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
- Hungry4info
- Posts: 1133
- Joined: 11.09.2005
- With us: 19 years 2 months
- Location: Indiana, United States
Re: New sprites nebula (from old)
Very nice! Clear applications to ? Pic and Fomalhaut.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics