Difference between revisions of "Korman:VisRegions"

(Created page with "{{Tutorial|VisRegions|Korman}} This tutorial will guide you on how to use VisRegions in your Age. = Introduction = You may notice that a lot of Cyan's Ages are rather large....")
 
m (Using VisRegions)
Line 12: Line 12:
 
If your Age starts to become rather large, then there will be points where you can safely "disappear" parts of the Age that are not in view.
 
If your Age starts to become rather large, then there will be points where you can safely "disappear" parts of the Age that are not in view.
  
For instance, say you've come inside a building from outdoors. while you're in the building, you don't need the engine to render everything outside...so you can use VisRegions to control the appearance of anything in view and out of it.
+
For instance, say you've come inside a building from outdoors. while you're in the building, you don't need the engine to render everything outside...so you can use VisRegions to control the appearance and disappearance of anything in view and out of it.
  
 
These are beneficial as they help greatly with an Age's performance.
 
These are beneficial as they help greatly with an Age's performance.

Revision as of 17:27, 1 September 2020

Disambig gray.png

This is a tutorial page.Versions available: PyPRP; 3ds Max; Korman.
 

This tutorial will guide you on how to use VisRegions in your Age.

Introduction

You may notice that a lot of Cyan's Ages are rather large. If you've ever wondered why the bigger Ages didn't drag down your computer's performance at the time (or now), there is a reason for that: Visibility Regions, or VisRegions for short.

Essentially, these are objects in URU that tell the game engine what is visible and where. They also regulate reflective surfaces in some cases.

Using VisRegions

If your Age starts to become rather large, then there will be points where you can safely "disappear" parts of the Age that are not in view.

For instance, say you've come inside a building from outdoors. while you're in the building, you don't need the engine to render everything outside...so you can use VisRegions to control the appearance and disappearance of anything in view and out of it.

These are beneficial as they help greatly with an Age's performance.

Setting Up

Before setting up VisRegions, we must first create a soft volume region. Once that is done, we can then add the Visibility Control modifier.

KorVisReg01.jpg

  • Mode: This determines the behavior of the VisRegion.
    • Normal: Any object attached to this VisRegion will only appear from within the designated soft volume.
    • Exclude: Any object attached to this VisRegion will only appear when outside the designated soft volume.
    • Special FX: Used for planar dynamic camera maps.
  • Region: If the Control isn't attached to a soft volume, you can use this field to designate which soft volume the VisRegion will reference. If the Control is attached to a soft volume, this field will not appear.
  • Hide Drawables: This will allow the VisRegion to hide the drawables attached to the designated region determined by the Mode above.

Attaching Other Objects

For each object we'd like to connect to a VisRegion, we will need a Visibility Set modifier.

KorVisReg02.jpg

To add a VisRegion, simply press the + button, then in the Control box that appears, choose your VisRegion.

Note that you can add multiple VisRegions and Soft Volumes in this modifier as you'd like.