My first CMOD sprites models

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

My first CMOD sprites models

Post #1by Cham » 05.10.2008, 15:58

While the version without emissivity crashed my Mac (total freeze of OS X !), the version with emissivity appears to be working well (? I'm not even sure of that yet !). The rendering is almost right (??), except that there isn't any lumpy shadows inside the dusty ring.

Preview (click for a large picture) :
sprites.jpg


Here's the model and its SSC, to play with it :
Sprites_prototype.zip


The model has 10 000 points in it.

I can generate very easily any kind of models like this, with Mathematica. Too bad it crashes the Mac when emissivity is OFF :evil:
Last edited by Cham on 08.11.2008, 14:32, 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!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #2by Cham » 05.10.2008, 16:19

I changed the picture used for the sprites. Adding some noise may help a bit, but we can feel a periodic pattern in the ring, because of the noise repeating itself on each small blob. Maybe we should have an option to randomize the picture orientation (Chris ?) :
sprites2.jpg

sprites3.jpg


Here's the texture used for this version :
blob.png
"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!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #3by Cham » 05.10.2008, 17:09

Here's another experiment :
accretion1.jpg

accretion2.jpg


There is differential rotation, in this case.
Last edited by Cham on 05.10.2008, 17:10, 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!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: My first sprites model (Oh well...)

Post #4by ElChristou » 05.10.2008, 17:09

First time I load point sprites in Celestia via my brand new config! It works well but I don't have the same result:
Image 1.jpg
Image

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #5by Cham » 05.10.2008, 17:11

ElChristou wrote:First time I load point sprites in Celestia via my brand new config! It works well but I don't have the same result:
Image 1.jpg

Maybe this is because I just changed the opacity in the model. Try this in the CMOD file :

Code: Select all

#celmodel__ascii

material  # invisible material for basic mesh below
  emissive 0 0 0
  diffuse 0 0 0
  opacity 0
end_material

material  # 1 Main parts
  emissive 0.55 0.5 0.5
  diffuse 0.55 0.5 0.5
  opacity 0.17
  texture0 "blob.png"
end_material
"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!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: My first sprites model (Oh well...)

Post #6by ElChristou » 05.10.2008, 17:17

Nope, I still don't have the difference in your shot between the ring in front and behind the planet. My "ring" is quite uniform, the opacity change but all over the ring...
Image

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #7by Cham » 05.10.2008, 17:18

Okay, try this version. Looks nice in Celestia (but ...) :
Sprites_prototype.zip

and add the following model into the models folder :
plasma_belt2.cmod.zip


This version is associated with the two last pictures given above (my previous post with pictures).
"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!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: My first sprites model (Oh well...)

Post #8by ElChristou » 05.10.2008, 17:24

Same; I have the two rings, but they are uniform... I guess it's an hardware symptom...
Image

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #9by Cham » 05.10.2008, 17:27

Try this URL :

cel://Follow/Sol:Jupiter/2008-10-05T23: ... 2048&ver=2

From this place, it's ugly :
cel://Follow/Sol:Jupiter/2008-10-06T01: ... 2048&ver=2

I feel that the sprites code isn't very good for this kind of stuff (accretion disks). The disk is becoming too opaque at a distance. Same thing as for the dust rings without sprites (CMOD dots only). Chris ?
Last edited by Cham on 05.10.2008, 17:30, 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!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: My first sprites model (Oh well...)

Post #10by ElChristou » 05.10.2008, 17:29

Nope, I will have to try on a fresh build... (a bit later)
Image

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 6 months
Location: Indiana, United States

Re: My first sprites model (Oh well...)

Post #11by Hungry4info » 05.10.2008, 21:59

It's pretty!

It makes my computer cry though. Frame rate plummets to 1 or 2 fps when I'm close to it.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 7 months

Re: My first sprites model (Oh well...)

Post #12by ajtribick » 05.10.2008, 22:39

Yes, the distance fading problem is annoying... pity, because it would be possible to make a really neat Beta Pictoris add-on with this kind of technique.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 18
With us: 18 years
Location: Thyrrenian sea

Re: My first sprites model (Oh well...)

Post #13by Fenerit » 07.10.2008, 10:02

Do someone has tried one point sprites' nebulae? It's fine. Nevertheless, there are pros and cons.
Pros:
Nebulae are seen in the same portrait from everywhere (right toggle doesn't change the view) so one is sure that the shape is that and no more "line" billboard viewed from different angle.

Cons; no one real nebulae rest in the same position when turned around...
Never at rest.
Massimo

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #14by Cham » 07.11.2008, 21:20

I made a new CMOD nebula model with sprites. It's working well in Celestia, but there's a strong problem, as shown on the second picture below.

The planetary nebula prototype at close range. Looks pretty, in full 3D :
nebulae1.jpg


The problem is shown here at large scale. There are many small red dots visible in the Milky Way, which is a bad thing. So the sprites code isn't well implemented in Celestia :
nebulae2.jpg


Here's the model for you to test, with Selden's old planetary nebulae (modified) addon :
PN.zip
Last edited by Cham on 07.11.2008, 22:13, 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!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first sprites model (Oh well...)

Post #15by Cham » 07.11.2008, 21:37

Modifying a simple parameter in the CMOD file gives some more convincing model :
neb1.jpg


However, there is still the problem with luminosity at large range (and sprite size with distance) :
neb2.jpg


Please Chris...

EDIT : Here's a variation with two colors :
pn.jpg
"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!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first CMOD sprites models

Post #16by Cham » 08.11.2008, 17:55

Nice nebula experiment (the only problem is the sprites model high luminosity at large distance :cry:) :
"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!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first CMOD sprites models

Post #17by Cham » 08.11.2008, 18:31

Another nice experiment with sprites (click the thumbnail for a larger picture) :
gas.jpg
"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!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first CMOD sprites models

Post #18by Cham » 08.11.2008, 19:50

Yet aother sprites experiment. Dark matter halo :
Dmatter.jpg


This spherical shell model behaves very well in Celestia, even at large distance.
"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!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: My first CMOD sprites models

Post #19by ElChristou » 09.11.2008, 13:50

If you want feedback, better post the models, else... :?
Image

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: My first CMOD sprites models

Post #20by Cham » 09.11.2008, 14:30

ElChristou wrote:If you want feedback, better post the models, else... :?

There's a test addon, on the previous page!
"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!"


Return to “Add-on development”