Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 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
2
Question by polybean · Apr 12, 2019 at 04:57 PM · shadermaterialeffectgraphbillboard

How to do billboard shader with Shadergraph

Hi, I'm having trouble with creating a billboard shader with shadergraph. It is for a simple quad with a texture and I want all axis to align with view, so it should look exactly like a particle with view render alignment.

This is what I got so far. In general it seems to work, but the object is rotating a little bit (and sometimes scaling, depending on the view direction), if I rotate the camera when near the object. Anybody know what's going on here? What am I doing wrong and how can I fix it? Thank you.

billboardshader.png (178.1 kB)
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 Spratsop · Feb 01 at 09:46 AM 0
Share

Купить медицинскую справку в СПБ на spb-spravki9.com

Предлагаем посетить компанию "Spb-spravki9", которая осуществляет помощь жильцам Питера в оформлении нужных медицинских справок и документов. Здесь Вы можете оформить практически любые документы в самом быстром порядке, например: анализ на ВИЧ, справка о временном заболевании на работу, медотвод от прививок, от офтальмолога и другие.

На сайте [url=https://spb-spravki9.com/kupit-spravku-dlya-studenta/]https://spb-spravki9.com/kupit-spravku-dlya-studenta/[/url] Вы можете посмотреть полный перечень документов. Все бланки, которые используются нашей фирмой на сто процентов оригинальны и совсем не разнятся от тех, что Вы всегда забираете в государственных клиниках или частных медицинских центрах и пройдут любые осмотры. Мы сотрудничаем с очень большим количеством медицинских центров Санкт-Петербурга и даем гарантию, что поможем Вам в разрешении вопроса с быстрым получением необходимых справок и выписок.

Стоимость Вы найдете на веб портале spb-spravki9.com уже сегодня. Но стоит взять в расчет, что в зависимости от пожеланий заказчика, количества дней изготовления и других мелочей, стоимость может быть другая. Сроки изготовления Вашего заказа очень невелики и всегда обговариваются заранее. Также мы даем гарантию на полную конфиденциальность с Вашими персональными данными и ни при каких обстоятельствах не оглашаем их.

Ассортимент справок очень велик и мы поделили его на тематики на странице [url=https://spb-spravki9.com/]https://spb-spravki9.com/[/url] для Вашего удобства. Например: работникам, студентам, из диспансеров, анализы, прививочные сертификаты, от специалистов и другие. Доставка документов осуществляется различными методами. По СПБ мы можем доставить к любой станции метро или по конкретному адресу. В другие города РФ отправляем почтой России или службой доставки СДЕК. Стоимость рассчитывается персонально, обсуждается при оплате заказа. Оплата возможна как наличными, так и по карте.

По оставшимся вопросам звоните по номеру телефона 8-(812)-243-15-18 или закажите звонок. Находимся по адресу: Санкт-Петербург, Щербаков пер., дом 12. График работы с 10:00 до 19:00, ежедневно. На интернет портале spb-spravki9.com упомянут наш адрес электронной почты, куда Вы также сможете написать. Наши менеджеры с удовольствием проконсультируют Вас, предложат различные варианты и помогут найти то, что необходимо именно Вам.

avatar image Lindahem · Feb 01 at 09:46 AM 0
Share

I am sharing with you a site with a lot of web models that you can watch absolutely free.

[url=https://ustalks.com/][img]https://ustalks.com/wp-content/uploads/2022/01/logo-2.png[/img] [/url]

The best women from the USA show their charms directly online and broadcast themselves naked.

In [url=https://ustalks.com]USA web cam site[/url] huge selection for every taste and color, young and milf, fat and thin, women and girls with large and small boobs.

And a real big selection of guys, transvestites and couples in porn chat. Video chat is absolutely free, but for registration they give credits that can be spent on gifts for girls, order a private chat, or a few $$anonymous$$utes of cyber sex in private.

The site itself is here: https://ustalks.com

5 Replies

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

Answer by insominx · Apr 17, 2020 at 11:47 PM

Here is a subgraph solution I made based on the work of Unity forum user bgolus. An explanation is given at the top of the group boxes. alt text


capture.png (206.8 kB)
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 bzankl · Apr 29, 2021 at 05:49 PM 0
Share

I've tried a lot of approaches and really want to get it to work. One question regarding this one: I always get "'cross': implicit truncation of vector type" when I try to use this as the vertex position, the typical workarounds don't work for me. Do you have any ideas on how to solve this?

avatar image
1

Answer by terraKote · Jul 30, 2019 at 11:13 PM

Hi, to fix rotation you need to do to this.alt text That's because you're using Quad. It doesn't use the same axis as cube does, for example. You need to change axis to fix this. And rotate it if it needs.


безымянныи.png (132.0 kB)
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
avatar image
1

Answer by andrew-lukasik · May 29, 2021 at 01:39 PM


This graph will "billboard" any mesh with rotation (0,0,0) and uniform scale: mesh look at camera shader graph


It calculates "look at camera" rotation and applies it to vertex, normal and tangent.


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

Answer by wolfgamek · May 29, 2021 at 11:39 AM

to fix rotation you need to do to thisalt text


screenshot-1.png (72.3 kB)
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
avatar image
0

Answer by eckhard · Jan 31 at 07:22 PM

Thank you guys for pasting those, very elegant. Maybe you can you help me in the right direction based on the mentioned billboard shader?

posted a flollowup on this here: https://answers.unity.com/questions/1884566/shader-graph-restricted-billboard-to-one-axis.html

Comment
Add comment · Show 2 · 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 andrew-lukasik · Jan 31 at 07:41 PM 0
Share

I suggest posting this as a separate question

avatar image eckhard andrew-lukasik · Jan 31 at 07:43 PM 0
Share

yes thanks for pointing it out:

https://answers.unity.com/questions/1884566/shader-graph-restricted-billboard-to-one-axis.html

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

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

Related Questions

How to draw GL Lines over GameObjects/Images? 1 Answer

ShaderGraph Material Color change. 0 Answers

Shining shader 1 Answer

Shader Graph | How to create gradient from scratch 1 Answer

Shader graph shader won't pick up lighting 0 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