• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by secondry2 · Apr 01, 2013 at 09:45 AM · flashlightcookiecookies

Flashlight Cookie Not Displaying

Hello guys!

I have a flashlight (spotlight) and a cookie that I made for it. It is 256x256 and greyscale/grayscale, I imported into unity, and I don't get the image displaying, I get it as a pointlight, which in the editor is messed up, because it has a sharp cutoff on the sides where the light should be. Would you mind testing this for me? Heres the link: http://i.imgur.com/LtWjVGT.jpg

Thanks!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Apr 01, 2013 at 10:29 AM 1
Share

Yes, there is something not quite right here. From the Unity Documents : Spot lights can also have cookies - a texture projected down the cone of the light. This is good for creating an effect of light shining through the window. It is very important that the texture is black at the edges, has Border $$anonymous$$ipmaps option on and its wrapping mode is set to Clamp. For more info on this, see Textures.

There also must be some special technique for creating these images, and what format they are saved as. To test yours, my settings were :

  • Texture Type : Advanced

  • Alpha from Greyscale : True

  • Border $$anonymous$$ip $$anonymous$$aps : True

  • Wrap mode : Clamp

  • $$anonymous$$ax size : 256

  • Format : Automatic Truecolor

This sort of works, but there still is a problem you will see outside the border light appears again. Hopefully someone with experience with this will come along and help.

Documents :

  • http://docs.unity3d.com/Documentation/Components/class-Light.html

  • http://docs.unity3d.com/Documentation/Components/class-Texture2D.html

avatar image secondry2 · Apr 01, 2013 at 10:31 AM 0
Share

yeah I actually found the LightCookies assets and fount one I liked, but I would still like to know what the problem is with this.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Saving and Fetching Cookies from UnityWebRequest 0 Answers

Cookie not correctly set in UnityWebRequest in 2018.3 1 Answer

My Draw Calls go from 30 to 125 and I have twice as much tris/verts when I enable a spotlight. Why?? 1 Answer

save cookie after login and use it for login again 0 Answers

Workaround for SET-COOKIE bug in www.responseHeaders? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges