Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Geometry shaders in 2019 builds

General discussion about anything TouchDesigner

Geometry shaders in 2019 builds

Postby vince79 » Thu Jul 04, 2019 9:11 pm

Hi,

Lots of my geometry shaders don't render since the new 2019 builds. It says that it has compiled successfully but I don't see anything showing up in the GLSL MAT and in the render TOP.

I don't see any any warnings in the backwards compatibility sections of the release notes that can be the cause of the problem.

Is there any general update how geometry shaders are managed?

Thanks

Vincent
Last edited by vince79 on Fri Aug 02, 2019 11:32 pm, edited 1 time in total.
vince79
 
Posts: 14
Joined: Wed Jun 08, 2011 3:12 am

Re: Geometry shaders in 2019 builds

Postby malcolm » Thu Jul 04, 2019 9:14 pm

Shouldn't be any changes required, can you share an example and we can fix it?
User avatar
malcolm
Staff
 
Posts: 4396
Joined: Tue Nov 13, 2007 1:11 am

Re: Geometry shaders in 2019 builds

Postby malcolm » Thu Jul 25, 2019 1:39 pm

Hey,

Ok so there is a change required, sorry about that. Lines are now sent to you using lines_adjacency instead of just lines. This means you get 4 vertices as input into the geometry shader:
[previous, currentStart, currentEnd, next]

So your 'real' line is currentStart to currentEnd, and the other two are adjacency information which can be used to further control what you are outputting.

I'm looking into if there is a way to make this backwards compatible.
User avatar
malcolm
Staff
 
Posts: 4396
Joined: Tue Nov 13, 2007 1:11 am

Re: Geometry shaders in 2019 builds

Postby jmt4zj » Thu Jul 25, 2019 4:32 pm

This is really good to know. Thanks!
Jonathan Thompson
@pointshader
http://pointshader.com
User avatar
jmt4zj
 
Posts: 160
Joined: Mon Nov 01, 2010 3:15 am
Location: NYC


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: Bing [Bot] and 11 guests