Object placement randomization

Forum for discussion about TSRE features.
Post Reply
User avatar
Goku
Site Admin
Posts: 364
Joined: 15 Jan 2019, 18:10
Location: Poland
Contact:
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

xavivilla
Posts: 28
Joined: 16 Jan 2019, 19:14
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
I apologize for my English of translator

Post Reply