Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 flaviusxvii · Jun 24, 2011 at 05:42 PM · particlesrotatebillboardface

A different kind of billboarding for particles..

When the camera is stationary (but rotating) billboarded items rotate as the camera rotates. There are some times when I'd prefer that this does not happen.

Has anyone faced this problem? (no pun intended). How do you fix it?

Comment
Add comment · Show 2
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 Chris D · Jun 24, 2011 at 05:56 PM 0
Share

What kind of behaviour are you trying to create? Are you trying to have it so you can see these items as planes (like, see that they have no depth)?

avatar image flaviusxvii · Jun 24, 2011 at 06:07 PM 0
Share

No, in fact I think this behavior looks more real. They still turn to face the camera, but based on camera position only.

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by femi · Jun 24, 2011 at 05:55 PM

you can implement alternative "billboarding" in a shader. one way to achieve it is to set the size of all particles to 0 and use texture coordinates to distinguish the 4 corners of the particles (which will be 0,0; 0,1; 1,0 and 1,1). you then calculate the direction and offset by which to move each corner from its original position.

Comment
Add comment · Show 3 · 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 flaviusxvii · Jun 24, 2011 at 10:26 PM 0
Share

I'll give this a try. Thanks.

avatar image femi · Jun 25, 2011 at 09:32 AM 0
Share

I can provide a code example to start with. It doesn't change the rotation, but does alternative size attenuation, but it could be an starting point. Is there something like https://gist.github.com/ for unity? If there isn't I can contribute to "how can we improve answers" question :)

avatar image femi · Jun 25, 2011 at 09:53 AM 0
Share

Anyway, I went and published a bit on gist. It doesn't do syntax highlighting for unity shaders, but these aren't very long files: https://gist.github.com/1046323

$$anonymous$$eep in $$anonymous$$d this isn't exactly what you ask for: it does the standard billboarding, but it does it "manually", so that'll be the place to tweak.

avatar image
0

Answer by superpig · Jun 24, 2011 at 05:56 PM

I assume you've tried the different billboarding modes available in the Particle Renderer component?

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 flaviusxvii · Jun 24, 2011 at 06:09 PM 0
Share

I have. They all rotate the billboard when the camera rotates.

avatar image
0

Answer by GODLIKE · Jun 25, 2011 at 12:10 AM

The standard billboard is aligned to the screen coordinates for what I know.

This said, what do you need this for?

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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Particle billboard is visible if camera is to close. 0 Answers

How to rotate a gameobject over time to face another 1 Answer

Rotate to face player, drunk issues 0 Answers

Particle system billboard size 1 Answer

Rotate Object to face 2 axis? 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