Making the PERFECT(LY ALIGNED) skybox.

Making the PERFECT(LY ALIGNED) skybox.

Hey kids :welcometoreleases:

This guide is all about making some skyboxes, including how to make your skyboxes look ultra epic.

Before I begin tho, I'm gonna assume you already know how to use Zone Builder.
Wait? You don't? Then what are you waiting for, start learning already for crying out loud!

Anyways, time to get started.


STATIC SKYBOXES

This is a pretty basic type of skybox. Easy to set up too!

The first thing you do is make a little area outside of the main stage
image_2021-03-15_011539.png


Decorate it up a bit, and place a Skybox View Point (Thing Type 780) within said area.
1615796489886.png


And bam! It's as simple as that.
1615796560224.png


By default, the skybox will move vertically with the player, but not horizontally.
You can control the speed that the skybox follows the player by specifying
Sonic Object Configuration (SOC):
SkyboxScale = XX
in your MAINCFG. With XX being a number.

Said number is pretty much how big the game thinks the skybox is, with 16 being the default value, and 0 being the value which the skybox stays completely still.

The SkyboxScale can also have negative values, although, I'm not sure you want that. :worry:

But, if you want your skybox to move horizontally as if it were an extension of the level itself (kinda like CEZ2), well, uh, buckle in, this shit boutta get wild. :threat:


DYNAMIC SKYBOXES

Now, before you do anything with your map, set your SkyboxScale first! We're gonna use "8" for this example.

We start by selecting the entire stage, and clicking "Edit Selection Mode"
1615797750168.png


Next, we go to Linedefs Mode, and press [SHIFT + 1] to have Zone Builder select the boundaries of the stage instead of the entire thing, after that we're gonna use Things mode to deselect any and all things that might get in the way.
1615797908970.png

1615797928507.png


Now, head back into Edit Selection Mode, and do a copy and paste. We should now have a simplified duplicate of our stage.
1615798005893.png

Let's scale it down. :knuxsmug:

In order to do this, we hover our mouse over to the right side of Zone Builder to the "Edit Selection" tab
1615798100594.png

Within this tab, we're only gonna care about the Scale value.
1615798208835.png


okay time for math :welcometoreleases:

Our SkyboxScale is 8, sooooooooooo
We gotta divide the absolute size by 8
aaaaaaaaaand

Code:
2304 / 8 == 288

Changes won't take effect until you click away from them for some reason.

Now our skybox area is smol, and we need to put a Skybox View Point at it's exact center.
1615798590543.png


Now, Edit Selection Mode has put our little area in a box.
Now, in order for this to work, we have to place a Skybox View Point at the exact center of the skybox.
In order to do that, let's go back into Edit Selection Mode, and do this:
1615800700352.png


We gonna squish half of it, zoom in ALLLLLLLL the way on the top middle point with "Dynamic Grid Size turned on.
1615800887537.png


Once we zoomed ALL the way in, we place a vertex there using Vertices Mode, write down its x and y position and undo the squish.
1615801010901.png

1615801045905.png


Those coordinates are where we are going to place the skybox view point.
Place said view point down at those coordinates, and WAIT, you're not done, now we have to do the same, but with the in game level.

Repeat all of the above for the in game level (make sure you don't select the skybox area as well as the game does not care about that atm), and this time, check the "In-map Reference Point" special.
1615801372465.png


Now, start decorating the skybox area and make it pretty and shit.

If everything you did goes well. Then:
srb20240.gif

holy shit its as if im ACTUALLLY in the game :wow:
You may still need to tinker around and adjust some things, but for the most part, everything should look good!


Before I end this guide, just know that skyboxes tend to be poorly optimized (especially in kart!), so if you can find ways to improve performance (i.e. single-sided linedefs, removing superfluous sectors, reducing fof spam, removing translucency, no large sectors, etc, etc,), then you better do uhhhhhhhhh that.

Also, some bugs can happen with skyboxes like these, especially with thok barriers, so check out Krabs' video on this stuff, as he goes into detail about how do deal with these type of bugs.
  • image_2021-03-15_010801.png
    image_2021-03-15_010801.png
    317.4 KB · Views: 345
  • 1615798441508.png
    1615798441508.png
    4.7 KB · Views: 784
  • 1615798835715.png
    1615798835715.png
    46.1 KB · Views: 234
  • 1615799299985.png
    1615799299985.png
    4.6 KB · Views: 211
  • 1615799472152.png
    1615799472152.png
    5 KB · Views: 203
  • 1615799538020.png
    1615799538020.png
    22.2 KB · Views: 198
  • 1615799600072.png
    1615799600072.png
    4.5 KB · Views: 192
  • 1615799703530.png
    1615799703530.png
    20.6 KB · Views: 196
  • 1615799744930.png
    1615799744930.png
    7.7 KB · Views: 311
  • Cool!
Reactions: LegoLoco7
Author
Twins'R'Okay
Views
4,549
First release
Last update
Rating
4.50 star(s) 2 ratings

More resources from Twins'R'Okay

Share this resource

Latest reviews

Cool
Perfect for my SRB2 BETA ADVENTURES GFZ1 BROKEN SKYBOX LOL
Upvote 0
Welcome to releases!
Upvote 0
Back
Top