Mooses2k / SecretHistories

First-person stealth/combat roguelite
Other
14 stars 11 forks source link

Better candle and torchlight #168

Open Mooses2k opened 2 years ago

Mooses2k commented 2 years ago

Related: #374

Stewie did some work on a basic wax and candle shader and a flame that always points up

Brightness of torch and how often sputters shows how burnt down it is. Can always drop if too dark and keep new one.

Ayomideabdulazeez commented 1 year ago

So have implemented the torches and added some few logics to the candle to make it somewhat realistic, but we would be needing some few particles for the fires/flames and smoke for the torch and we will would be needing shaders implemented for the candle , which entails candle wax dropping from the side and other candle related behaviors .

Here's a video of a fire particle in Godot , that is similar to what we want , you can pretty well interact with me @Ayo so we can talk more on this

Anyways here's the video: https://www.youtube.com/watch?v=8ngg6ueC_ks&t=79s

Mooses2k commented 1 year ago

PR exists for this, I'll check

Mooses2k commented 1 year ago

basics done and tweaked. Someone other than Ayo needs to do the particles and flicker effects

Mooses2k commented 1 year ago

torch and lantern flicker added, but it's quite slow and not random yet. Just a basic one using AnimationPlayer.

Mooses2k commented 1 year ago

All that's left is:

"Stewie: I think some shader approach combine static masks and scrolling noise would give a nice result Since the candle flame is pretty small on screen, we can get pretty fancy with what the shader is doing, without much of a performance impact even raymarching it might be an option but just deforming a static version with some noise might be enough, honestly Alek — Yesterday at 5:27 PM shader with emissive properties"

https://timengelke.medium.com/create-a-candle-flame-in-ue4-material-niagara-9f0df29574c6

https://www.youtube.com/watch?v=uBb1F02peto

https://www.shadertoy.com/view/Xss3DH

https://www.shadertoy.com/view/XsjBRm

https://www.shadertoy.com/view/MsSBD1

Mooses2k commented 1 year ago

reverted candle to original stylized Stewie mesh and made not a demo blocker =/

Mooses2k commented 1 year ago

Have two people working on better candles, one mesh shader, one particle UV

Mooses2k commented 1 year ago

One person uncontactable. Other has completed the shader code. Here it is: !candle flame shader (Alek).zip

Mooses2k commented 1 year ago

Done, but still issues and todos: