Comments (2)
TileCacheMeshProcess is just an interface, you can pass whatever implementation you like. It may set flags and areas to whatever you want. There is no need to pass flags and areas as separate arguments as they are already available as fields in NavMeshDataCreateParams class, even in C++:
See: https://github.com/recastnavigation/recastnavigation/blob/05b2b8da80037887d3e79af8a59a8f0f8ed02602/DetourTileCache/Source/DetourTileCache.cpp#L735
NavMesh::addTile is a totally different method than TileCache::addTile.TileCache holds precomputed heightfields and to turn them into nav mesh tiles TileCache::buildNavMeshTile is invoked, see https://github.com/ppiastucki/recast4j/blob/d7c652d82e58f4fa768c395efeb13a0877cd0704/detourtilecache/src/main/java/org/recast4j/detour/tilecache/TileCache.java#L480.
I hope the info is helpful.
from recast4j.
as they are already available as fields in NavMeshDataCreateParams
Yes, Area types are set when buildSolidHeightfield is called from TileLayerBuilders getHeightfieldSet.
I had to make some changes to those since my navmesh has multiple area types and your current implementation expects a single mesh with a single area modification. I changed them to accept triangle lengths paired with an area modification so I can mark triangles in buildSolidHeightfield.
This was something Mikko said he intended to do eventually but then he lost interest in his project before implementing it.
I am almost done implementing the offmesh connections for tile cache. This is a little more difficult to do since I call TestTileLayerBuilder.java#L64 to build the mesh rather than the AbstractTileLayersBuilder build.
from recast4j.
Related Issues (20)
- The difference between tilecache and dynamicnavmesh HOT 1
- Why did I get a NoSuchMethodError? HOT 2
- Build Tiling NavMesh with Off Mesh Link throw error
- Tilecache add obstacle error HOT 2
- Tilecache add obstacle error HOT 4
- DynamicNavMesh TileCache.removeObstacle() is protect HOT 3
- Error when running on ubuntu HOT 2
- Can you please make the DetourCommon methods all public? HOT 2
- DetourCommon.vLerp(DetourCommon.java:56) java.lang.NullPointerException HOT 1
- TileCacheBuilder.canRemoveVertex ArrayIndexOutOfBoundsException HOT 2
- Simplifications and potential bug HOT 1
- Metric of path list got from navquery.getPath function
- java.io.ioexception invalid magic HOT 2
- Multithreading use tilecache HOT 1
- About “rcBuildPolyMesh: Too many vertices ” limit is 0xfffe
- Bug/Useless code for cylinder collision HOT 1
- Please add encoding utf-8 to javadoc as well. Or it won't compile for Chinese system.
- Typo in the method name PolygonByCircleConstraint.aply() HOT 1
- Can you help me understand why there is a discrepancy in SPAN_HEIGHT_BITS and SPAN_MAX_HEIGHT values between `recastnavigation` and `recast4j`? HOT 2
- Update AtarPathfindingProject 5.0.9. Import error 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 recast4j.