Coder Social home page Coder Social logo

Comments (2)

ppiastucki avatar ppiastucki commented on May 16, 2024

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.

mitm001 avatar mitm001 commented on May 16, 2024

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)

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.