Godot 4 Raymarching! Modelling Techniques.

  Рет қаралды 3,150

Digvijaysinh Gohil

Digvijaysinh Gohil

Күн бұрын

Пікірлер: 20
@nutzeeer
@nutzeeer 7 сағат бұрын
i would like to implement raymarching leveraging godots node system. to make it easier for basic settings, while still allowing all the raymarching complexity.
@iDigvijaysinhG
@iDigvijaysinhG 3 сағат бұрын
That may require some engine level knowledge but I think it's definitely doable. (Not for me though 😅)
@iadoptedanalien
@iadoptedanalien 2 ай бұрын
I'm following the tutorial, and I'm having some troubles when switching the camera projection from perspective to orthographic. The interaction between the SDFs and the camera seems a bit "wrong". Do you have any tips on how to adjust the shader to make it work correctly with orthographic cameras?
@iDigvijaysinhG
@iDigvijaysinhG 2 ай бұрын
Seems like I haven't taken the orthographic projection into consideration. I will check and get back to you. (90% chance it won't work with orthographic projection)
@iadoptedanalien
@iadoptedanalien 2 ай бұрын
@@iDigvijaysinhG Thank you for your reply! If you could provide any insights or examples on how to adapt the shader for orthographic projection, I'd greatly appreciate it. I'm really looking to get this working, as I'm having some trouble with the adjustments
@iDigvijaysinhG
@iDigvijaysinhG 2 ай бұрын
Ok so as I have suspected, working with orthographic projection is a bit tricky, so the solution depends on what you are trying to achieve. A few suggestions, first, change the camera projection to perspective and than try to fake the orthographic style by adjusting camera position and POV. If that is not feasible, try to use a Sphere as the ray marching volume.
@iadoptedanalien
@iadoptedanalien 2 ай бұрын
@@iDigvijaysinhG Unfortunately, I need to use an orthographic camera due to the style of my project, and using a sphere as the volume didn’t work out too well. I’ll spend some time studying the math behind it and see if I can figure it out. Thanks for the help, your ray marching series was super useful
@plur_ndbn
@plur_ndbn 5 ай бұрын
Thanks. Any chance you will create videos about CanvasItem shaders?
@iDigvijaysinhG
@iDigvijaysinhG 5 ай бұрын
Hey, I don't have any idea in mind but I am open to suggestions. Do you have any particular effect in mind? I have made one using visual shader by the way, it's called ice freeze full screen shader if you want to check it out.
@plur_ndbn
@plur_ndbn 5 ай бұрын
​ @iDigvijaysinhG In current (my first) project I try to create space system (in 2D), interested in warp, light speed, wormhole effects, etc.. But It all personal for me, it uncomfortable to ask. At now i've try create planets, It a bit hard for me (poor math) for understanding UV transforms, for example I've search how wrap texture in 2D sphere, some parts of this found in different sources void fragment() { vec2 uv = 2.0 * (UV - 0.5); float r = length(uv); uv *= asin(r) / r; uv.x = uv.x / TAU; uv.y = uv.y / PI + 0.5; uv.x += TIME * 0.01; COLOR.rgb = texture(TEXTURE, uv).rgb; COLOR.a = step(r, 1.0); } I've compared this with your spherize_uv function, it a bit different result. Texture I use from website "Solar Textures" I also know people likes full screen effects, like CRT, pixelated, distortion, may be you will interested to create video with explanation, because many just copy shader code from sites.
@iDigvijaysinhG
@iDigvijaysinhG 5 ай бұрын
@plur_ndbn, don't worry too much about asking. Think of it this way, you are giving me video ideas. And as far as math is concerned, I can tell from personal experience that mathematics has a tendency to seem difficult until we know proper applications for its concepts. I would recommend you check out Desmos, it's a tool to visualize maths(sort of). And of course practice, practice practice. And when you get stuck don't feel discouraged, game development in general is hard, it's only natural that we struggle sometimes. Having said that I will definitely come up with something in the future based on your ideas.😁
@artiartem
@artiartem 5 ай бұрын
Does it have any issues when using marching on specific object in the scene and leaving other objects with standard rendering?
@iDigvijaysinhG
@iDigvijaysinhG 5 ай бұрын
Hey, you can use standard meshes alongside ray marched shapes just fine.
@UltimatePerfection
@UltimatePerfection 5 ай бұрын
How about adding support for metaballs modelling?
@iDigvijaysinhG
@iDigvijaysinhG 5 ай бұрын
Like the ones in the Blender? I am sorry could you elaborate?
@UltimatePerfection
@UltimatePerfection 5 ай бұрын
@@iDigvijaysinhG Yup. Like those in Blender.
@iDigvijaysinhG
@iDigvijaysinhG 5 ай бұрын
@@UltimatePerfection Yes, but I am not sure about adding support part, You can probably use smoothmin and smoothmax function to sort of mimic that behaviour.
@maxarq
@maxarq 5 ай бұрын
ok what about texturing them?
@UltimatePerfection
@UltimatePerfection 5 ай бұрын
Dunno, triplanar maybe?
@iDigvijaysinhG
@iDigvijaysinhG 5 ай бұрын
That is the topic for the next episode in the series, you have to wait a bit longer for that.
Godot 4 Raymarching: Master Texturing & Coloring!
9:52
Digvijaysinh Gohil
Рет қаралды 536
Compositor Effect! Step By Step Setup in Godot 4.3
27:43
Digvijaysinh Gohil
Рет қаралды 2,8 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 55 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 14 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
It Takes Two, lava lamps, Raymarching in Godot 4.1.
12:42
Martin Donald
Рет қаралды 53 М.
How To Shader (Fast) - using Godot Engine
7:10
PlayWithFurcifer
Рет қаралды 344 М.
HOUDINI: Things I Wish I Knew Earlier Edited
15:50
DAMIDIGITAL
Рет қаралды 2,9 М.
Coding Adventure: Ray Marching
5:06
Sebastian Lague
Рет қаралды 1,1 МЛН
Why Do Big Video Game Studios Avoid Blender?
6:49
The Cantina
Рет қаралды 701 М.
Voxel Ray Tracing
5:16
7 Bits Per Byte
Рет қаралды 270 М.
Godot 4: Scene Depth Explained
16:44
Digvijaysinh Gohil
Рет қаралды 1,5 М.
GODOT 4 + Megascans // Can It Compete With UNREAL or UNITY?
8:25
StayAtHomeDev
Рет қаралды 46 М.
I Made an Electronic Chessboard Without Turns
14:32
From Scratch
Рет қаралды 973 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 55 МЛН