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 recon472 · May 17, 2014 at 11:42 PM · lightflashlightfx

Flashlight origin effect

Hi. I moddeled a flashlight and added a spotlight. However, the flashlight itself doesn't emit anything. I am trying to figure out how to light the glass part up and add some sort of cone thingy to represent that the light is actually coming out of the flashlight. I was thinking it could be done with a particle system I haven't managed sth good so far. Please any advice or idea would be appreciated...¨

Thx

EDIT1: spotlight (not point light); added pictures of current and desired fx

[1]: /storage/temp/26628-flashligt_desired.jpg

[2]: /storage/temp/26629-spotlight.png

flashligt_desired.jpg (89.1 kB)
spotlight.png (158.6 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Loius · May 18, 2014 at 04:57 PM

Create an actual cone, put a translucent material on it that matches your light color. Hard edges result from this.

Go more advanced and create a wispy, foggy translucent texture to go on top of your cone and apply some basic UV scrolling to the material for a little better look.

Go super advanced and create a texture that is the beam effect, and manipulate a mesh at runtime so that it uses that texture and always faces the camera and has its points at the edges of the light spot and at the light origin, making it look exactly like you want.

Comment
Add comment · Show 2 · 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
avatar image recon472 · May 18, 2014 at 08:23 PM 0
Share

Thank you so much! that works. I have only one thing left. when someone would point the light at me I'd like it to "blind" me with the light. how could I achieve such an effect?

avatar image screenname_taken · May 18, 2014 at 08:30 PM 0
Share

try putting a white texture infront of the camera that covers the whole viewport (can be done with a GUITexture) and have it 100% transparent. Check with raycasting if the spotlight is shining in the camera and if it is, make it less transparent. Tweak till happy.

avatar image
0

Answer by getyour411 · May 17, 2014 at 11:50 PM

Cone thingy = spotlight

Comment
Add comment · Show 4 · 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
avatar image rakkarage · May 17, 2014 at 11:55 PM 0
Share

$$anonymous$$ENU: GameObject->Create Other->Spotlight

avatar image recon472 · May 18, 2014 at 04:31 PM 0
Share

oh I am sorry I always confuse these. I am already using spotlight, not point light. the problem is not not-having the light. I just have a dark flashlight model and light in front of it. I'd like it to look like the light is co$$anonymous$$g from the model. I've attached two images. One is my current state and the second one is the effect I am trying to achieve

[1]: /storage/temp/26625-flashligt_desired.jpg

[2]: /storage/temp/26624-spotlight.png

spotlight.png (158.6 kB)
flashligt_desired.jpg (89.1 kB)
avatar image getyour411 · May 18, 2014 at 04:35 PM 0
Share

I can't test it (heading out the door now) but try adding a Flare at the light origin

avatar image recon472 · May 19, 2014 at 05:21 PM 0
Share

thx that worked out wonderfully with the cone texture from the other answer :)

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

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

Related Questions

Flashlight battery script 3 Answers

How do I get my flashlight to work? 1 Answer

2D Lighting Effects in Unity? 0 Answers

I can't see light effects in Android AVD 0 Answers

Flash light off on start 1 Answer


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