Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Working GLSL TD Files for OSX Beta

Still a little green? Ask your beginner's questions here

Re: Working GLSL TD Files for OSX Beta

Postby nettoyeur » Fri Jan 27, 2017 8:09 am

Do you know what model graphics card is in your mac?

Have you tried the other example from Palette?
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1169
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Working GLSL TD Files for OSX Beta

Postby movingninja » Fri Jan 27, 2017 8:18 am

It's an Intel Iris Pro

I'll try that other example now...

Thanks
movingninja
 
Posts: 6
Joined: Thu Jan 26, 2017 4:09 pm

Re: Working GLSL TD Files for OSX Beta

Postby nettoyeur » Fri Jan 27, 2017 8:52 am

and also post what that GLSL error is, printed in the info1 DAT
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1169
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Working GLSL TD Files for OSX Beta

Postby elburz » Fri Jan 27, 2017 11:38 am

I'd start with simpler ones. I know very few people who "just dived in" to GLSL shaders. You basically buckle down with the GLSL orange book or you start with tutorials and just build your way up.

Good intro to shaders in TouchDesigner is in our book, I believe we stuck to GLSL 3.30, but if not and you have errors, you can just post on the forum:
https://nvoid.gitbooks.io/introduction- ... ction.html

If you're completely new to TouchDesigner, you may want to start at the beginning and see Matthew Ragan's site:
https://matthewragan.com/teaching-resou ... hdesigner/

Depending on what you need, many other good learning resources available too.
--
Elburz Sorkhabi
Creative + Technology
nVoid Art-Tech Limited
http://nvoid.com
elburz
 
Posts: 2017
Joined: Fri Jun 01, 2012 6:55 pm
Location: Toronto, Canada

Re: Working GLSL TD Files for OSX Beta

Postby flowb » Mon Jan 30, 2017 12:25 am

for a primer on glsl programming, you should consider this:

http://www.thebookofshaders.com/

it sort of kicks ass. :)
User avatar
flowb
 
Posts: 117
Joined: Fri Dec 05, 2014 2:00 pm
Location: Los Angeles

Re: Working GLSL TD Files for OSX Beta

Postby gianniskarmas » Sat Jul 08, 2017 4:26 pm

While also new in shaders I got into the same problem:

Pixel Shader Compile Results:
ERROR: 0:1: '' : syntax error: #extension must always be before any non-preprocessor tokens

How can we fix this compile error in a mac?

Many Thanks
gianniskarmas
 
Posts: 2
Joined: Sat Feb 14, 2015 11:51 pm

Re: Working GLSL TD Files for OSX Beta

Postby doctorhandshake » Thu Jul 13, 2017 1:03 pm

#extensions are processor-specific — I'd google the name of the extension and the name of your graphics card together and try to find documentation to see if your card supports that specific extension

Movingninja - are you the movingninja from Tectonic?
Noah Norman
http://hardwork.party

codename: massapequa
User avatar
doctorhandshake
 
Posts: 143
Joined: Wed Aug 17, 2011 6:31 pm
Location: Brooklyn, NY

Re: Working GLSL TD Files for OSX Beta

Postby SchO » Fri Jun 07, 2019 3:51 am

Hi There! I'm trying to get this example to work but the only error I am faced with is the particleMotion text linked to the GLSL Multi TOP. Do anyone know how to fix this?

error:

Pixel Shader Compile Results:
ERROR: 0:1: '' : syntax error: #extension must always be before any non-preprocessor tokens

for the line:

#extension GL_ARB_gpu_shader_fp64 : enable
SchO
 
Posts: 2
Joined: Tue Dec 11, 2018 2:39 pm

Re: Working GLSL TD Files for OSX Beta

Postby malcolm » Mon Jun 10, 2019 3:53 pm

Things such as #extensions should be specified in a DAT via the Preprocess Directives parameter, not in the shaders directly. That way it ensures it's placed before other code that we add to your shaders to provide built-in uniforms etc.
User avatar
malcolm
Staff
 
Posts: 4424
Joined: Tue Nov 13, 2007 1:11 am

Re: Working GLSL TD Files for OSX Beta

Postby SchO » Wed Jun 12, 2019 9:18 am

Ok thanks, that makes sense!

Now the problem I am facing are these errors that come up:

Pixel Shader Compile Results:
ERROR: 0:41: 'double' : Reserved word.
ERROR: 0:41: 'double' : syntax error: syntax error

The only thing I did was move '#extension GL_ARB_gpu_shader_fp64 : enable' from the shader into the Preprocess Directives parameter. I know that it's not as simple as that. What specific way do you have to reference the extension in this parameter?

Iv'e been searching but can't find the right answer. I'm new to this area of Touch
SchO
 
Posts: 2
Joined: Tue Dec 11, 2018 2:39 pm

PreviousNext

Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 31 guests