GentenStudios / Phoenix-OLD

Phoenix is an open world sandbox style voxel game designed to make all content optional.
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

Blocks don't render in newly created chunks. #296

Closed tobyplowy closed 3 years ago

tobyplowy commented 4 years ago

Describe the bug

(Check video below for visuals of the issue) In the current state of develop (Anything past https://github.com/GentenStudios/Phoenix/commit/9b7fc9f34288e4a623a4942433b674e5db171ca6 may not be applicable) There's this issue where placed blocks in newly generated air chunks seem to not render tho they are there physically (You can highlight them but there's no visual block reference video time 0:53) If you build something and then restart the game the block that were invisible previously are now rendered and the chunks that these blocks reside in can now also be changed without the ghost block issue (Reference video time 1:36 to 2:31). Tho other new chunks still remain broken.

To Reproduce

Steps to reproduce the behavior:

  1. Start a fresh save (May work on existing saves too but I used a fresh one from a fresh build)
  2. move to a freshly generated air chunk
  3. place a block.
  4. tada yay done.
  5. reload game and see that the previously invisible block is now not invisible you can now properly edit that chunk.
  6. move to another unedited air chunk and it will have the same issue.

Additional context

It has something to do with chunk borders and meshing. (As can be seen in the video at 1:09 to 1:18) And here's the ref video. https://youtu.be/LCcssFVt4NU

tobyplowy commented 4 years ago

@beeperdeeper089 Is it just me or did this just get resolved somehow??? (Been a while since I have seen this bug happen)