Help needed with light-maps

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Help needed with light-maps

Post by JensAyton »

Smivs wrote:
If I follow the instructions above, the illumination map and emission map work but are applied to the default Oolite texture, with only the parts of my texture which are illuminated showing.
You still need to use the diffuse map. The combined map is a new emission map. The illumination map (and extra work done by Oolite) is then eliminated. You still need to multiply the diffuse map with the illumination map in the combined map, otherwise the illumination component just becomes “more” emission map.
ADCK wrote:
specular_color is what color the light reflected is, I don't know if this works in non-shader mode.
Yes, it does.
ADCK wrote:
but I usually use the following settings:

Code: Select all

specular_color = "1.0 0.7 0.5 1.0";
Um, could you motivate that? Specular highlights from uncoated metal are self-coloured. Essentially all other materials’ specular reflections are even across the spectrum, i.e. white. I’m not aware of any material that produces intense orange specular highlights regardless of base colour.

Note that the specular colour of the surface is multiplied with the colour of the light, i.e. a more saturated version of the sun’s colour which, despite recurring claims that all Oolite suns are white, actually varies a great deal from system to system. If you want to make all suns orange, you should be manipulating planetinfo.plist.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Help needed with light-maps

Post by Smivs »

Ahruman wrote:
Smivs wrote:
If I follow the instructions above, the illumination map and emission map work but are applied to the default Oolite texture, with only the parts of my texture which are illuminated showing.
You still need to use the diffuse map. The combined map is a new emission map. The illumination map (and extra work done by Oolite) is then eliminated. You still need to multiply the diffuse map with the illumination map in the combined map, otherwise the illumination component just becomes “more” emission map.
Thanks, yes I understand that now...I mis-interpreted what I needed to do. The good news is I have got it all working now.
Thanks to both you and ADCK for helping me. I've learnt a New Thing which is always good, and I'm enjoying slowly working through my OXPs now to put my new skill to good use.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Post Reply