Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lumber, to random

It's been a minute since I've posted, so here's what you've missed...

lumber,

Then I took a week off of work to focus on the editor. I hate UI work and the only way to get past it was to just get in done. The key to getting it done was someone on the discord directing me to a discussion on the github about implementing egui widgets as SystemParams: https://github.com/bevyengine/bevy/discussions/5522

It's a little out-of-date now, but I have a gist for it implemented for bevy 0.10:
https://gist.github.com/dmlary/a40e29de0e9ec78950bb5f352115710a

With this I was able to clean up the UI code and add the functionality I needed.

Showing 3d hex-based map editor. Map is rotated, a mountain tile is placed, cursor moves to the palette and selects a water tile. Places water on map. Then map is moved. Assets from kenney.nl

lumber,

As of today I now have an infinite hex grid shader in #bevy , with the current cursor position highlighting. Sharing source code because it's always helpful to have an example: https://github.com/dmlary/bevy-hex-grid

Hex-grid outline projected on an xz plane. Camera rotates around. Hex outline at the cursor is highlighted in yellow.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • InstantRegret
  • everett
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • khanakhh
  • Durango
  • mdbf
  • JUstTest
  • ethstaker
  • anitta
  • modclub
  • osvaldo12
  • normalnudes
  • ngwrru68w68
  • GTA5RPClips
  • tacticalgear
  • provamag3
  • tester
  • Leos
  • cubers
  • lostlight
  • All magazines