I recently got a fancy OLED monitor, so I've been exploring HDR render targets and SDR/HDR swapchain output with various tone-mapping operators in D3D12 & Vulkan. (SDR video but you get the point.) It's cool and fun :) #odinlang
I recently got a fancy OLED monitor, so I've been exploring HDR render targets and SDR/HDR swapchain output with various tone-mapping operators in D3D12 & Vulkan. (SDR video but you get the point.) It's cool and fun :) #odinlang
Excellent video! :)
I like that the optimisation is clearly guided by the game design goals, and the problems/solutions are explained with tradeoffs and simplified examples. Looking forward to more!
I think there's a smooth scrolling issue with the demo; this happens to me in Zen and Brave.
Thank you :)
I do depth comparison a few pixels down from the current fragment to see if it's larger than some threshold. Seems to work alright.
Yeah I use lerp/smoothstep to subtly blend between each step of the toon shader. Likewise, the cloud noise it not perfectly sharp, which helps with flickering. Good luck with the shader programming, it's fun to learn!
I probably had the grass density too high, it can really be more sparse and still have the desired effect. The clouds are a global noise texture sampled in the light function with world space UVs (when LIGHT_IS_DIRECTIONAL) and used as attenuation for my custom toon shading.
I don't know how Unity does rendering these days, but Godot uses forward rendering, so I just put my custom outline material on each object and it works. In the Water section of the article I have a paragraph about the depth/normals pre-pass, as that information is required for the outlines.
You can either bake that information into the multimesh instance data or sample it from a texture. For my tree leaves, I sample positions/normals on a mesh and pass that into the multimesh. If you're doing procedural terrain grass, let's hope you have a heightmap to sample from.
No problem. You'll need to make sure all your inputs to your lighting model are the same for grass and ground. I set LIGHT_VERTEX equal to the model origin (MODELVIEW_MATRIX[3].xyz) and NORMAL equal to ground/surface normal.
@davidhol.land vi just wanted to thank you for the guide on the godrays, i managed to get it working! Thank you so much
Thanks, I'm seeing how far I can get without engines or libraries. I'll still use Godot for prototypes and game jams.
The game from scratch is going well :)
I got vulkan & d3d12 renderers, code hot-reload, shader hot-reload, single draw call ui; and stable, frame-rate independent update loop. Going to have a stab at audio next. #odinlang
Thanks, friend. Specifically for this style, it can be hard to add a sense of depth to the scene without it looking too 3D, which is why I spent much effort on the god-rays. Also, smooth shading can look odd, but sharp shadows can cause flickering, due to the low resolution; it's a balancing act.
Man I've ran into this many times, following a bunch of overloaded classes/methods just to find what the "default" values of a struct are.
Perhaps this crudely drawn diagram may help(?)
a point on the plane; I check the shadow attenuation at that point (using a custom Godot shader language function), coloring the fragment if lit; then ray march a few more times using a defined gap to create the layers of light.
I find it difficult to explain, but I'll give it a shot. I have a post-processing shader that ray marches into the scene; there is a mathematically defined plane in world space that is parallel to the sun direction; in view space, using the x/y coords of the current fragment, I solve for z to get...
Iβm reading The Art of Game Design and this is the best lens illustration so far.
β¦ the distance from the cell centre, used to animate the lines length.
The red and green channels encode a vector pointing away from the centre of each cell. That way, my shader can extract the horizontal direction relative to the view, even when rotated. The blue channel is random per cell, used for timing offset of animation. Alpha channel isβ¦
Thanks! I'm not totally sure, just building out mechanics that I like. Something single player, with minimal systems; a little adventure :)
I've added Open Graph meta tags to my website so now link cards should look nice :)
yeah i'm still doing this sometimes #pixelart #shaders #godot #gamedev
I'M VERY SORRY π
I made this video just for you under the guise that you were wondering how a 3D pixel art camera works :)
Playdate console
Iβm ready to crank #playdate #gamedev
3d pixel art render of a sword on a rock surrounded by shallow water
hello bsky :)
I like water #pixelart #shaders #godot #gamedev