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
2
Question by Ludde · Nov 01, 2010 at 07:53 PM · lightingglowpro-only

Exactly - How to make a light glow

Aight, here's a image from a games that runs on the Unity engine.

picture

Larger version

My question is simple, how do I achieve this type of "glow" effect in the scene? I have seen the same question countless of times but have yet not been able to find a tutorial or text that REALLY explains the process step by step. I don't really know so much.

At the moment, I have done a simular room in max, and textured it. I also have the fluorescent lamp itself as a speparate object, but with no texture. That's it. I can't really move on, and don't wanna start make a big mistake.


..My own idea is that I shall go into 3dsmax again and add some omni lights that makes the wall look like it is "illuminated" by the fluorescent lamp. Then, somehow, I shall render this out as a lightmap. But I am not sure how to do that right now. I seen some good guide about it somewhere I think, anyways..

Then I split up the fluorescent lamp into to "objects", the part1 that doesn't glow (this I also add fitting texture too) and part2 that DOES glow (this I add a simple white texture too). I import both parts into Unity and parent them up so it looks like it is "one" object/model.

And somehow, somewhere, I get my hands on a script that makes the "white" part2 model glow? Or maybe is it some effect? Got pro prefabs.

..How to I make a room appear dark? <-- This maybe is this achieved when I add a lightmap?


I am on the right way?

I really love all answers I will get. <3

Thanks!

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

3 Replies

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

Answer by equalsequals · Nov 08, 2010 at 12:35 AM

To make an object glow with the Glow Effect pixel shader, you need to add that particular shader to the camera you will be viewing from.

How it works:

A pixel shader is post-process, so it makes its pass after all cameras in the scene have rendered the frame. After the frame is rendered, it takes the rendered image and uses that image data along whatever formulas it has to create a desired effect (in our case, bloom/glow).

This shader takes advantage of all the materials in the scene's alpha data.

Set up:

A material will typically have a color property, and the pixel shader will use the alpha channel of this color property to determine whether or not it will glow.

You'll notice that if you set the alpha of the color property of a diffuse material, or any other material that doesn't utilize the alpha channel of the color property for opacity, it won't affect the appearance of the material. This is where you tell a material how much it should glow when that pixel shader does it's pass.

By setting the color property's alpha of the material to 0 (black), it tells the pixel shader to not glow, if set to white, it will be the maximum amount of glow the shader will allow (defined in the image effect's parameters). Anything in between modifies the intensity of the glow.

You can use the alpha view mode of the Editor's Scene View to give yourself a better idea of what will glow, and by how much to really fine tune things.

Hope this helps.

==

Comment
Add comment · Show 3 · 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 Ludde · Nov 08, 2010 at 11:07 AM 0
Share

Thanks alot, this really explained things for me. Just one last thing, is it possible to lower the "skybox" alpha? I tried in the render settings but it didn't help.

avatar image equalsequals · Nov 08, 2010 at 02:33 PM 0
Share

Actually, I'm not sure as I don't use the built-in skybox shader, but ins$$anonymous$$d a custom skydome. I will check and get back to you.

avatar image equalsequals · Nov 08, 2010 at 09:44 PM 0
Share

Just wanted to clarify, is this because the skybox is glowing?

avatar image
1

Answer by HolBol · Nov 01, 2010 at 08:05 PM

These scenes probably use image post processing effects, which are part of the pro standard assets. This effect isn't available in the free version. If you have those assets, apply the glow effect to the scene. Your lights should probably now glow. If you want your room dark, turn down the ambient light settings in Render Settings.

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 Ludde · Nov 01, 2010 at 09:10 PM 0
Share

Thanks for the ambient light settings, I did not know that! When I add "GlowEffect" to my fluorescent lamp it doesn't do anything. (Well it adds a camera under the object.) When I add "GlowEffect" to my main camera, it makes EVERYTHING glow.

avatar image HolBol · Nov 01, 2010 at 09:47 PM 0
Share

umm, try using the bloom and flares one, or lower the intenstity of the glow effect.

avatar image boymeetsrobot · Nov 01, 2010 at 09:55 PM 0
Share

Glow effects only work on the entire scene and should be added to your $$anonymous$$ain Camera.

avatar image Ludde · Nov 07, 2010 at 10:39 PM 0
Share

Then how do I make a object glow?.....

avatar image
0

Answer by create3dgames · Jun 28, 2011 at 09:57 PM

Use blooms and flares, or use a halo.

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

1 Person is following this question.

avatar image

Related Questions

PRO ONLY: How to make a object glow 1 Answer

Neon light or LED light 1 Answer

Some lighting advice, please 2 Answers

Making glowing lines and shapes 1 Answer

Light glow effect test 3 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