Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Eniko Fox
@eniko@mastodon.gamedev.place  ·  activity timestamp 3 weeks ago

holy shit dude look at how much more dramatic caves look now when you stick a light in em!

#EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

camera looking out from the lit portion of the cave. there are other passages to the left and top of the screen. most of the cave is well lit, but the passages are plunged into shadow where the light can't reach
camera looking out from the lit portion of the cave. there are other passages to the left and top of the screen. most of the cave is well lit, but the passages are plunged into shadow where the light can't reach
camera looking out from the lit portion of the cave. there are other passages to the left and top of the screen. most of the cave is well lit, but the passages are plunged into shadow where the light can't reach
camera looking at the lit up cave from the other side. there's a stark contrast between surfaces directly lit by the light, and the cave in general lit by bounce light
camera looking at the lit up cave from the other side. there's a stark contrast between surfaces directly lit by the light, and the cave in general lit by bounce light
camera looking at the lit up cave from the other side. there's a stark contrast between surfaces directly lit by the light, and the cave in general lit by bounce light
camera looking down a dark cave. a light is around the corner, casting a diagonal shadow, with bounce light lighting up the area where direct light doesn't reach
camera looking down a dark cave. a light is around the corner, casting a diagonal shadow, with bounce light lighting up the area where direct light doesn't reach
camera looking down a dark cave. a light is around the corner, casting a diagonal shadow, with bounce light lighting up the area where direct light doesn't reach
  • Copy link
  • Flag this post
  • Block
Eniko Fox
@eniko@mastodon.gamedev.place replied  ·  activity timestamp 3 weeks ago

just to be clear: this lighting doesn't use any realtime raytracing technology or gpu compute buffers or anything like that. in fact it doesn't use the gpu *at all*

you could have this lighting while running the game on a literal potato. i could run this on my 2012 laptop (that's my acceptable performance target)

#EniBlockGame

  • Copy link
  • Flag this comment
  • Block
Eniko Fox
@eniko@mastodon.gamedev.place replied  ·  activity timestamp 3 weeks ago

changed direct lighting in block game so it can be progressively performed over multiple frames, which means i can allot a fixed time budget per frame for it

shown here artificially slowed down and with indirect light hidden to show the process more clearly

#EniBlockGame #GameDev #IndieDev

Your browser does not support the video tag.
GIF
GIF
a light is placed on a stone block. the light spreads out progressively from the center. before it's done spreading a block is placed over the light, removing it. the light is destroyed and darkness propagates outwards from the center
a light is placed on a stone block. the light spreads out progressively from the center. before it's done spreading a block is placed over the light, removing it. the light is destroyed and darkness propagates outwards from the center
  • Copy link
  • Flag this comment
  • Block
Eniko Fox
@eniko@mastodon.gamedev.place replied  ·  activity timestamp 3 weeks ago

i still have some small optimizations to do to direct lighting and small bugs to fix (literal corner cases agghhh!! 😫) and i'll probably tweak the lighting colors and skybox a bit here and there but i'm considering the lighting system done now and i'm excited to move on to adding more *stuff* to the game

#EniBlockGame

  • Copy link
  • Flag this comment
  • Block
Eniko Fox
@eniko@mastodon.gamedev.place replied  ·  activity timestamp 2 weeks ago

someone asked what the caves look like with the different light layers so in this post and a couple replies imma post screenshots from the same cave earlier with direct + indirect, direct only, and indirect only light

#EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

cave screenshot, labeled "indirect lighting only". there is a very gradual darkening throughout with no cast shadows, and a block very close to the camera is lit up
cave screenshot, labeled "indirect lighting only". there is a very gradual darkening throughout with no cast shadows, and a block very close to the camera is lit up
cave screenshot, labeled "indirect lighting only". there is a very gradual darkening throughout with no cast shadows, and a block very close to the camera is lit up
cave screenshot, labeled "direct lighting only". there is an abrupt shadow on the left and top right, and a block very close to the camera is completely dark
cave screenshot, labeled "direct lighting only". there is an abrupt shadow on the left and top right, and a block very close to the camera is completely dark
cave screenshot, labeled "direct lighting only". there is an abrupt shadow on the left and top right, and a block very close to the camera is completely dark
cave screenshot, labeled "combined direct + indirect". there is a noticeable shadow falloff, though not absolute, in the passages connecting left and top right
cave screenshot, labeled "combined direct + indirect". there is a noticeable shadow falloff, though not absolute, in the passages connecting left and top right
cave screenshot, labeled "combined direct + indirect". there is a noticeable shadow falloff, though not absolute, in the passages connecting left and top right
  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.13 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login