Git Product home page Git Product logo

brickcraft's People

Contributors

fgsoftware1 avatar stone-sjh avatar tetreum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

brickcraft's Issues

FIX BUG: `Terrain mesh is randomly broken because of brick's top face`

PR: #2

In the WorldGenerationTest.unity scene, you're generating some huge mesh without setting Mesh.indexFormat to UInt32(the default value is UInt16), which causing meshes with vertex count > 65535 fail to render normally.
Unity doc here: https://docs.unity3d.com/ScriptReference/Mesh-indexFormat.html

However, using UInt32 indices format instead of UInt16 will probably drop performance and need more memory (for example, X-5 Z-3 ChunkSlice#4, which has 101920 verts and 221400 triangles, cost around 6.5MB for indices using UInt32 or around 1.5MB using UInt16). So a better solution might be split your huge meshes into sub-meshes(verts < 65535) and still using UInt16, if you have time, you can have a try about this :)

License ?

Hello, under what license is this project released under ? I would like to study it to learn from it. Things like making my own building system in Unity. It seems like a great learning resource. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.