Physics mesh for terrain


#1

Hello All

I have had a test of the platform and looks ready good, however I need to have an “outdoor” environment, so will need terrain, as a height map, or even a 3d mesh.

I have done searches on the forum and google, but nothing , seems strange that the platform has support for so many things and no 3d mesh, for a “ground”.

I must be missing something if anyone and point me in the right direction Would be very helpful thank you .


#2

Xenko doesn’t really provide to many assets out the box as far as terrain mesh one would have to be created in a 3D editor if not scripted depending on how your going about creating your environment.


#3

Hello M0TH thanks for your reply ,

I can create a terrain model in a 3d editor, I guess the question then is how to apply physics to it, can’t really use a convex hull, due to the “shape” of the model and I can’t see a mesh option for in the physics, only the primitives and convex hull.

I understand Xenko uses Bullet , are we able to use btBvhTriangleMeshShape and access our model to pass the Bullet Physics, or is this disabled ?

Thanks All


#4

If it’s not there, it would be a nice open source contribution. Do you have c# coding skills to add it to the engine?


#5

Thank Tonfilm, for your reply.

I do have some c# skills, but they would be insufficient to correctly implement, something in to the engine, and ensure that implementation is done correctly and optimized correctly.

When I have some more spare time, I may be able to revisit import of a model and create a static TriangleMeshShape as a “ground”.

Not looking for a full blown Terrain system like Unity, just a mesh ground.

Thanks Again.


#6

Here is where I am at with this project (special stage) pretty much my overall goal is to make it to where current blocks are highlighted as a different color set (character walks into the color set) then enemies spawn.

After enemies are defeated character has 5 seconds to leave the color set before a color set is deleted and so forth.

Also removing any height terrains (ideally Ill be able to mix and match to spawn at different height levels.

What I want to do also is get the blocks to generate on a predefined track using some type of drawn image to project. ex: jpg doc will have a line draw on it so the game will project only that line with voxels.


#7

Hi, M0TH

Looks like fun idea and well done with your work so, far.

Looking to do a more natural / real life terrain for a sim outdoors.

Hopefully will be able to review the height map , Mesh options, late next week.

Thanks Astro


#8

Cool beans can’t wait to check it out.