Craquelure

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
darkfrei
Party member
Posts: 1184
Joined: Sat Feb 08, 2020 11:09 pm

Craquelure

Post by darkfrei »

Hi all!

I want to make the Craquelure, do you have any idea how to make it procedurally?
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
UnixRoot
Citizen
Posts: 85
Joined: Mon Nov 08, 2021 8:10 am

Re: Craquelure

Post by UnixRoot »

I think Voronoi could be the solution. Maybe with multiple layers
User avatar
darkfrei
Party member
Posts: 1184
Joined: Sat Feb 08, 2020 11:09 pm

Re: Craquelure

Post by darkfrei »

I've also think about the Voronoi, maybe find the critical values near the cell end and make small distortion for that distance. Maybe 1 pixel + some percentage value from distance of current pixel to cell node.

So the needed functions are:
Poisson discs to make nodes on quasisame distances -- 2023-07-15 done: viewtopic.php?p=255776#p255776
Voronoi polygons with this nodes
Noise for value random for crack thickness
Distance to the node for crack thickness
Last edited by darkfrei on Sat Jul 15, 2023 4:05 pm, edited 1 time in total.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
UnixRoot
Citizen
Posts: 85
Joined: Mon Nov 08, 2021 8:10 am

Re: Craquelure

Post by UnixRoot »

I would study some Voronoi based crack shaders. There are many shaders for cracks in terrain textures, etc where only the lines are visible.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests