Git Product home page Git Product logo

unity-vfx-custom-addons's Introduction

unity-vfx-custom-addons

Custom Add-ons for Unity Visual Effect Graph

Should work with Unity 2020.1 + VFX graph 8.2 and may not work with other versions.

  • Custom Function Block: Lets you insert custom HLSL in a VFX graph Context. Based on work by @peeweek, updated to work in current versions of VFX graph and some UI modifications like a larger text field for editing. Thanks to @andybak for info on the origin of this code.
  • Output Buffer Context: This can help you to copy the resulting VFX attributes in the Output VertexBuffer to a Global ComputeBuffer / StructuredBuffer. My own work, and a work in progress at that. Requires manual editing of the code generation template to match your vfx graph and data struct. You won't be able to get it to work if you don't know how to modify this manually. No example is included currently, and I am unwilling to provide support.
  • Smooth Zoom: A really hacky proof of concept to force Unity's GraphView API to support smooth scrolling / zooming in VFX graph editor windows when used in combination with software like https://www.smoothscroll.net/

Please contribute if you are able to help me improve this and to keep this functional before these features officially land in Visual Effect Graph.

unity-vfx-custom-addons's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unity-vfx-custom-addons's Issues

Creating and assigning the structured buffer

Hi @landonth !

Thanks for this excellent reference on how to get VFX output on to a buffer.

Would you be able to provide a brief reference for correctly creating, assigning and accessing the computer buffer used in the output? I understand this is a global buffer but it seems to never be created by the OutputBuffer script, would the structured buffer in an related shader need to match the same structure and order as in the VFX Graph?

Would appreciate any pointers!

True source for the custom code

As lovely as it is to receive a credit I don't think I deserve this one.

I think you probably got the custom code functionality from: https://github.com/IxxyXR/Parametric-VFX

and then simplified it to remove all the preset formula stuff. If so - I basically got the custom code feature from @peeweek: https://github.com/peeweek/net.peeweek.vfxgraph-extras/tree/master/Editor/Blocks/CustomCode

and added in the stuff you later removed! So you've basically just returned it to the state I found it in ;-)

Which reminds me. I should probably credit my source in the readme there. I always intended to do more with that project but I got sidelined.

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.