Code Monkey home page Code Monkey logo

automic-lod's Introduction

Automic-LOD

Automic poly reducer

高模运行时转低模

http://dev.gameres.com/Program/Visual/3D/PolygonReduction.htm 中文

http://dev.gameres.com/Program/Visual/3D/PolygonReduction.pdf english

使用方法

将AutomaticLOD作为componnet添加到gameobject上

把想要减面的mesh拖到meshToGenerate变量中

运行游戏

注意

此工程只是为了理解论文实现,仅适用于学习,还不具备实用性

目前的实现默认位置相同即为同一个顶点

如果存在相同位置有多个顶点的情况(unity默认几何体在边缘存在这种情况),还需特殊处理

automic-lod's People

Contributors

ymiku 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

automic-lod's Issues

ComputeNormal是不是有问题啊

Vector3 p1 = vertex[1].pos-vertex[0].pos;
Vector3 p2 = vertex[1].pos-vertex[0].pos;
normal = Vector3.Cross (p1,p2).normalized;
p2为什么和p1是同一个向量,Vector3 p2 = vertex[2].pos-vertex[0].pos;

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.