Jump to content

How to visualize cube nodes in the map


Recommended Posts

Hello everyone, 

I'm working on a doom clone which you can try out here


I want to create a 3D level grid so that I can visualize my A* path finding algorithm and also use my in game editor to snap cubes to certain points on the map.

I tried to make a visualization using a mesh but with many meshes, performance obviously becomes too slow.

How can I create a 3D reference grid in my scene yet avoid the performance hit? Thank you so much for your help. I have an image to show how the grid should behave and look like. 

Screen Shot 2017-11-07 at 9.25.08 AM.png

Link to comment
Share on other sites

Hello, yes I did. From what I understand the grid material is just a material that covers a mesh right?
I still would need a reference to each mesh in order to check collisions on whether or not another mesh had intersected it. 
I also need to have references to each mesh's position in order to move my units in a certain direction. 

To show you what i mean, I've updated my application on

Now there will be a grid which is just many 1x1 wireframe meshes put together. You can see that as the monster's hitbox collides, the mesh turns red.
This game uses the UniversalCamera controls (WASD).

Click the left mouse button to fall down to move around.

Sorry if I wasn't too clear and thanks for helping! Let me know if you prefer a PG example.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...