Comments (3)
wip branch trying the second approach here: https://github.com/isaac-mason/recast-navigation-js/tree/feat/specify-recast-impl
Right now the the wasm
flavor (separate wasm file, not inlined like wasm-compat
) doesn't work on node.
The emscripten build parameter ENVIRONMENT
needs to be updated to include 'node' so there is node friendly logic for reading the wasm. However, these node code paths cause issues with some bundlers (at least webpack 5) due to the unrecognised node builtins. These warnings/errors can be surpressed and the build output will still work, but this is likely to cause confusion. Some bundlers such as vite don't have the issue.
Some options:
- (short term) Accept and document that the
wasm
flavor doesn't work on node, and thatwasm-compat
should be used - Have a web + node
wasm
flavor, document the webpack 5 issue as a known issue - Have separate web and node wasm builds.
- This isn't ideal, we'd need to have 4 builds (
wasm-node
,wasm-web
,wasm-compat-node
,wasm-compat-web
) , and it may not be straightforward/possible to configure a package.json so the correct one is used automatically
- This isn't ideal, we'd need to have 4 builds (
from recast-navigation-js.
from recast-navigation-js.
Starting with the short term option mentioned above
(short term) Accept and document that the wasm flavor doesn't work on node, and that wasm-compat should be used
from recast-navigation-js.
Related Issues (20)
- Create examples that don't use react
- What would cause the path to be empty? HOT 5
- Cannot read properties of undefined (reading 'RecastBuildContextImpl') HOT 4
- Add options to high level generators for excluding areas from the navmesh
- Investigate performance opportunities for copying data into Array wrappers HOT 2
- Obstacle queue not processing batches of updates HOT 11
- Fix generateTileCache / threeToTileCache typescript types to omit unsupported RecastConfig options HOT 3
- Expose decodePolyId and encodePolyId HOT 3
- Release 1.0.0
- Exporting with tileCache seems to be working but causes an error when importing HOT 3
- Allow setting the maxStraightPathPolys parameter in computePath HOT 2
- Expose NavMeshQuery `findPolysAroundShape`
- Expose NavMeshQuery `findPath` and `findStraightPath` HOT 1
- Expose NavMeshQuery `findRandomPoint` HOT 1
- Give some control over NavMeshQuery random implementation HOT 1
- Crowd and CrowdAgent improvements
- Add Crowd methods for fixed steps, fixed time stepping with interpolation HOT 2
- Improve performance of DebugDrawer
- Add an example demonstrating how to generate a navmesh in a web worker HOT 1
- Consider removing cjs build HOT 2
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 recast-navigation-js.