Lightmap + specular?

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Lightmap + specular?

Postby Aloys » Thu Sep 03, 2015 5:46 am

Has anyone tried to make a material that uses both a lightmap and a specular highlight?

How do you set a material to use a lightmap and not have its diffuse be affected by the lights in the scene, and yet have it use those same lights to pick up a specular highlight? I'm sort of stumped by this right now.. :shock:
I need this for my Myst island project which is using Unity, but I now I'll be needing this for Uru too.. Unity can solve this in various ways, if only through custom written shaders, but in plasma I haven't yet found how.

I'm not at home right now so I can't check, but from the top of my head I can't remember any specific instance of this in Cyan's Ages... (that being said most of the Ages use vertex colors..) Aren't some of the metallic parts in Garrison or Ercanna lightmapped?

[edit]
I'm silly, here's how I'd do it on a custom shader :
Have the 'main' texture as 'unlit', multiply it by the lightmap (from the 2nd UV channel), and have the specular as usual. Sounds to me like it would work.. In Korman/PyPRP I don't need to set the material to Shadeless do I ? (which would deny the specular IIRC)
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Lightmap + specular?

Postby Sirius » Thu Sep 03, 2015 6:21 am

From what I remember, PyPRP supports it: you only need to set your light as "No Diffuse", and it will still cause specularity highlights - I guess it is compatible with lightmaps.
But remember specularity is vertex-shaded in Plasma (just like lighting), which is an eyesore for most objects.
User avatar
Sirius
 
Posts: 1506
Joined: Mon Jul 26, 2010 4:46 am
Location: France

Re: Lightmap + specular?

Postby Aloys » Thu Sep 03, 2015 7:45 am

Sirius wrote:From what I remember, PyPRP supports it: you only need to set your light as "No Diffuse", and it will still cause specularity highlights - I guess it is compatible with lightmaps.

Yay. :)
But remember specularity is vertex-shaded in Plasma (just like lighting), which is an eyesore for most objects.

Argh.. I'd forgot that.. 2003 techonology. :oops: I'll give it a try tonight see how it looks...
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)


Return to Building

Who is online

Users browsing this forum: No registered users and 10 guests