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 DominoOne · Jan 04, 2013 at 07:04 AM · shaderdirectx 11geometry shaderadjacent

Adjacency information in geometry shaders

Hello,

I'm trying to play around with geometry shaders in Unity and I ran into one question that I can't find an answer to:

is there a way to pass/get adjacency information in a geometry shader in Unity? If there is, then how?

I tried using "triangleadj" (with six vertices) as the input type of the geometry shader program, but it seems that there are still only three vertices (instead of six) that are passed to the shader. So, is there a way to make Unity pass the adjacent vertices to the geometry shader? Or if it doesn't keep them in its internal mesh structure, is it possible to pass them manually?

Any help would be greatly appreciated. Thanks in advance.

Comment
Add comment · Show 3
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 fabien48 · Feb 28, 2015 at 02:46 PM 0
Share

hi,

is it still true in Unity 5? seems to be... any solution?

avatar image cmberryau · Apr 02, 2015 at 10:01 AM 0
Share

No solution yet

avatar image OliverPaulson · Jun 04, 2017 at 12:16 PM 0
Share

06.2017 unity 5.6. Triangleadj still doesn't work. WTF?

3 Replies

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

Answer by cmberryau · Jul 22, 2014 at 12:04 PM

Apparently not, Aras made a post in 2013 saying that it is not available currently.

Still, in 2014 it seems to be the case, I cannot get lineadj to work.

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 simoose · Jul 28, 2014 at 02:41 PM 0
Share

Yep, lineadj doesn' work, index 0 and 1 are the same as using line, 2 and 3 are just zero.

avatar image
1

Answer by Henning-Hommel · Jul 07, 2015 at 12:12 PM

I ran into the same problem with getting the adjecency information, and reading cmberryau's answer I have little hope of this getting fixed anytime soon. In my opinion this is really sad and narrows down our posiibilities of creating useful geometry shaders in unity by quite a bit.

In addition I have found out that when using the "triangleadj" type the indices of the vertices are not matching the indices declared at the msdn page for the direct3d pipeline. So instead of the vertices 0, 2 and 4 making up the main triangle in Unity they have the indices 0, 1 and 2. I guess this is a direct effect of the missing adjacency information.

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 The-White-Guardian · Apr 23, 2021 at 02:51 PM

2021, still not working. Lineadj was introduced as part of shader model 4.0, IE DirectX 10, released in June of 2007. It's been fourteen years.

Another feature that was given a botched implementation, that shows zero signs of ever being looked to, and that we'll now have to somehow implement on our own. At this point I'm regretting choosing Unity. :/

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

14 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

Related Questions

how to use Geometry shader in unity 4 ? 1 Answer

Geometry Shader misses vertices problem. 2 Answers

shell fur in HDRP - possible? 0 Answers

How do I get the native texture pointer to a camera's depth texture? 0 Answers

Needing help to fix my old 2012 shader! 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