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

Working GLSL TD Files for OSX Beta

Postby movingninja » Thu Jan 26, 2017 4:14 pm

Hi

I'm completely new to TD and have just downloaded the OSX beta

Are there any working project files that open in this version to take a look at how it works with GLSL?

I've tried so many and all have errors. Does anyone know of any which open and work in the OSX beta...

I'm just looking for one TD project that works to see what it can do

Thanks

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

Re: Working GLSL TD Files for OSX Beta

Postby malcolm » Thu Jan 26, 2017 4:16 pm

As an example can you point us to some of the ones that are failing for you? Any written with GLSL 1.20 won't work since OSX doesn't support that with their OpenGL 3.3+ drivers.
User avatar
malcolm
Staff
 
Posts: 4428
Joined: Tue Nov 13, 2007 1:11 am

Re: Working GLSL TD Files for OSX Beta

Postby movingninja » Thu Jan 26, 2017 5:53 pm

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

Re: Working GLSL TD Files for OSX Beta

Postby malcolm » Thu Jan 26, 2017 5:54 pm

Unfortunately no, it's a limitation of macOS that they don't support GLSL 1.20 in their OpenGL 3.30 driver. The only way to avoid it is to upgrade the shader to GLSL 3.30, which isn't a huge task luckily.
User avatar
malcolm
Staff
 
Posts: 4428
Joined: Tue Nov 13, 2007 1:11 am

Re: Working GLSL TD Files for OSX Beta

Postby movingninja » Thu Jan 26, 2017 6:35 pm

I see. Are there any existing project files which already have GLSL 3.30 shaders that work on OSX?

I have started looking at the intro tutorials to GLSL and the basics of TD but I really want to just open up a working project to see how things fit together down the line...
movingninja
 
Posts: 6
Joined: Thu Jan 26, 2017 4:09 pm

Re: Working GLSL TD Files for OSX Beta

Postby malcolm » Thu Jan 26, 2017 6:44 pm

TD-Particle-Flowfields is actually GLSL 4.00 and 4.30, which is also why it fails on macOS.
The waves one doesn't seem to have much GLSL actually, when you cloned the repository did you also get the 'shared' submodule?
You can do that with
git submodule init
git submodule update

Or download that project manually and put it in the shared directory.
User avatar
malcolm
Staff
 
Posts: 4428
Joined: Tue Nov 13, 2007 1:11 am

Re: Working GLSL TD Files for OSX Beta

Postby nettoyeur » Thu Jan 26, 2017 8:23 pm

hi movingninja,

welcome to the forum.

If you want to learn GLSL I'd advice you to begin with some simpler shaders, as you've chosen not the most easy ones for beginners to dissect.

That said, I've converted the TD-particles-flowfield from Asterix to GLSL 3.30 so you can have a look. I just tested it on my MacBook Air and it works.
particles-flowfield_glsl330_OSXv2.toe
(10.78 KiB) Downloaded 253 times

Another advanced GLSL example is particlesGpu, it comes with TD and you can drag it in your network from the Palette
(it's under Tools)

Some more TD GLSL examples which are perhaps a bit easier to digest are in the collection of David Braun on github

have fun!
Last edited by nettoyeur on Fri Feb 03, 2017 9:24 am, edited 1 time in total.
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1176
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 6:05 am

Great, thanks to the both of you for your help.

One last question regarding the updated particles-flowfield_glsl330_OSX.tox file - is that meant to display output of some kind?

When I hit F1, I just get a xyz axis in a black space...

Thanks again
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 6:39 am

that is correct, this example was not made to show any output in perform mode(F1).

You need to go one level deeper, so scroll your mousewheel to zoom in until you enter the first Comp called "Composition", in that network you'll see some output. From there, zoom in to the Comp called 'particles1' to see more of the network.

Read "13. Navigate into Component Operators that contain Networks" on this page:
First Things to Know about TouchDesigner

Also, here's another version which does show output when starting perform mode (F1)
Attachments
particles-flowfield_glsl330_OSXv2.toe
(10.78 KiB) Downloaded 194 times
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1176
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 7:55 am

Hu Nettoyeur

Thanks so much for taking the time to answer these questions.

I think from here I'd better start going through some simpler examples.

The file produces just a black window for me and when zooming in, there is a compile error in the GLSL shader that is too advanced for me.

Thanks again.

Screen Shot 2017-01-27 at 11.53.13.png
Screen Shot 2017-01-27 at 11.53.13.png (214.61 KiB) Viewed 4798 times
movingninja
 
Posts: 6
Joined: Thu Jan 26, 2017 4:09 pm

Next

Return to Beginners

Who is online

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