Page 1 of 1

Object placement randomization

Posted: 03 Apr 2020, 14:06
by Goku
TSRE 0.698 introduces huge changes to object placement and REF files.

Now more than one Filename can be defined.
To use more than one Filename, one SelectionMethod also must be defined.
There are two methods available now:
RandomSelection and SequentialSelection

Objects may be also randomly transformed. This feature can help making realistic vegetation and other features much easier.
Available transformations:
- Rotation - angle range in degrees
RandomRotY ( -180 180 )
Also available RandomRotX and RandomRotZ
- Translation - range in meters
RandomTranslationY ( -0.5 0.5 )
Also available RandomTranslationX and RandomTranslationZ

Example of a new REF definition:

Code: Select all

Static (
    Class           ( "Animated People" )
    Filename        ( DPF1A.s )                        
    Filename        ( DPF2A.s )                        
    Filename        ( DPF3A.s )                        
    Filename        ( DPF4A.s )                        
    Filename        ( DPF5A.s )                        
    Filename        ( DPF6A.s )                        
    Filename        ( DPF7A.s )                        
    Filename        ( DPM1A.s )                        
    Filename        ( DPM2A.s )                        
    Filename        ( DPM3A.s )                        
    Filename        ( DPM4A.s )                        
    Filename        ( DPM5A.s )                        
    Filename        ( DPM6A.s )                        
    Align           ( None )
    SelectionMethod ( RandomSelection )
    RandomRotY ( -180 180 )
    RandomTranslationY ( -0.5 0.5 )
    Description     ( "Random People" )
)
And result in action:

Image


For existing objects, you can select them, and use "Random Transformation" botton:

Image

And result:

Image

Re: Object placement randomization

Posted: 04 Apr 2020, 10:19
by xavivilla
Interesting these four tools that it presents to us for the future version 0.698. Already wanting to try them.

Thanks for your continuous work Goku