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 nathan · Jun 20, 2013 at 05:30 PM · camerarender

Let camera render the scene just one time

Hi,

If i remember correctly, camera render the scene every frame. I am wondering if it is possible that let camera only render the scene one time and just show that image because i am a completely static object in the scene.

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 FlaSh-G · Jun 20, 2013 at 05:52 PM

If anything moves in front of that object (or, if it's transparent or translucent, behind it) or the camera moves just one bit, this won't work. Also, you won't get a real performance boost by trying to render static objects less often. So why trying? If you have a good reason to do this, you could take a RenderTexture and let the camera render to it, then set it as the texture of a plane's material.

Comment
Add comment · Show 5 · 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 nathan · Jun 20, 2013 at 06:30 PM 0
Share

" If you have a good reason to do this, you could take a RenderTexture and let the camera render to it, then set it as the texture of a plane's material." this sounds like a good idea and this is actually what i want to do since the objects(3d model) is really big and it is static and it is causing CPU to run really slowly. Do you $$anonymous$$d telling me a bit specifically on that method? Thanks

avatar image FlaSh-G · Jun 20, 2013 at 06:34 PM 0
Share

There's some code for this here. Use it with Renderer.material.mainTexture, for example. Though I'd strongly recommend that you create that image once via Unity Editor and add the texture to the game's assets ins$$anonymous$$d of making the players computer do that job...

avatar image nathan · Jun 20, 2013 at 06:57 PM 0
Share

Yeah, I tried that code, but there is something wrong with RenderTexture.get_width(). I am wondering how I can create image via unity editor. Can you be a little specific? Thanks.

avatar image FlaSh-G · Jun 20, 2013 at 07:03 PM 0
Share

Just do whatever you feel like, as long as it produces an image asset. For example, i have simply used the OS' printscreen function and cut out the wanted image within photoshop, then saved it to the assets.

avatar image nathan · Jun 20, 2013 at 08:00 PM 0
Share

Haha. Okay. thanks

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

15 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

Related Questions

A node in a childnode? 1 Answer

White line along the edge 2 Answers

make android camera video as the background of the unity scene? 0 Answers

Camera Animation 1 Answer

Smooth Follow Camera Rotate on Z-Axis? 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