Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Eniko Fox
@eniko@mastodon.gamedev.place  路  activity timestamp 2 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 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 2 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