1. #1
    LynxNinjaTrials's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    OGLE-2005-BLG-390Lb
    Posts
    1,177

    switching the track from day to night in-game? [SOLVED]

    hey, guys!

    i'd like to know if i can turn the daytime from day to night while playing the track.? (by an area trigger or similar)
    or how i can turn the enviroment from bright to dark somehow?? i know there is a tool for it, but the track is 200meters long and i'm afraid that size will cause lag

    thx in advance
    Share this post

  2. #2

    Re: switching the track from day to night in-game?

    Hi Lynx! Have you tried using the distance operator? If not, you can have an area condition follow the rider globaly. Then you can use datasources thru out the track to trigger the settings you want. Hope this makes some sense cause im toasted at the moment!
    Share this post

  3. #3

    Re: switching the track from day to night in-game?

    you can use the tool with any object and it doesn't need to be in the physics bubble
    after that you can use some datasources to make it gradually dark(changing fade for example) or so in any way you want
    Share this post

  4. #4

    Re: switching the track from day to night in-game?

    Here's an old topic on how to do this:

    http://forums.ubi.com/showthread.php...nment-settings

    Using the Rider position divided by the total driving length as a percentage would probably work best, it will then change from day to night as you progress through the level.

    I'd assume the easiest way to do this is to simply use the above value to move a random object (like mentioned above, a pipe) from the edge of the area effect bubble to the middle of it. You don't need to have it follow the rider or anything this way!

    Hope that helps.
    Share this post

  5. #5
    LynxNinjaTrials's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    OGLE-2005-BLG-390Lb
    Posts
    1,177

    Re: switching the track from day to night in-game?

    back to topic :/

    @DE, Spankier: ok, i'll do it that way then thx guys!
    Share this post

  6. #6
    TeriXeri's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,163

    Re: switching the track from day to night in-game?

    Easiest way is the Area Condition tool.

    Can be scaled to up 10000 meters.
    Triggered on/off with stat events.
    Changed to specific values with numeric data sources.
    Let it fade gradually via distance with the fade bar.
    Change it over time via curved data sources as well.

    I think gigatrack uses a gradually changing environment, at start it's day, but it gets dark near the end.
    Share this post

  7. #7
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859

    Re: switching the track from day to night in-game?

    Using the size and fade values in an area condition usually gets you the smoothest result when transitioning between totally different weather conditions. Of course if the change needs to be permanent after a certain point the area condition must be set to follow the rider after the minimum distance to the area condition tool has been achieved. I'd use a fading area condition in the place where it has to be darkest and then use distance tool to determine when the rider has passed the area condition and start to move it with the rider.
    Share this post

  8. #8
    LynxNinjaTrials's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    OGLE-2005-BLG-390Lb
    Posts
    1,177

    Re: switching the track from day to night in-game?

    Originally Posted by mutetus
    Using the size and fade values in an area condition usually gets you the smoothest result when transitioning between totally different weather conditions. Of course if the change needs to be permanent after a certain point the area condition must be set to follow the rider after the minimum distance to the area condition tool has been achieved. I'd use a fading area condition in the place where it has to be darkest and then use distance tool to determine when the rider has passed the area condition and start to move it with the rider.

    wow, thx a lot for that advice mutetus i think i get what you mean, hope i can do it how you said. how do i make the area condition tool follow the rider??
    Share this post

  9. #9
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859

    Re: switching the track from day to night in-game?

    Just like you would make anything else follow the rider. Take an object info datasource and point it to the rider and get the values to object position event that moves the area condition. To make the transition set the area condition size to the distance you want to start the transition and put it in a place where it's supposed to be darkest. Then measure the driving line distance between rider and area condition and if it's under zero then start to move the area condition with the rider. The other (and easier now that I think of it) way is to tie data sources to the size and fade values of area condition and set fade to 0 and size to max right after the rider passes the area condition, using an area trigger.
    Share this post

  10. #10
    llDumptruckll's Avatar RedLynx Moderator
    Join Date
    Mar 2014
    Posts
    489

    Re: switching the track from day to night in-game? [SOLVED]

    This is some heavy stuff. Lol
    Share this post