Code Monkey home page Code Monkey logo

Comments (1)

hexabits avatar hexabits commented on September 2, 2024

Example of FILL + LINE:

fill line

As you can see, it helps you see the actual space the collision takes up.

Examples of poor CVS display in NifSkope, versus the fix:

comparison
comparisonmemoized

Figure 1 is ~180 vertices, Figure 2 is ~210. However, Fig 1 is made up of 2 shapes of ~105 and ~75 verts. With my brute force algorithm this is much faster than Fig 2, which is 1 shape of ~210.

So, I developed a memoization for each shape so that the convex hull is not being recomputed each draw. There are also small issues with my technique, like coplanar vertices still draw edges between each other. This is because all the triangle combos between these verts are also coplanar, and thus fail a plane test. This is still much better than the original.

At ~210 vertices the program does stall for a few seconds while loading the mesh, as it generates the convex hull. Honestly, no one CVS should be 210 vertices. It's kind of ridiculous, and collision that high-vert should just be redone.

from nifskope.

Related Issues (20)

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.