[SOLVED] How to access the meshes map ?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

[SOLVED] How to access the meshes map ?

Post by metalseb »

Hi there

Again with my problem about getting a 2d top-down map view of a 3d mesh.

I built a small test map mesh with 4 same walls, a tower at the center of the room,a roof and a floor. So I have 4 mesh buffers in the map mesh. getMeshBufferCout returns 4 as intended.

Well, I can get all the meshbuffer data with their own bounding boxes but there is apparently no way to retrieve the meshbuffer position in the map. I explain : X,Y and Z position of each buffer in the mesh. A wall at the north, at the south, ....., the tower is here, etc....

Is there any way to get this ?

Regards
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Post by metalseb »

Sorry for that post folks, I understand now how it works. If several identical meshes are connected together, side by side, getting bouding boxes from meshbuffer will return the bounding box of the resulting meshes assembly.

4 walls, 4 times the same mesh connected to make a square room results in one meshbuffer, with one bouding box.

Once understood, I can go further now. At least, I hope so ! :roll:
Post Reply