Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

alternate format? #90

secolaha started this conversation in General
Nov 5, 2022 · 2 comments · 3 replies
Discussion options

Hi, I am playing around with the shadertoy to touch designer translator and some examples work perfectly, but the
shaders that looks more like "real" GLSL doesnt translate (such as https://shaderpark.com/sculpture/-Lhla0Vw2uP0RFTlyXn8)

Am I missing something fundamental?

I am very new at this so please excuse me if this is a F.A.Q.

kind regards,
/Lars

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

Hi Lars,

At the moment there isn't a way to convert the raw GLSL Shader Park examples into the correct format for TouchDesigner. Shader Park started off as a GLSL helper library, and then we realized how helpful it was to abstract it into JavaScript (which uses our GLSL library under the hood). At the moment the TouchDesigner Plugin only supports the more recent Javascript format.

One thing to note is that we've created the ability to bind GLSL into javascript functions https://docs.shaderpark.com/references-js/glsl/glslFunc.html which is supported in the TD plugin.

If you're hoping to bring in the font, you'll need to include this texture msdf-left-align as a uniform in TouchDesinger. (note getting the font to work in TD would require a fair amount of prior shader knowledge). This is something that I'm interested in incorporating to the js library at some point also.

You must be logged in to vote
1 reply
Comment options

It actually does look like we included the ability to convert a GLSL example in the core library to TouchDesigner's format. I just haven't incorporated it into the TD component.

export function glslToTouchDesignerShaderSource(source) {
Comment options

thanks for the quick reply.
I think getting the font to works is probably above my level of "expertise" at the moment :)

but this is a supercool tool and the ability to play around here and then output it to TD GLSL is amazing.

You must be logged in to vote
2 replies
Comment options

Hey! I added the ability to render the GLSL shaders in the TD component. Screen Shot 2022年11月07日 at 2 33 24 PM

Here's a working example of loading in the font. https://drive.google.com/file/d/12WXHDTVPCx1jS_5f7Q1K9nAF7u8Vmx_Y/view?usp=share_link

Notice that I'm passing a reference from the font texture into the shader_material.

Comment options

Amazing!
Will try as soon as possible!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /