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 CrazyMick · Aug 20, 2012 at 06:45 PM · lightmaprendertexture

Render Textures and Lightmaps

Hi,

I am having somme issues with Render Textures. I am currently using them in my game after instantiating a Camera prefab and assigning it a Render Texture, and then displaying the Render Texture using a GUI.DrawTexture().

However, I noticed that the lightmaps are not used by the cameras I instantiate, but they are used by the main camera.

Does anyone has a solution for this issue ?

Comment
Add comment · Show 18
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 ScroodgeM · Aug 20, 2012 at 06:57 PM 1
Share

after your second camera is created from prefab, pause the game in editor and check every setting that different on main camera and instantiated.

avatar image CrazyMick · Aug 21, 2012 at 07:42 AM 0
Share

I just checked them, but the only difference is the level of depth, which is 0 on my instantiated cameras and -1 on my main camera. I also notice that while the lightmaps are ignored in game, they are visible in the preview pop ups when i select the cameras after pausing the game.

avatar image ScroodgeM · Aug 21, 2012 at 10:20 PM 0
Share

did you try to change quality settings? try fantastic mode.

avatar image CrazyMick · Aug 21, 2012 at 10:52 PM 0
Share

Same thing while using the default "Fanstastic" mode.

avatar image ScroodgeM · Aug 23, 2012 at 10:12 PM 0
Share

does lightmaps became works if you just remove render texture from camera's target?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SomeGuy22 · Aug 28, 2012 at 09:33 PM

Did you look at this similar post on Unity Forums?

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 CrazyMick · Aug 28, 2012 at 10:25 PM 0
Share

I just did, but I don't understand how the guy solved the problem.

avatar image SomeGuy22 · Aug 29, 2012 at 01:50 AM 0
Share

He said "the script initializing beast lightmap settings started after the texture". Which I think means if you are changing the settings through scripts it needs to come before you call the render texture. I'm no expert at this--just guessing.

avatar image CrazyMick · Sep 01, 2012 at 07:56 PM 0
Share

I understand that, but he didn't say how he did it. As the cameras are instantiated during the game. I would assume that any program$$anonymous$$g involving lightmaps is already executed, since the main camera uses them.

avatar image SomeGuy22 · Sep 01, 2012 at 08:11 PM 0
Share

Ah, well then I have no clue :D $$anonymous$$aybe someone else knows.

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

10 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

Related Questions

Creating a Screen Space Lightmap Texture 0 Answers

Remove Temp/Beast folder 0 Answers

Transparent glsl shader is still opaque in the lightmap. 0 Answers

External lightmap dull when texture added 0 Answers

Lightmaps - performance question 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