2022 Developer Survey is open! Take survey.

Questions tagged [raymarching]

The tag has no usage guidance.

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

Optimal data structure for managing AABBs to minimize collision check queries

Say I have thousands of 2D Axis-Aligned Bounding Boxes (AABBs), and a single point. I'm checking whether a point is inside a certain AABB before performing some expensive logic. ...
user avatar
1 vote
1 answer
143 views

How to avoid banding with raymarched fog?

I have a raymarching shader for fog. It works well but It creates artifacts in the form of banding: I understand the problem: The step size is too large and the sample points above the ground are not ...
user avatar
  • 641
0 votes
0 answers
43 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 ...
user avatar
1 vote
2 answers
623 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 ...
user avatar
  • 157
0 votes
1 answer
49 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
971 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. ...
user avatar
1 vote
1 answer
2k 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=...
user avatar
4 votes
1 answer
2k 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 ...
user avatar
53 votes
1 answer
39k 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 ...
user avatar
  • 2,049