banner
[面包]MrTwoC

[面包]MrTwoC

你好,欢迎来到这个基于区块链的个人博客 名字:面包 / MrTwoc 爱好:跑步(5/10KM)、咖啡、游戏(MMORPG、FPS、Minecraft、Warframe) 兴趣方向:Rust、区块链、网络安全、量子信息(量子计算)、游戏设计与开发
bilibili
steam
email
github

[Spiritual Realm Project] Record of a Bug Fix

2025.1.24:

Currently, only the visible faces are rendered, and the faces blocked by blocks are skipped in rendering.

The code condition was written incorrectly the first time; it checks if the front face is in contact with air, then adds a back face.

image

This resulted in this appearance.

image

After fixing it, it looks more normal.

image

However, there is still a problem that I don't know how to handle. After I used chunks to piece together the meshes, it looks like this from below. I don't know how the edges of each mesh were culled on these four sides:

image

Currently, I plan to investigate whether the culling logic needs to be modified.

Also, if the Y-axis height for generating natural terrain is set too high, there will be some strange gaps, such as the various holes in the image below: Y = 320.

This situation becomes more pronounced as the Y-axis height increases; if set to 20480, only strips of blocks remain, and the terrain is no longer visible.

image

After fixing it, I can try applying the grass block texture to see what my world looks like with only grass blocks.

Additionally, I need to implement destruction and placement functions, and after all of the above are achieved, I plan to add multiplayer functionality.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.