Could this show colors of galaxies?

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
SkyScraper
Posts: 34
Joined: 29.03.2006
With us: 18 years 7 months
Location: Romania, Bucharest

Could this show colors of galaxies?

Post #1by SkyScraper » 12.02.2007, 21:25

I just downloaded the M42 nebula in galaxy rendering from the forum
http://celestiaproject.net/forum/viewtopic.php?t=10543
So instead of adding the definition in deepsky.dsc and the png template to the models folder i made an addon and started Celestia.
The nebula looked more like a blue gas instead of a galaxy 8O
The problem is in the CustomTemplate declaration and it seems it's not working from an addon
If i add the definition in deepsky.dsc and the png template in the main models folder everything works great.
The question is:
Could a addon builder use a similar method to show the colors of a galaxy or the gas of a nebula?
And BTW why is it blue?

Topic author
SkyScraper
Posts: 34
Joined: 29.03.2006
With us: 18 years 7 months
Location: Romania, Bucharest

Post #2by SkyScraper » 15.02.2007, 21:05

Nobody knows anything about this?
My Celestia version is 1.5.0 pre2

Windows XP Professional SP2
2.5Ghz Intel Celeron D
X700 Pro Video card
512Mb DDR Memory
160Gb SATA Hard disk

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #3by t00fri » 15.02.2007, 21:49

SkyScraper wrote:Nobody knows anything about this?
My Celestia version is 1.5.0 pre2

Windows XP Professional SP2
2.5Ghz Intel Celeron D
X700 Pro Video card
512Mb DDR Memory
160Gb SATA Hard disk


Certainly...I coded much of the galaxy display in Celestia ;-)

But I don't understand what you want to do, really. Of course I have spent already a substantial amount of research into possibilities to achieve also a satisfactory /mass/ rendering of diffuse nebulae like M42.

Your observations did not tell me anything new. So I did not react, since I am very busy these days.

How about stating /clearly/ FIRST what is in your mind?

If you have an idea, but are unsure about what is going on, it's best to just look into the code directly. Even if your C++ knowledge is only marginal, you should be able to get a clearer perspective. At least my code is usually well commented.

The point is that most of the features like the color profile of galaxies and the galaxy templates only work within the galaxy class so far. Most of that material resides in the file src/celengine/galaxy.cpp and some in src/celengine/render.cpp.

Bye Fridger
Image


Return to “Development”