Coder Social home page Coder Social logo

raymarched-gpu-particles-with-screenspace-physics's Introduction

Raymarched GPU Particles with Screenspace Physics for VRC

By SCRN

Preview

Particle positions and velocities are stored on the bottom left of the player screen with two grabpasses then fed into a ray marcher.

Stuff that Breaks It

  1. Mirrors (Kinda Fixed?)
  2. Portals (Fixed?)
  3. Other grabpasses

How to Add to Avatars

  1. Look in the Prefabs folder
  2. Put GrabPass Marcher.prefab in root of avatar.
  3. Put GrabPass Spawner.prefab on where you want the particles to come out from. (Make sure the body part doesn't occlude the particle spawn point in game, i.e. move it far enough away)
  4. Particles will be spawning out of the +Z local object direction. So rotate it accordingly.
  5. The spawner must be minuscule. Scale the size to 0.0001 or smaller.
  6. Make sure the "Spawn" property in GrabPass Marcher is always set to 1. It should be by default.
  7. If you're not using a Inventory system, make a gesture override to enabled and disabled GrabPass Marcher and GrabPass Spawner objects.
  8. Make separate gesture overrides for the "Reset" and "Attract" property to set them to 1 in GrabPass Marcher.

If you don't know how to make gesture overrides look up VRC Gesture overrides on Google.

I recommend using https://github.com/Xiexe/VRCInventorySystem to keep the objects disabled and free up a gesture override for spawning.

Thanks to Merlin, error.mdl, Lyuma, Neitri, Nave, 1001 for making this possible.

Contact me on Discord if you have any questions or suggestions: SCRN#8008

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.