Questions tagged [raymarching]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Using Ray Marching to render object intersection in unity

I recently watched a Video where a person rendered only the intersection between two 3D objects. How do I implement this in Unity? Note: I am only looking to get a render with 2 colours (one for a hit ...
0
votes
0answers
42 views

Correct distortion resulting from ray-marching

I am trying to combine ray-marching-algorithm and conventional rendering methods. My aim is to render a sphere and a corresponding atmosphere that gradually vanishes into space. It works' pretty fine ...
0
votes
0answers
32 views

How are objects represented in raymarching shaders

How does one represent geometry in raymarching shader? Say I wanted to pass a tree of SDF primitive shaders. My current idea is to pass texture containing their positions as rgb and type as alpha ...
1
vote
2answers
366 views

Raymarching signed distance function resulting in holes on surface - step size required?

I've been learning about raymarching and signed distance functions, and I implemented a raymarching fragment shader in Unity. It works fine for geometric shapes such as cubes and spheres, but when I ...
0
votes
1answer
33 views

PostFX2 Custom Effect's Y position has wrong offset ONLY in GAME camera. Scene camera is OK

I implemented raymarching in a full-screen Post FX2 custom effect. Let's say I'm rendering a SDF sphere at world coordinates 0, 0, 0. Everything is fine in the scene camera -- if I rotate the camera ...
2
votes
1answer
818 views

Raymarching in Unity's new SRP & Post Processing V2

Hello wonderful wizards of the shader world! I've seen a few tutorials featuring the use of Raymarching via the older OnRenderImage function, however, that is no ...
0
votes
0answers
726 views

How can I convert 3D mesh to SDF?

Previously, I found an useful article that explained how to convert 3d mesh to SDF easily. I want our artists to be able to easily convert from polygonal data to SDFs with little-to-no effort. ...
1
vote
1answer
921 views

Rendering clouds similar to Sky: Light Awaits?

I'm interested in adding clouds to my game, with a style similar to those in Sky: Light Awaits You can see them in motion in these videos: (Starts at 26:00) https://www.youtube.com/watch?v=...
4
votes
1answer
893 views

How can I make a collision detection on marching objects?

In a Raymarching project I need to have a collision detection for my Signed Distance Field shapes. I find a project that Implemented simple collision detection.but I need a more stable Physic when ...
51
votes
1answer
35k views

How do Raymarch shaders work?

I have been looking at shaders found here shadertoy.com and most of the cool ones have noise and raymarch in common. I do not understand the source code at all but I really want to. How do these ...