This programmatic cave modeling tool can greatly improve the efficiency of your cave modeling, and the non-destructive workflow allows you to quickly modify your cave model, which you will definitely need if your project involves cave levels.
Matters of use:
1, Need to open "Geometry Script" plugin, and then import this asset file into your project!
2, during the construction process, please do not use Ctrl+Z undo function, it may cause a flash back. (Most 3D software build plugins have the same problem.)
3. To carve caves, open the plugin "Modeling Tools Editor Mode".
Video:https://youtu.be/3alBk9xC0os
Video(chinese):https://www.bilibili.com/video/BV1jiH4eSEEa/
What is PMB-Cave Generator
Cave Generator is a set of blueprint system that allows you to quickly generate caves, it contains arbitrarily adjustable spline cave passages, adjustable shape size and connect multiple passages CaveRoom, cave modeling etc BP. Simply place your CaveRoom in the desired position and adjust the shape, select multiple CaveRooms and click the Generate button to automatically generate CavePassage and adsorb it. Along the way you can visually adjust the position and shape of your CaveRoom and CavePassage to build and adjust your level ideas. Then click the Create button to instantly create a complete cave model.
Why use Cave Generator:
1, high efficiency and controllability: carefully designed workflow, so that the cave network model that used to take days to make, now only takes a few hours to complete the creation, and the modification and adjustment is also very fast.
2, non-destructive workflow: during the construction process you can repeatedly adjust your cave design scheme, and then generate a one-click model that allows the character to run on it, which is powerful for level design, especially in the case of multiple people. You can imagine how much time it would take for a modeler to build a large network of caves and then receive requests to add or subtract CaveRoom locations and move CaveRoom locations.
3 the final formation of a cave wall with only one face: During the synthesis of the cave, as long as the adsorption positions are checked correctly, the final generated static mesh cave has only one face, and the vertices at the link of CaveRoom and CavePassage will be automatically welded and perfectly fused. This means that you can use the functions in the engine to sculpt the resulting static mesh body, add or subtract surfaces, and sculpt various shapes without breaking surfaces.
Workflow of using cave generator:
1, Create CaveRoom: Drag CaveRoomBP into the "Cave Synthesizer BP" range of the scene, adjust the shape and position, for example, initial hall CaveRoom, dungeon CaveRoom, BossCaveRoom.
2. Create and connect CavePassage: Select the CaveRoom to be connected and click the link button to generate CavePassage. CavePassage can adjust the shape through splines or optimize the shape through sampler.
3, Check the connection: Check whether the link between CavePassage and CaveRoom is successful, either by observing whether the indicating arrow on CavePassage is green, or by using the "Go to Adsorption surface Position" of the "Cave Builder Assistant" editor tool.
4, synthetic cave: after the successful inspection, click the "cave synthesizer BP" to generate the cave button, you can synthesize a complete cave dynamic grid model, at this time you can run the map above for level testing, check whether there is a broken surface, and then adjust CaveRoomBP and CavePassageBP. The static mesh body can then be derived.
5. Optimize the cave model: Drag the static mesh body into the scene, use the modeling tool of the engine to carve the optimized model shape.
6, use CavePassage spline data (optional) : The cave synthesizer BP has already collected all CavePassage spline data during the synthesis process. If your scene needs to create CavePassage data such as rail, you can create a subBP of the cave level BP and then set the main cave static mesh parameters to the previously generated cave mesh. The relevant data collected by the "cave synthesizer BP" in the scene is then copied to obtain all CavePassage spline data in the cave level subBP. Then use the "Level Spline Tool BP" "Copy Add Level Spline point" function to create a link to CavePassage spline BP, you can create for example a track spline mesh
Adsorption function: CavePassage can be automatically adsorbed on the CaveRoom. This can be checked by observing the indicating arrow or by using the "Go to Adsorption Surface error" in the editor tool "Cave Builder Assistant".
Hole function: Additional protrusions can be created on either side of the CavePassage, and you can adjust the position to protrude this out of the terrain to match the terrain.
Skip adsorption point function: Click skip adsorption button, you can quickly switch the hole to other default adsorption points near the set CaveRoomBP.
CaveInteriorTool introduction: CaveInteriorTool is the BP that adds the main shape to the inside of the cave, which can have two forms, one is the road form and the other is the lofting form. The road shape can be generated along the main path, and the lofting is based on the closed platform spline shape, and the longitudinal lofting shape according to the cross-section spline, and the lofting can generate a special-shaped platform, stone columns in the cave, etc.
Volume scattering tool BP: This is a BP that can quickly adsorb a static grid on the top and bottom of the BOX, up or down, similar to the principle of PCG, with a spline that can mask the placement.
Cave Synthesizer: The Cave Synthesizer is a tool for combining CaveRoom, CavePassage, and CaveInteriorTool, combining them into a complete dynamic mesh, and exporting a static mesh for sculpting and editing using modeling modes. The biggest advantage of the combined cave system is that the entire cave wall has only one face, and the vertices are connected. In this way, the cave can be reconstructed and wired and the shape of the cave wall can be carved.
Cave level tool BP: The Cave level tool is used to store the generated cave static mesh tool, which can automatically generate CavePassage splines.
Cave level spline tool BP: This tool is used for lofting or placing items along the spline, such as lofting tracks, roads, and placing tunnel lights.
And more...
Number of Blueprints: 10
Input: Gamepad, Keyboard, Mouse
Network Replicated: Yes
Supported Development Platforms:
Windows: Yes
Mac: Yes
Documentation:DOC
Important/Additional Notes:
1, Need to open "Geometry Script" plugin, and then import this asset file into your project!
2, during the construction process, please do not use Ctrl+Z undo function, it may cause a flash back. (Most 3D software build plugins have the same problem.)
3. To carve caves, open the plugin "Modeling Tools Editor Mode".