now i’ve adjusted the system to be able to read straight from the voxel data and apply that to the 3D texture. previously conflicts were created from the jobs system when trying to read block data that may have been modified. i tweaked my jobs setup to ensure that all jobs are complete before the
November 20, 2024 at 9:05 PM
now i’ve adjusted the system to be able to read straight from the voxel data and apply that to the 3D texture. previously conflicts were created from the jobs system when trying to read block data that may have been modified. i tweaked my jobs setup to ensure that all jobs are complete before the
I suppose its probably different since im writing compute shaders rather than standard shaders, it feels closer to C# (except in some confusing ways that come to baffle me)
November 10, 2023 at 6:28 PM
I suppose its probably different since im writing compute shaders rather than standard shaders, it feels closer to C# (except in some confusing ways that come to baffle me)
I was very tempted to take the easy route lol, but I really had to have proper lighting and make sure all the chunk gen was still fast. I have a character in the game who's primary ability is being able to dig 3x3 tunnels very very quickly, so poor chunk performance could easily mess up the balance.
November 10, 2023 at 6:27 PM
I was very tempted to take the easy route lol, but I really had to have proper lighting and make sure all the chunk gen was still fast. I have a character in the game who's primary ability is being able to dig 3x3 tunnels very very quickly, so poor chunk performance could easily mess up the balance.
yea shaders are a real pain. i use shadergraph wherever I can, and where writing actual HLSL is required I find generally it's syntactic similarities with C# sorta allow me to hack something function together.
November 10, 2023 at 6:22 PM
yea shaders are a real pain. i use shadergraph wherever I can, and where writing actual HLSL is required I find generally it's syntactic similarities with C# sorta allow me to hack something function together.
I've had a lot of growing pains to get it to actually function, but pretty limited crashing issues. most recent headache has been block lighting, since Unity's default real-time setup means that underground areas are pretty much fully lit. im using a compute shader to approximate better lighting.
November 10, 2023 at 2:25 PM
I've had a lot of growing pains to get it to actually function, but pretty limited crashing issues. most recent headache has been block lighting, since Unity's default real-time setup means that underground areas are pretty much fully lit. im using a compute shader to approximate better lighting.
all custom multithreading! I'm not familiar enough with jobs to make it work, so I spin up a thread on each available CPU core responsible for generating chunk mesh data, then pass that to the main thread where its converted to an actual in-game mesh.
November 10, 2023 at 2:15 PM
all custom multithreading! I'm not familiar enough with jobs to make it work, so I spin up a thread on each available CPU core responsible for generating chunk mesh data, then pass that to the main thread where its converted to an actual in-game mesh.