Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 chanfort · Jan 28, 2015 at 06:05 PM · billboardbillboarding

Getting billboards of 3d objects at runtime

Unity terrain system has one brilliant solution for performance - billboarding. When I use trees, even many thousands of them are automatically billboarded with correctly updated rotations when camera moves over terrain.

I was wondering if there is possible to access this kind of billboarding feature for any GameObjects which contains meshes, without baking/loading tons of textures?

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
Best Answer

Answer by Paulius-Liekis · Jan 28, 2015 at 08:49 PM

You can not access functionality from Terrain, unless you use your meshes as trees...

You can build similar system using RenderTextures and sprites which are aligned to camera in shader.

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 chanfort · Jan 28, 2015 at 09:14 PM 0
Share

Never heard about RenderTextures, however, I am already using for a while my own 3dSprites system in uRTS. But my problem is that I am pre-baking textures for different rotation modes. When I am switching between these modes I see instant "jumps". The problem is also baking textures, as when I use more rotational levels of more models, number of textures is increasing dramatically. So I am looking forward how to fix this.

Can you tell a bit more about RenderTextures and if there is possible to get these textures on runtime, which would be reasonably fast to use without actually baking anything?

avatar image Paulius-Liekis · Jan 28, 2015 at 09:21 PM 0
Share

Check documentation of RenderTextures (warning: it's a Unity Pro feature). It allows you to render an object to a texture. And that's how tree system works in Unity - it creates a billboard of a tree at right angle every frame and then used that billboard-texture to render all trees.

avatar image chanfort · Jan 28, 2015 at 09:42 PM 0
Share

Aren't there any other similar Unity Free alternatives to treat with this problem?

avatar image Paulius-Liekis · Jan 28, 2015 at 10:26 PM 0
Share

Pre-generate many textures from various angles. But as you said - you get a jumps or take a lot of memory.

avatar image chanfort · May 03, 2015 at 05:28 PM 0
Share

So now as Unity 5 is free, I wondering about how TextureRenderer actually works. In documentation I didn't find out how to submit mesh into RenderTexture, where it would be rendered at given rotation? I also was unable to find any discussions and answers yet about this.

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

19 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 avatar image avatar image avatar image avatar image

Related Questions

Problem with unity tree billboarding 0 Answers

Creating a billboarding surface shader 1 Answer

Starfield and rendering 1 Answer

Will Multiple Billboarding Sprites Kill My Game Performance ? 0 Answers

No performance boost on culling when using "CameraFacingBillboard"-script 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