Hello there. Me and my friend are currently working on a roblox game about ships. I am inspired by games such as Dynamic ship simulator 3 and destroy the ship. The problem is that i am trying to make a navigation system. The problem with it is that i cant find a way to make an effective map system. I tried many ways on how it could work:
First time i tried was using the Viewport frame. I mean i WILL need it if i wanna make a minimap. The idea is to take the map folder clone it and put it inside the World Model which is inside the Viewport frame. However the problem came to the complexity of the map. The map is so large it has 90k parts and overall performance is reduced significantly. Here take a look
What you are seeing here is my performance getting FRIED after i spawn my ship and the minimap loads and i experience a lag that lasts about few seconds
After the minimap loads the lag is gone but not fully
And when i leave the ship which hides the minimap the fps counter normalizes
Second what i am currently trying is using like a pre screenshot of the entire map and finding a way to sync the player’s position and only show a slice of the screenshot.
If anyone has an idea of how this could have been done without obliterating my performance it would be amazing!
How big is the map and how much detail does the player need to see?
Games like minecraft take some big chunks and important features on the map to place onto the minimap. They forget the fine details but the player doesn’t need to see them
It has buildings, seabed ect. The terrain is with triangles and the map is like HUGE. I am questioning how dynamic ship simulator managed to make the map be an image. Seriously.
One method for creating a map is to use an image as its base layer. This base layer shows the general terrain or otherwise non-dynamic features of the world and is usually prebaked (although sometimes can be dynamically generated/updated at runtime). I’m guessing Dynamic Ship Simulator 3 is using a technique like this.
Create the 2D map first, then generate the 3D map.
Create the 3D map first, then generate the 2D map.
If you start with the 2D map first, you can create the asset in some paint-like program (or even a dedicated map generator), upload it to Roblox as an image, then build the 3D map using the 2D map as a guideline (imagine making a temporary baseplate part with a Decal so you can see where features of the 2D map line up in the 3D world).
If you start with the 3D map first, you’ll have to generate some intermediate representation of the 3D map data so that a program or plugin can generate the 2D image matching it. I’ve never done this myself, so I’m not sure if there’s plugins already out there. RoRender seems like it might be worth looking into.
Another tactic you could use is creating another camera and setting it like 500 studs above the player and that could be your mini-map too! If you are interested or have any questions let me know.