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 diegzumillo · Aug 05, 2012 at 01:33 AM · lightlight probes

How much light hits an object? (or retrieving light probe info)

I want to know if it's possible to know how much light hits a dynamic object. If I were to not use radiosity it would be a simple matter of checking for light sources, distance and visibility etc. But using radiosity I need to account for the light probes! How do I do that?

Summarizing: Can I retrieve the final (interpolated) light of the light probes acting on the object?

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
1

Answer by diegzumillo · Dec 10, 2017 at 07:44 PM

Five years later I return to this project with an answer to this question. Just in case someone following is still interested in this or someone googles this question, here's what I found.

I don't know if this was possible before, but now you can use the LightProbes.GetInterpolatedProbe function. This function basically gives you an interpolated probe for any point in space, with all the lighting information stored in the SphericalHarmonicsL2 class (an out parameter from the getinterpolatedprobe function).

I remember my issue at the time was that I would have to construct this interpolated probe myself from the total list of light probes. A not very fun thing to do.

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 False_Idolitry · Aug 05, 2012 at 04:28 AM

The script example in this documentation article should help you towards that goal:

LightProbes.coefficients

The method may seem a bit complex but that's because it's a complex question. Light probe data in Unity is stored as 3-channel groupings of spherical harmonics coefficients. I've found that this paper was the best learning resource to understand how spherical harmonics works, if you are interested (it's actually really cool stuff). Also keep in mind that performing this operation frequently may not yield the best performance.

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 diegzumillo · Aug 05, 2012 at 04:35 AM 0
Share

Thanks. Actually, of all this stuff, the only thing I know is how spherical harmonics works :P

This is cool though! Unity is always making me proud, we have access to the whole array of light probes. Unfortunately, without the 3 specific probes affecting the object of interest I would have to reconstruct this information.

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

8 People are following this question.

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

Related Questions

How can i use a spotlight to spot on specific area ? 1 Answer

Flickering Light Help 0 Answers

Multiple Light Shader 'Light Box' Bug 0 Answers

2d dynamic lighting? 3 Answers

Object visible in one specific 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