Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cworboys

Pages: [1]
1
Hi there.

I am relatively new to all of this and am trying to set up  the sprites in our game to use Unity's lighting.

The buildings in the background, sidewalk, and street are set up correctly and are using the lighting.  However the other objects in the foreground (fire hydrant and garbage can) are not.  I have checked the settings and they are identical.

I have done the following:

- Set up a directional light and coloured it red (to be able to clearly see which objects are using the lighting)
- Set the shaders for everything to tk2d/LitBlendVertexColor
- Set the settings in the Sprite Collections to:
     - PreMultiplied Alpha: Unchecked
     - Normal Generation: Normals Only
     - Made sure I committed the changes to the Sprite Collection

As far as I can tell, all of the objects are set up identically, yet only some of them are lit by the red light.  Any suggestions?

Also, what is the difference between the LitBlendVertexColor and the LitPremulVertexColor?  As far as I understand you should use LitBlendVertexColor if your sprites have the PreMultiplied Alpha setting unchecked, and use LitPremulVertexColor if you do have it checked.  Is this correct?

I am using 2D2K version 1.9.  Thank you for your time.



Link to image of problem: http://imgur.com/Gkm6Ei7

2
Support / Re: Another question regarding lighting a sprite
« on: April 23, 2013, 08:46:53 pm »
I will add it as an option to the builder... probably under an "Advanced" tab somewhere.

Did this ever make it into an update?  If so, where can I access it?

Pages: [1]