Comments (4)
Hi, thanks for the suggestions!
I'm not quite sure what you meant by making transparent blocks in a single mesh with an atlas. So far, each chunk is separated into 4 sub-chunks, and each sub-chunk has two meshes, one transparent and one opaque. They're both using the same atlas generated from the backend at textures/atlas.png
. What do you mean by making transparent blocks in a single mesh? Do you mean to group all transparent blocks into one mesh in chunks instead of separating them into subchunks along with opaque meshes?
In terms of frustum culling, I'll definitely put some work on it. I disabled the default frustum culling because chunk's mesh bounds were erroneous and would often disappear from the scene. A 60% reduction in rendering cost definitely sounds fantastic!
from mine.js.
Done:
Here I calculate the sub-mesh's bounding box.
Here I check if it's captured within the frustum.
Thank you for your suggestion!
from mine.js.
I'm not quite sure what you meant by making transparent blocks in a single mesh with an atlas. So far, each chunk is separated into 4 sub-chunks, and each sub-chunk has two meshes, one transparent and one opaque. They're both using the same atlas generated from the backend at
textures/atlas.png
. What do you mean by making transparent blocks in a single mesh? Do you mean to group all transparent blocks into one mesh in chunks instead of separating them into subchunks along with opaque meshes?
If that's the case, I was wrong. I will look more into the performance optimization.
from mine.js.
That would be great! Thank you~
from mine.js.
Related Issues (7)
- Is project will grow again?:) HOT 5
- Online demo HOT 3
- When I execute yarn run init in ubuntu, I get an error, and I don't know how to deal with it. HOT 6
- 'RUST_BACKTRACE' is not recognized as an internal or external command, operable program or batch file. HOT 3
- Can u please make it on web? HOT 1
- Server CPU usage - what is normal? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mine.js.