Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Destroyanad · Jun 05 at 09:44 PM

I know this is old and this wont help, but theres people like me that are/were having the same problem so ill put a solution here.

You want to change "Wrap Mode" to clamp, "Texture Type" to Cookie, and "Alpha Source" to From Gray Scale

https://i.imgur.com/N41neOz.png

Comment
Add comment · Share
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

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.

Follow this Question

Answers Answers and Comments

12 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 avatar image

Related Questions

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

System cookies login application?,Cookie systeme login FPS Game 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges