s&
infoAbout S&box
newsS&box Blog
forumS&box Forums
home_repair_serviceS&box Workshop
docsS&box Docs
Terrain Generation Tool
Sturnus
thumb_up_alt
22
thumb_down_alt
1
favorite
4
library_books
0
homeAbout
newspaperNews
reviewsReview
tips_and_updates
bug_reportBug Report
tips_and_updatesFeature Request
brightness_alertReport Abuse
inputLog in with Steam
chevron_leftChange Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
s&box
Sturnus
Terrain Generation Tool
News
Terrain Categories/Shapes + Staging Area + Optimizations
Terrain Categories/Shapes + Staging Area + Optimizations
calendar_today 1/26/2025 people Sturnus chat_bubble 0 visibility 239

Terrain Categories?

By 
Sturnus
One of the ambitious goals I set out to accomplish with this tool was to have plenty of terrain shapes to choose from. Downside, there were too many options and it made it difficult to see (I also don't like drop-down boxes very much.)

So I set out on a journey to use Segmented Controls, but have them dynamically populated on the fly based on what category you were in. The results?
Now, this was a huge task, but it ended up shortening the lines of code by roughly one hundred lines. This effort has also unified the way the terrain shapes are generated, which may be a limiting factor in the future, but for now it works wonders!
3

Staging Area

By 
Sturnus
There was a request to have a flat area in the terrain that was being generated by the tool. Seemed simple enough, so I knocked it out. It's pretty self explanatory... It's a staging area, it can be resized, and placed anywhere in the map, with any height. The staging area will automatically generate a ramp on every side of the staging area that conforms to the max angle for the default character controller.

This makes it so you can place, prefabs, agents, and many more objects in the scene without having to worry about minor terrain adjustments affecting the placement of these objects.

4
arrow_back_ios1arrow_forward_ios
trophy 1080
Oct 2021 58 posts
Sturnus 4 months ago
#1
Terrain Categories/Shapes + Staging Area + Optimizations : sturnus/terraingenerationtool/news/terrain-categoriesshapes-staging-area-optimizations-c82ceff0
arrow_back_ios1arrow_forward_ios
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • About
  • Wiki
  • Commits
  • FAQ
  • Discord
  • Twitter