Make an object illuminate itself

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Felix
Posts: 2
Joined: 14.04.2003
With us: 21 years 7 months
Location: Munich / Germany
Contact:

Make an object illuminate itself

Post #1by Felix » 20.04.2003, 00:14

Hi!
I've got a problem working with the Borg Cube mesh... if i place it in the outer parts of solar systems, it can't be seen anymore... but i would like to have it illuminate itself a bit so the texture is recognizable and not invisibly black (they actually have some sorts of lights on their surface, both in the texture and in "reality", so that would not be more irrealistic that borg cubes already are ;) )
If possible, how could i do that?
Could this be done using some sort of night side texture? (i'm really new to that stuff, please excuse my dumb questions :) )
Thanks & Greetings,
Felix
~ Nemo Numquam Nihil Nescit ~

Ace_O_Spades
Posts: 6
Joined: 16.04.2003
With us: 21 years 7 months

Post #2by Ace_O_Spades » 20.04.2003, 09:24

in the .SSC file you have, you can add a night side texture by adding:

Code: Select all

"Borg" "Sol"
{
   Texture "borg.png"
   # Texture "borg.dds"
   NightTexture "borgnight.jpg"
.....



just to show you where to put it... Anyone feel free to correct me if im wrong.. im pretty new myself

just an example for you, you could also turn ambient light up, but then it looks super fake

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #3by selden » 22.04.2003, 12:44

I just thought I should point out that Ace's suggestion only works for Celestia's default spherical object. It makes a rather good Borg Sphere. It doesn't work for the Borg Cube 3ds model, though :(
Selden


Return to “Development”