GithubHelp home page GithubHelp logo

Comments (9)

torinmb avatar torinmb commented on May 21, 2024

This is close. Right now I'm just exporting the surfaceDistance and shade function and pasting it in my existing .tox file.
I just need to export the core library and change the name of main function and download it as a .glsl
I should also upload my .tox file with a .readme on how to swap out the shader code.

from shader-park-core.

PWhiddy avatar PWhiddy commented on May 21, 2024

Ok. To be clear, for this to be complete it needs a TD target in sp-core that provides an api that goes from a sculpt string directly to a string/file(s) that can be opened in TD without any extra manual steps. The point is that these export targets need to work completely from the API so that you could easily integrate SP into the target for live coding. To be clear, 0% of this conversion should be implemented in the website's repo

from shader-park-core.

torinmb avatar torinmb commented on May 21, 2024

something like this? e9655cc

from shader-park-core.

torinmb avatar torinmb commented on May 21, 2024

The .tox file isn't included. You have to open the ShaderPark.tox file, open one of the nodes and paste in the generated code

from shader-park-core.

PWhiddy avatar PWhiddy commented on May 21, 2024

What would it take to avoid having to copy paste?

from shader-park-core.

torinmb avatar torinmb commented on May 21, 2024

I could potentially set it up so the TD project imports the glsl content from an external file. That way you could drop a new file in, or if you’re using sp-core locally you could have your saved changes overwrite the file. Makes me want to have a VS code plugin for the library

from shader-park-core.

PWhiddy avatar PWhiddy commented on May 21, 2024

Hm interesting. It would be super cool if were able to find a way to integrate it with unity/TD that lets you edit the sculpt file and have the changes automatically generate and load in the application. Would require making a plugin/script to run in unity/TD, but probably not actually too difficult and would be a huge leap for the scope of the project

from shader-park-core.

PWhiddy avatar PWhiddy commented on May 21, 2024

Automatically regenerating a glsl/hlsl file needed in unity/TD would be easy. thats just a program that watches for changes in the file youre editing and then automatically runs sp-core to a target file. We then just need that script to talk to unity/TD (they both have nice APIs) to tell them to reload/recompile the shader. Pretty straightforward I think actually. A solid stretch goal at least.

from shader-park-core.

torinmb avatar torinmb commented on May 21, 2024

https://github.com/shader-park/shader-park-touchdesigner. we did it :)

from shader-park-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.