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 VectorDan · Oct 13, 2012 at 03:32 PM · shaderlightingshaderslightmaterials

a 'bar' or neon like light.

Hi,

I'm trying to create a neon light within unity. I know you can have a self illuminated shader using lightmapping and have the light baked onto the scene, but I need the light to be dynamic. When the neon light moves around in the game the light needs to follow and affect the whole scene.

Thanks!

Comment
Add comment · Show 1
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 big_db · Mar 31, 2015 at 12:51 PM 0
Share

Assu$$anonymous$$g you solved this but the best way I have found to simulate this is to do the following:

  • Create a texture like this - http://i.imgur.com/Cex26Tm.jpg

  • Apply it to a new material as Particles/Additive

  • Create a new GameObject, add a line renderer component to it, set the material to the one you created and input the 2 points you want the neon light to go between.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Yohan_Games · Oct 13, 2012 at 04:46 PM

There is a Glow Effect Script in (Image Effects) Pro Only. If you don't have pro. there is no way to do it (i think)

Hope it helped :) - Yohan

Comment
Add comment · Show 1 · 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 $$anonymous$$ · Sep 04, 2014 at 07:17 PM 0
Share

No it damn didn't. What an useless answer.

avatar image
0

Answer by RC-1290 · Oct 13, 2012 at 04:46 PM

For the light object (as fluorescent tube, I assume) to be bright, even when no other light is shining on it, you can use a shader from the self-illuminated category.

To create the glow around the light, you can use a Light Halo or the Glow Image Effect. Since you are talking about creating a tube light, the halo might not fit the shape of the glow you want to create, so the image effect might be your best option.

And of course, the light it casts on other objects. You could probably get a pretty decent effect by using multiple point lights, along the length of the tube.

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

Answer by VectorDan · Oct 13, 2012 at 07:49 PM

Thanks for your replies! I've been trying various ways to do this... It seems like the best option is to use the glow image effect in unity pro and set the alpha to black on the items I dont want to glow. The only problem with that is the glow effect makes everything glow the same colour... I'm hoping I can do something with Layers or multiple cameras in the same scene... but that could get pretty messy.

Comment
Add comment · Show 1 · 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 RC-1290 · Oct 14, 2012 at 12:15 AM 0
Share

You should be able to manipulate the glow color, since the glow is created by slightly blurring the image, and showing that for the bright parts of the image (when using HDR, without HDR, the alpha channel is used for this data). On the page for the Bloom effect (Bloom is basically fancy glow), you can see the yellow lamp in the background having a yellow glow. By changing the color of the tube, you can control the color of the glow.

If you want the light to still have a white core, there are still some tricks you can do with HDR rendering to make the object brightness clip out of range, but I'm still figuring out exactly how to get that right.

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

How do I keep an object lit when a light moves past it? 0 Answers

How to send an array of positions to a shader. 0 Answers

What kind of values come out of _WorldSpaceLightPos0? 1 Answer

How to illuminate sprite's back and front face but display result of lighting only on the front face? 0 Answers

Help with Shader that blends between two textures based on light 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