Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 PingJayPeg · Dec 31, 2016 at 03:26 PM · lightinglightgradientvolumetriccone

Cone mesh that gradually fades?

Edit 1:

alt text

Here is a picture of how far I have got. I have mapped a white to transparent radial gradient onto the cone but there is a very visible seam. Luckily if viewed from one side the seam isn't visible so it shouldn't be too much of a problem.


I want to make a cone mesh fade out on a gradient where at the top of the cone (the single vertex) it is white and at the bottom (the face) it has completely faded out, like a "lighthouse effect". I have done some research and I think it is referred to as "volumetric lighting" but I don't have the money to spend on asset packs under this name.

I have:

  • A cone mesh.

  • A gradient texture (white on the bottom, black on the top).

  • Another gradient texture (white on the bottom, transparent on the top).

I have tried many things that haven't worked and I would appreciate it if anyone can shed some light (pun intended) on the matter.

Thanks.

coneexample.png (50.0 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 Glurth · Dec 31, 2016 at 11:58 PM 0
Share

It's important to know how the UV's on the mesh are setup. (The Uv's map each vertex of the mesh to a particular point of the texture image.)

I don't think you need volumetric lighting for this. I'd think that the correct UV's on the cone, and a matching gradient texture (white to transparent), would be sufficient.

Show us some pics of what you've got now: might help us spot what's wrong.

avatar image PingJayPeg Glurth · Jan 01, 2017 at 01:27 PM 0
Share

Thanks, I've looked into UV mapping and set up an image (view Edit 1) that maps onto the cylinder. There is still a visible seam though.

avatar image Glurth PingJayPeg · Jan 01, 2017 at 07:17 PM 0
Share

I would have used an image where the white is in the CENTER, and fades out to transparent radially. Then I would map the apex of the cone to (0.5,0.5) Then, as I go down the cone "height", map each vertex to points on concentric circles on the image around (0.5,0.5). (So, points CLOSER to the apex will be mapped to circles on the image with S$$anonymous$$ALLER radius.)

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by IgorAherne · Jan 01, 2017 at 01:54 PM

It seems that the uv coordinates don't match the image.

I can see the image, but not the actual unwrapped "uv layout". Double check that that layout conforms to the correct area of the image. You should also "dilate" the sampled image, to avoid seams when looking from larger distances (if mip-maping is used)

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 Grench1 · Jan 02, 2017 at 11:41 AM

Create a new material and reduce periodically the Alpha value with a script.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Poor spotlight gradient in Unity 1 Answer

Using shuriken to create volumetric lights effect 5 Answers

Negative light no longer possible? 2 Answers

I need help with directional light 1 Answer

My lighting is weird 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