M42 nebula in galaxy rendering

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
McWgogs
Posts: 8
Joined: 30.09.2004
With us: 20 years 1 month

M42 nebula in galaxy rendering

Post #1by McWgogs » 25.12.2006, 21:15

I was just experimenting with the galaxy rendering to see how would M42 nebula look like.
this is what i came out with:
Image

looks pretty good, apart form the color and all,
but if the code would be modified,
we could have nice cloudy models for some custom nebulas :)
how about that?

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #2by Cham » 25.12.2006, 21:18

This is interesting.


Could you give a download link so we can test it ?
"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 author
McWgogs
Posts: 8
Joined: 30.09.2004
With us: 20 years 1 month

Post #3by McWgogs » 25.12.2006, 21:25

Sure.
here's the png i used
(it's a random m42 photo i found in google, paintshopped.)
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #4by Cham » 25.12.2006, 21:29

Also, you should show the same nebula, as seen from various angles, so we could feel its 3D shape.
"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 author
McWgogs
Posts: 8
Joined: 30.09.2004
With us: 20 years 1 month

Post #5by McWgogs » 25.12.2006, 21:45

here you go
a short animation: (click)
Image
more of a galaxy :P
the code needs to be modified to support nebulas, (make e'm thicker, not galaxy flat, and colors from the png maybe?)
this is just proof-of-concept-like-thing,
yet looks better than the billboard meshes :)

Topic author
McWgogs
Posts: 8
Joined: 30.09.2004
With us: 20 years 1 month

Post #6by McWgogs » 26.12.2006, 12:50

Here's how it looks like in the correct place in Orion

Image

pretty good :) i'm keeping it :D

here's the code :

Code: Select all

Galaxy "M42"
{
        Type        "Irr"
        CustomTemplate    "m42.png"
        RA          05.586166
        Dec       -5.387833
        Distance         1400.3
        Radius              10
        AbsMag            -5
        Axis          [ -0.204464 0.509529 -0.835808]
        Angle          191.414
}


here's the model
Image


Return to “Development”