Comments (6)
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:
Aframe Recast plugin:
Recast Demo for desktop:
from aframe-inspector-plugin-recast.
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.
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.
from aframe-inspector-plugin-recast.
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.
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.
from aframe-inspector-plugin-recast.
@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) —
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)
- Plugin script is not found/missing HOT 2
- Plugin panel remains after exiting inspector HOT 2
- Export failing for basic scene in Chrome 71 HOT 7
- CORS error HOT 3
- THREE.Box3: .getBoundingSphere() target is now required
- Failed to fetch error HOT 1
- Expose configuration settings in attribute HOT 1
- wasd-controls conflict HOT 2
- CORS error / FUNCTION_PAYLOAD_TOO_LARGE for mesh > 5MB HOT 10
- A-frame 1.2 version don't support keyboard controlls HOT 1
- Got strange Error (see message ) at export. So build works and shows export fails ? HOT 3
- doesn't works with a-frame 1.2.0 HOT 1
- Cannot export navmesh. HOT 1
- Can't run server on port 3000 locally. HOT 1
- Project is unmaintained
- 404 on the hosted inspector plugin HOT 1
- Building automatically HOT 1
- "Cannot read property 'id' of undefined" error HOT 5
- `inspector-plugin-recast` doesn't work with current A-Frame inspector 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 aframe-inspector-plugin-recast.