banner
[面包]MrTwoC

[面包]MrTwoC

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

[Spirit Realm Project] Record of a Bug Fix

2025.1.24:

Currently, the effect of rendering only visible faces has been achieved, and the faces blocked by cubes 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 led to 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 limit for natural terrain generation height 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 increases; if set to 20480, only strips of cubes 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 plan to add multiplayer functionality after all of the above are achieved.

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