Тёмный

How I Use Mesh Shaders 

Grant Kot
Подписаться 6 тыс.
Просмотров 3,7 тыс.
50% 1

Quick mesh shader explanation vid for the new peeps. Also I tried to record higher quality than my previous vid on MS.

Опубликовано:

 

22 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@heavenstone3503
@heavenstone3503 4 месяца назад
i'm going from "i should play around with mesh shaders" to "i NEED to play around with mesh shaders"
@GrantKot
@GrantKot 4 месяца назад
I'm prepping this old demo for public release. 👍 if your computer supports mesh shaders :)
@luigi.0533
@luigi.0533 4 месяца назад
@luigi.0533
@luigi.0533 4 месяца назад
Your work is amazing
@pacifiky
@pacifiky 4 месяца назад
This is genuinely so cool I love how it looks
@dragoons_net
@dragoons_net 4 месяца назад
Can't wait for the release! Mesh shaders are great, but 1) do they support textures? I could never find an example with that 2) are they that much more efficient? I found out that the overhead of populating the arrays/buffers of triangles was there, and, at the end of the day, the major gain was from occlusion culling of the meshlets? I tried to intregate them in my project, but I can't deal well with those two points.
@GrantKot
@GrantKot 4 месяца назад
Textures are supported. You choose the struct you use for your vertices. Texture sampling will still be handled in the pixel shader, which pretty much stays the same. They are more efficient if you take advantage of the flexibility to do custom culling. If you are rendering the exact same triangles as a vertex shader, VS might win out.
@dragoons_net
@dragoons_net 4 месяца назад
Thanks! On point 2, yes, in my case, Vertex Shader wins out, as my culling is done upstream I think that you don’t use mesh shaders for your amazing voxel physics project?
@GrantKot
@GrantKot 4 месяца назад
Yeah, but I will be pulling it in. I will be working to combine my 3 demos with their different focuses, geo, lighting, scale.
@iestynne
@iestynne 4 месяца назад
Love the mesh shader API, so elegant.
@GrantKot
@GrantKot 4 месяца назад
Yeah, honestly, I think it was easier to set this up with StructruredBuffers than instanced rendering in DX11 with the input layouts and everything. It got a bit killed by the GPU shortage and Nanite. But I think maybe at larger native resolution and MSAA rendering the hardware rasterization can start winning out again. I kind of want an MSAA option because of all the moving particles, or I wish with FSR you could pass in the opaque and transparent layers separately with both their depth buffers.
4 месяца назад
I would love to see a more in depth explanation of this!
@SeanStClair-cr9jl
@SeanStClair-cr9jl 4 месяца назад
Oh shit! I need to do like, exactly this! This is fuckin cool. I wanna render a big-ole' trash heap, with physics and stuff. Wouldn't even need everything to be dynamic all of the time; I'd hopefully find some way to "switch" between static and dynamic here and there
@atomictraveller
@atomictraveller 4 месяца назад
i'm just completing my first year with opengl, coming from an audio dsp background. my next challenge is isosurface terrain. i wonder what function you are using for your green object, is it an octave of perlin with smoothstep? i'll start next week, but a few things have occured to me: second order cubic interpolation would outperform gradient descent for surface nets. it also occured to me that keeping an array of normals from the isosurface function (with zeros for outside points) similarly interpolated will solve triangulation normals and collisions, conceptually simpler and computationally for complex functions. the green objects ar emoving too rapidly for me to observe, but if you are using first order interpolation, second order interpolation also improves quality here :) i super wish inigo quilez had introduced people to higher order interpolants!
@GrantKot
@GrantKot 4 месяца назад
The green objects were little heart emojis. The compression is pretty rough on this one. Here the goal wasn't to get a smooth liquid surface, but more to have a granulated look like a bunch of candy pieces or something.
@xan_dr
@xan_dr 4 месяца назад
this is awesome!
@toxiccan175
@toxiccan175 4 месяца назад
Would it make sense to use floating sprites for the lowest level of detail?
@GrantKot
@GrantKot 4 месяца назад
Yes that could definitely be a good idea. Another might even be to draw the screen space bounding box (with depthlessequal) and use a ray intersection with the geometry. Ray cube is very fast. Tellusim engine also had luck with hardware raytracing.
@JerryKid72
@JerryKid72 4 месяца назад
someone tell kitchen simulator about this!
@therealpeter2267
@therealpeter2267 4 месяца назад
Would instancing not work with your original setup?
@GrantKot
@GrantKot 4 месяца назад
Although there are only 7 main shapes, because of LOD, there are also meshes at each LOD level, which makes the mesh choices balloon a bit. Instancing would definitely work. There are just additional things that you can do in the amplification shader such as choose a different mesh for each particle, as well as frustum culling, to make things more efficient so the GPU has more room to do other things, like lighting, reflections/refractions, etc.
@therealpeter2267
@therealpeter2267 4 месяца назад
@@GrantKot Okay, gotcha! Thanks!
@CRITICALHITRU
@CRITICALHITRU 10 дней назад
Microsoft will never implement this in Minecraft because the game must only be worse with every update.
Далее
Destruction Test No Water
2:01
Просмотров 3,6 тыс.
The Strange Graphics Of LETHAL COMPANY
15:59
Просмотров 843 тыс.
Распаковка #MonsterHigh Potions №5
00:55
Просмотров 142 тыс.
An introduction to Shader Art Coding
22:40
Просмотров 976 тыс.
Why Do Video Game Studios Avoid Blender?
6:49
Просмотров 582 тыс.
6 Months of Voxel Physics Engine Optimizations
8:17
Просмотров 46 тыс.
Radial Gradients Are So Powerful!
4:25
Просмотров 8 тыс.
The Beauty of Isometric Video Games
20:01
Просмотров 389 тыс.
The REAL Reason Unreal Engine VFX Looks FAKE
6:58
Просмотров 443 тыс.
Why Most AAA Games Have No Soul
12:08
Просмотров 2,6 млн
Why Unreal Engine 5.4 is a Game Changer
12:46
Просмотров 1,3 млн
How A Steam Bug Deleted Someone’s Entire PC
11:49
Просмотров 996 тыс.