Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 HSW2201 · Dec 16, 2013 at 11:37 AM · lightemit

light from lightsaber?

I made a lightsaber with line renderer like this:

alt text

and I'm currently trying to make the light actually emitted from it. like this: alt text

see that yello light? that is what I want. First I add 2~3 point lights to lightsaber, but it looks not good when the lightsaber penetrate things.

see: there is blue light

alt text

and now: there is no light

alt text

so what should I do? I don't want to be messy with ten point lights in one lightsaber. And there is no 'convenient cylinder shape light'. Please help me, masters of the Unity!

1.jpg (18.2 kB)
2.jpg (19.8 kB)
Comment
Add comment · Show 3
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 Statement · Dec 17, 2013 at 01:08 AM 0
Share

This comment may sound a bit odd, but, does it really matter? Unless that particular effect is the cornerstone of your game, I'd say let it slid. Or just move the light closer to the handle. A lot of games make all kinds of cheats to give the illusion of a fully dynamic world. I'm not trying to convince you to drop the idea and I fully respect if you need that working, but a lot of real life games simplify problems by not providing a true solution. In many cases a "good enough" solution is accepted.

avatar image HSW2201 · Dec 17, 2013 at 05:47 AM 0
Share

thanks, it seems that I was too attached to that glowing thing. well in this particular moment I'm trying to create a PERFECT lightsaber...anyway I'll keep in $$anonymous$$d your words.

avatar image Raynoko · Mar 02, 2015 at 12:51 PM 0
Share

Hi this is what i need, this lightsaber, can u share it with me? i'll be greatfull.. Thanks

2 Replies

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

Answer by YoungDeveloper · Dec 16, 2013 at 11:47 AM

You could attach a simple light to saber gameobject and child it, that would be the simplest solution. Or you could write a shader, but that is a bit more advanced, but i think you could find ir for free using mother google.

It looks like that this game used simple point light, which is the simplest solution.

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 HSW2201 · Dec 16, 2013 at 12:05 PM 0
Share

Hmmm thanks,but will there be no performance drop by attach several point light to saber? If there is no drop, then I will take it.

avatar image YoungDeveloper · Dec 16, 2013 at 12:22 PM 0
Share

Couple of point lights wont really harm any performace, and by couple i mean tens of them. Dont be afraid to test stuff, add hundred point light and see what are the stats.

avatar image HSW2201 · Dec 16, 2013 at 12:47 PM 0
Share

Well that blowed away my worries. Thanks a lot! now I can proceed to adjusting reflecting vector XD

avatar image
0

Answer by CBosselmann · Dec 16, 2013 at 03:43 PM

Humph, i was thinking about this for a while before answering it: Obviously a point light is the simplest solution but that doesn't provide an even distribution of light around the object (in this case a lightsaber).. You could use a spot light with a small light cone but thats still a bit iffy. As Young said there are plenty of solutions in the world of shading (check out Strumpy's wonderful tool on the asset store if your not familiar with writing shaders) but as I see it now, the easiest solution is simply a Point Light as a child objet, is cheap as long as you use no more than 2 (the less the better) and make sure you place them/it close to the middle of the object for best distribution. Also consider adjusting the light distance and brightness properly. Also avoid allowing the light to cast shadows (if using Pro).

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 YoungDeveloper · Dec 17, 2013 at 12:38 AM 0
Share

I actually meant spot light, not point light, mistypo

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

20 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

Related Questions

How to make Shader Graph emit light 0 Answers

I have a sphere with Standard Shader and emission set to 5. Emission color = red. Doesn't emit light. 1 Answer

trigger spot light to turn on 3 Answers

How to get the lights positions from within a shader? 0 Answers

Check if an object has a light shining on it 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