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 Caixotim · Aug 02, 2012 at 09:09 AM · gameobjectlightcomponentorthographic

GameObject with DirectionalLight component not being iluminated

I'm doing an augmented reality application using Vuforia. For each gameObject in my augmented reality scene I add a Light component to it and define it as a DirectionalLight. In this scene the gameObjects are iluminated, but when I change to another scene (not destroying the gameObjects) they are not. I already checked and they still have the Light component, but are not iluminated for some reason. Do you guys have any clue of what might be the problem?

P.S.: The second scene is a normal scene with no interaction with the phone's camera. And the projection on the camera is orthographic.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by cupsster · Aug 02, 2012 at 09:23 AM

Yao are doing ia all wrong. You should need only one directional light if you mean that by "component" word. Instead of adding a lot of lights, set us light culling masks. And to preserve object to next scene you need to attach your "dont destroy on load" also to lights in scene or make hierarchy and atach that script to hierarchy root. This way all childrens should be preserved and it is more easy to manage that.

Comment
Add comment · Show 13 · 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 Caixotim · Aug 02, 2012 at 09:40 AM 0
Share

I tried to just put one directional light having my main camera as parent, but my gameObjects get poorly lighted. $$anonymous$$y culling mask is set to "Everything" so all the objects in scene get affected by the light...

avatar image cupsster · Aug 02, 2012 at 09:46 AM 0
Share

I woud not parent light to camera, only if you need to move light along with it. If objects are poorly lit, adjust light intensity, play with shaders or go to project settings and change ambient light color.

avatar image Caixotim · Aug 02, 2012 at 10:11 AM 0
Share

At least in my augmented reality scene the light have to be child of the camera. In my normal scene I tried to put my light with no parent as it is fixed, but my model's are still not lighted. I got 2 layers, but i should not make a difference in my lighting.

avatar image cupsster · Aug 02, 2012 at 10:13 AM 0
Share

Here is apropriate screenshot of curent situation and waht you want to archive.

avatar image Caixotim · Aug 02, 2012 at 10:17 AM 0
Share

I didn't understand...do you want me to do a screenshot of the current situation?

Show more comments

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

7 People are following this question.

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

Related Questions

Can I move a component from one GameObject to another in script? 1 Answer

How to mimic Unity's Components based System 1 Answer

Enable Draw Halo in Light Component via Script 1 Answer

How to Check if a component Exists on a Gameobject. 3 Answers

Storing component of instance in an array 2 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