Copying TerrainInfo + Multi Skyboxes

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

RoBoT

FNG / Fresh Meat
Mar 21, 2009
1,155
156
0
34
Syria
hello everyone,

- I was wondering is it possible to copy terrain and paste to make another one looks the same?

- And if there is tutorial how to make multi skyboxes in 1 map would be nice.
 

PiX

FNG / Fresh Meat
Mar 20, 2009
306
69
0
Sweden
Always check Unreal wiki first, Robot: [URL]http://wiki.beyondunreal.com/Legacy:MultiSkyBox :)[/URL]

Code:
[I][COLOR=lime]//=============================================================================[/COLOR][/I]
[I][COLOR=lime]// MultiSkyboxZoneInfo.[/COLOR][/I]
[I][COLOR=lime]// Input the tag of the skybox you want the fake backdrop surfaces of the zone to display[/COLOR][/I]
[I][COLOR=lime]//[/COLOR][/I]
[I][COLOR=lime]// (c) Zxanphorian 2002[/COLOR][/I]
[I][COLOR=lime]// tornado.f5@worldnet.att.net[/COLOR][/I]
[I][COLOR=lime]//=============================================================================[/COLOR][/I]
[COLOR=#009090]class[/COLOR] MultiSkyboxZoneInfo [COLOR=#009090]extends[/COLOR] ZoneInfo
    [COLOR=#009090]placeable[/COLOR][B][COLOR=#008000];[/COLOR][/B]
[COLOR=#009090]var[/COLOR]() [COLOR=#ff0000]name[/COLOR] SkyZoneTag[B][COLOR=#008000];[/COLOR][/B]
[COLOR=#009090]simulated[/COLOR] [COLOR=#009090]function[/COLOR] LinkToSkybox()
{
    [COLOR=#009090]local[/COLOR] SkyZoneInfo Skybox[B][COLOR=#008000];[/COLOR][/B]
    [COLOR=#009090]Super[/COLOR][B][COLOR=#008000].[/COLOR][/B][COLOR=#0000ff]LinkToSkybox[/COLOR]()[B][COLOR=#008000];[/COLOR][/B]
    [COLOR=#0600ff]foreach[/COLOR] AllActors( [COLOR=#009090]class[/COLOR] [COLOR=#808080]'SkyZoneInfo'[/COLOR][B][COLOR=#008000],[/COLOR][/B] Skybox[B][COLOR=#008000],[/COLOR][/B] SkyZoneTag )
    {
        SkyZone [B][COLOR=#008000]=[/COLOR][/B] Skybox[B][COLOR=#008000];[/COLOR][/B]
    }
}

I haven't tested the code, but I guess it should work?
 

slavek

Grizzled Veteran
May 4, 2006
3,074
943
113
UnrealEd: Viewport #1
Multiple Skies:http://www.angelmapper.com/gamedev/tutorials/multipleskies.htm


As for terrain, you will need to reset all of the height maps and layers for the terrain. Not too hard but can be tedious(Just copy and pasting texture names) You will have to edit the terrain's actor properties(Right clicking on the terrain icon in map)

1.Start by copying the terrain, paste it into new map. Add Zone info and set it for terrain.
2.Import greyscale heightmaps/layers if not already loaded into editor(You can use existing mylevel if you don't want to export/import[import mostly for converting maps from other games])
3.Add the heightmap back into the terrain's default properties.
4.Add all of the layers(Greyscale not the real texture) back to the correct lines.
5.Add real textures into the correct lines and set any alignment/texture scale options.
6.Save often. ;)
 
Last edited:
  • Like
Reactions: braindead

RoBoT

FNG / Fresh Meat
Mar 21, 2009
1,155
156
0
34
Syria
thx guys, right now im trying to do with multipleskies but it doesnt work right, the sky shows from zoneinfo point not from skyzoneinfo o_O