HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Stitching A Seamless World  (Read 77 times)

nocake

  • General Accounts
  • *
  • Posts: 390
    • View Profile
    • BlightMMO
Stitching A Seamless World
« on: Jun 29, 17, 12:40:44 PM »

https://docs.google.com/document/d/14Mq8t9lDWGXSMC21Fu5_ScC7BeeZXsY8acBFCVPOreA/edit


There is a text dump below in case this google document is ever lost.

This tutorial will teach you to create an "endless" world by stitching areas together in a staggered pattern.

While my approach is from the middle out you can apply the same stitching technique to your world.
 



Text Dump:
______________________________________________________________________




Working With a Seamless World In HeroEngine
by NoCake of Blight MMO

Intro
Area Seamless Link Building
Creating Your Initial Folder Loadout
Prepping Area Before Seamless Link
Stitching Areas
The First Stitches
Stitching Around the Circle
Repeating The Stitching Video


Intro   
http://hewiki.heroengine.com/wiki/Seamless_World_2.0



Area Seamless Link Building   

Lay your map out first. Each block is an Area. For this layout I went with a staggered circle approach with Alpha being their layer name. Our world is going to be built from the center out. A(1),B(6),C(12),D(19),etc.









Creating Your Initial Folder Loadout
In your Area Organizer Panel, Create a folder and name it as you please
Create a subfolder in your new folder and label it “A”
Repeat Step 2 for B,C,D,E etc
Right Click folder A and select “Create New Area”, Name it “A1”
Right Click new Area “A1” and select “Go To Instance”->”Edit Instance”










Prepping Area before Seamless Link

Video:
https://drive.google.com/file/d/0B6A8cyU2VCSzUWctc1haOVRnM2c/view?usp=sharing

Note: Steps 3-7 is out of habit. There is obviously a much better way to achieve obtaining a single height map tile.
Note: You will need to find the correct height map single tile size for your world as well as the position spacing for that height map tile.
IE: 25.4 only works for a single 128x tile. Find the correct position for your tile.

Delete the blank terrain panel
In the Terrain Panel Click Create Grid
Enter 512 in Meters box
Check 128x128 and click ok
Holding Control, click a to uncheck a single terrain map
Press delete to remove the others you have selected so that only the one tile you deselected is left
Select the remaining Terrain Tile and open Properties Panel
Set Position to 0,0,0
Click Heightmap
Press Ctrl+d
Set Position to 25.4,0,0
Click Heightmap
Press Ctrl+d
Set Position to 25.4,0,25.4
Click Heightmap
Press Ctrl+d
Set Position to 0,0,25.4
You should now have a large perfect 4x4 Terrain Panel

Note: I find doing this route a 100% surefire way for me. I am sure I will be updating this to make it faster.

Stitching Areas

 The First Stitches
   I have already completed this in my world. Will need filling.







Stitching Around the Circle
Follow steps precisely! Can lead to a headache of areas being incorrectly offset from each other. Nightmare to fix.

NOTE: NEVER EDIT OUTER LAYER HEIGHTMAP OR PLACE OBJECTS!!
IE: In the image below, you would never edit anything in the D layer until you built the E layer. This helps later when stitching.

NOTE: !!! Make sure all the areas added correctly by looking at them !!! The new areas should be perfectly stitched together separate from your newly created heightmap.



After finishing “Prepping Area before Seamless Link” open the Area Panel
Add the corresponding rooms to the area starting with the last one created and working from there.

Example: Stitching area D19, First add  D18(last created) -> C12 -> C1 -> D1

Click Edit Offset
Select a height map of one of the areas that has been added.
Move them to align with the new Heightmap, Do not move the newly created Heightmap. (Pink = Good, Yellow = Bad! )
NOTE: Make sure when moving the heightmap ALL parts of the heightmap move. if they don’t, toggle Edit Offset Off then On again.
Once the Heightmap is perfectly aligned click Edit Offset again to turn it off.
Select the Terrain panel
Load Scheme
Paint Area name onto heightmap for visual reference




Repeating The Stitching Video
Here is a video showing the repetition of seamless area building