Giter Site home page Giter Site logo

Comments (6)

rossbishop avatar rossbishop commented on June 7, 2024

I'm assuming the reason the manual export of mesh from Blender doesn't work is because there's some special sauce baked into the gltf models the aframe plugin includes in the model related to navigation. Without that data, aframe-extras navigation has nothing to follow I'm guessing.

Some images to demonstrate the issues I'm having. Recast for desktop is following the stairstep, but the export format is some binary that I can't just bring into aframe and documentation about how to use Recast is borderline nonexistent.

Source mesh:
image
Aframe Recast plugin:
image
Recast Demo for desktop:
image

from aframe-inspector-plugin-recast.

donmccurdy avatar donmccurdy commented on June 7, 2024

Reducing the cellSize might help here. Details in the mesh smaller than the cell size will not be reflected in the output.

I'm assuming ... there's some special sauce baked into the gltf models the aframe plugin includes in the model related to navigation.

There's nothing particularly special, but the triangles of the mesh do need to share vertices, i.e. to be connected. Disabling the "normals" export option in Blender might help with that. This library does try to do that automatically, too. Otherwise it's just a mesh, ideally with fairly consistent triangle sizes.

If you need more help with this issue you will probably need to share enough information for someone to reproduce the problem, such as the source scene. It's also possible that aframe-extras needs to update to the latest version of three-pathfinding or some other dependencies, see c-frame/aframe-extras#359.

from aframe-inspector-plugin-recast.

rossbishop avatar rossbishop commented on June 7, 2024

I've tried playing with the controls such as cell size and whatnot, what you see above in Recast desktop is using the same settings (those that are exposed to the user anyway). 0.1 for cell size, height etc. essentially the finest granularity the tool offers.

I'm also suffering from the CORS error that's reported in #25 (not a geo size issue, the iteration I'm working with at the moment is 214KB). Just trying to get the tool to build locally to see if that helps matters but running into errors there too.

I'm persistently playing with the geometry to try and improve things but I can provide the iteration I'm trying to use at present.

https://easyupload.io/skfbno

from aframe-inspector-plugin-recast.

Turtleted21 avatar Turtleted21 commented on June 7, 2024

I think navmesh don't work with aframe 1.2, use aframe 1.1
I don't use plugin to create the navmesh, I build it manually in Blender for better optimization. Use glb format, verify normal orientation, player position must start over the polygons. navmesh work for me.

from aframe-inspector-plugin-recast.

rossbishop avatar rossbishop commented on June 7, 2024

Here I tried a very simplified ramp - something looks clearly wrong with this tool. I'm not sure what, but there's no way that should be the result for such a simple model.

image

from aframe-inspector-plugin-recast.

donmccurdy avatar donmccurdy commented on June 7, 2024

@rossbishop output for the model you've provided looks as-expected when dropped into the example A-Frame setup provided by this repository (which, notably, runs the older A-Frame 0.8.2 version) —

Screen Shot 2021-05-17 at 5 14 38 PM

I don't really want to try to guess at different scene configurations and A-Frame versions trying to reproduce the issue; if you can provide a complete demo that reproduces the issue that might be possible to debug.

Your last screenshot has some odd artifacts at the corners but otherwise does not look unusual. A navmesh does not necessarily try to follow the curve of every step. Depending on the options configured, it may generate a ramp that allows a character to walk up the stairs smoothly. For stairs that are very large (as in the screenshot above) the steps will be considered non-traversible.

from aframe-inspector-plugin-recast.

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.