Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Fluids Berlin Project on a Mac?

General discussion about anything TouchDesigner

Fluids Berlin Project on a Mac?

Postby ahlynsky » Sat Aug 04, 2018 10:03 pm

Hey,

Im going through this wonderful tutorial Noah Norman posted and having some trouble getting the TouchFluids Berlin project working on my mac. This looks like the error. Im new to GLSL and don't even know how to approach solving this.

"
=============

Pixel Shader Compile Results:
ERROR: 0:165: Argument 3 to function 'textureOffset' must be a constant expression
ERROR: 0:166: Argument 3 to function 'textureOffset' must be a constant expression
ERROR: 0:167: Argument 3 to function 'textureOffset' must be a constant expression
ERROR: 0:168: Argument 3 to function 'textureOffset' must be a constant expression
ERROR: 0:171: Argument 3 to function 'textureOffset' must be a constant expression
ERROR: 0:173: Use of undeclared identifier 'pL'
ERROR: 0:173: Use of undeclared identifier 'pR'
ERROR: 0:173: Use of undeclared identifier 'pB'
ERROR: 0:173: Use of undeclared identifier 'pT'
ERROR: 0:173: Use of undeclared identifier 'bC'
ERROR: 0:215: Argument 3 to function 'textureOffset' must be a constant expression"

These are the links.

https://www.youtube.com/watch?v=r-95jCflRSA

https://github.com/ancillarymagnet/touchfluids

Has anyone tried this?
ahlynsky
 
Posts: 23
Joined: Mon Mar 19, 2018 10:46 am

Re: Fluids Berlin Project on a Mac?

Postby doctorhandshake » Sun Aug 05, 2018 8:16 am

Ah nuts. I think Malcolm told me about this and I didn’t find a fix for it even though I said I would.

The issue is, like the error says, that the compiler wants a constant, rather than a variable, in that texture lookup, and the way I’ve set that function up would get super ugly if it were all written out with constants.

I gotta think about that some more but TBH that one is in the top 3 chunks of code in that solver I’d have a hard time rephrasing.

I’ll follow up if I come up with a ... solve. Sorry.
Noah Norman
http://hardwork.party

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

Re: Fluids Berlin Project on a Mac?

Postby ahlynsky » Wed Aug 08, 2018 8:06 am

Hey,

Thanks for taking the time to respond! I've been digging into the Fluids patch (on my work computer) and cant thank you enough for posting it. I've been wanting to play around with fluid systems for a while but had no clue how they worked. Peeling apart how this works has been extremely enlightening.

:P :P :P
ahlynsky
 
Posts: 23
Joined: Mon Mar 19, 2018 10:46 am

Re: Fluids Berlin Project on a Mac?

Postby doctorhandshake » Wed Aug 08, 2018 9:18 am

Hey really glad to hear it - Landon just pointed out that I never merged my latest branch.

Pull again from master and you might find the organization easier to work with (uses includes and externalizes GLSL, also links to credit (!!) for places where I figured out how to implement this -- should have been there from the start :oops: )

https://github.com/ancillarymagnet/touchfluids

N
Noah Norman
http://hardwork.party

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


Return to General TouchDesigner Discussion

Who is online

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