Home
News
rFactor 2
rFactor 1
Forums
Contact
Company
Technology
Image Space Inc. YouTube rFactor 2 Twitter Image Space Inc. Google Plus rFactor 2 Facebook
Mediafire
Try or Buy rFactor 2
$43.99/84.99 Windows Only PCDL
Download rFactor 2 Demo Now!

NOTICE Notice: This is an old thread and information may be out of date. The last post was 863 days ago. Please consider making a new thread.
Results 1 to 12 of 12

Thread: Tutorial for Skybox and Skyboxi?

  1. #1
    angelodeasa's Avatar
     

    Newer Member
    Oct 2010

    Tutorial for Skybox and Skyboxi?

    I can install them in a track... Position them correctly... But when you check in the ingame camera's, they look awful and pixelated and sometimes clipping some of the structure objects...

    Anybody has a tutorial of making a correct placement of the skybox and skyboxi... I will surely appreciate any help or tips...

  2. #2
    mianiak's Avatar

     rFactor 2 Validated PC Specification 

    Location
    Australia
    Knowledgeable member
    Have you looked at the track making tutorial? http://www.mbdevteam.com/download/tu..._by_scottj.rar
    I think the pixelation thing is,, in the material settings you need to select 'No Detail Reduction' and when you save the sky texture choose no mip maps.

  3. #3
    angelodeasa's Avatar
     

    Newer Member
    Oct 2010
    mannnn... you always come thru for me bro! ima try this now

  4. #4
    mianiak's Avatar

     rFactor 2 Validated PC Specification 

    Location
    Australia
    Knowledgeable member
    Quote Originally Posted by JorgeANeto View Post
    Hm, that's a interesting find, I've never play around with this propertie "no detail reduction". Probably it's a bit fps consuming, I guess?
    I really don't know 100% how it works as I haven't played with it much, but I presume you only use it with things you don't want to lose detail, like the sky and maybe terrain if you use an overhead pic. I only know to do this because I looked at how default ISI tracks are made.

  5. #5
    mianiak's Avatar

     rFactor 2 Validated PC Specification 

    Location
    Australia
    Knowledgeable member
    Quote Originally Posted by JorgeANeto View Post
    The Scott's tutorial is not very detailed on "Skyboxes" section. He just says to write "sky.tga" in slot name but "T1 lerp T2" shader has two texture slots. I can't figure out how manage it in 3dsMax. Should I clone the map for both slots, including animation parameters?

    Obviously there's no "sky.dds" or "sky.tga" anywhere, including commonmaps.mas file.

    I see most people satisfied to "borrow" skyboxes from here and there but I've never seen nothing more detailed about texture animations.
    Ok, I will do a bit of 'thinking out loud' here (so don't take this as gospel), I have looked into this, but I still don't understand it fully, so I will type what I think and hope it can help clear it up a bit.

    You don't actually need sky.dds (I don't know why or how) I think those names are used to name the animation.

    The animation uses sky files from the commonmaps.mas or you can build your own. Infact you don't even need to make a sky tex. at all because all you need is in the commonmaps.mas. The only reason you would make your own sky is if the location had a certain unique thing.

    I think the main textures used are sky01 (day) and sky04 (night), the rest I think are for dusk and dawn which aren't turned on for long.
    I think the lerping is not a static blend, but a way to cause a fade.
    If you look at the animation,,,
    t1- (0,0,1,1,2,3,4)
    t2- (1,2,2,3,3,4,0)
    You can see that it is offset.

    Here are the material properties from the track sample piece that comes with rftools v1.


    The sky textures themselves are beyond my understanding on how they are made. I think they are similar to how a cube map is made or something like that. But in some cases I see just plain dxt1 sky's made so I don't think how they are made is important.
    You see the thumbnails from common mas show some fancy thing, but when you open them they all look normal. You can see the file format, bottom left of each wtv window.




    So that's about all the knowledge I can share about this. I hope it helps somewhat.

  6. #6
    LesiU's Avatar

     rFactor 2 Validated PC Specification Where I race Modding Group: SimRacingPL 

    Registered
    Oct 2010
    Location
    Poland
    Some time ago I did some tests with that animation sequence, trying to figure out how it works.. but I failed
    I did 4 solid colored textures (like pink, green, blue, yellow), run timescaled session and noted down exact times for all texture transistions during that 24h period, but found no obvious connection with anim sequence

    Yes, lerp is used here for fading (which gives pretty good results).

  7. #7
    mianiak's Avatar

     rFactor 2 Validated PC Specification 

    Location
    Australia
    Knowledgeable member
    Thanks for the kind words Jorge



    @LesiU, Try using the scene viewer, all you have to do it press a button to change the sky. It makes it a lot faster.
    ------

    This is from the gMotor Viewer help.

    ---------------------------------------------
    Time-of-day controls


    Time-of-day controls are used to adjust the direction and color of the scene lighting, and sky transitions if present and properly setup. Transition take place over a 3-second interval, and can be paused (frozen) by hitting the same key again.



    F1 transition from night to dawn (sunrise) phase

    F2 transition from dawn to day (sunny) phase

    F3 transition from day to dusk (sunset) phase

    F4 transition from dusk to night phase

    Backspace transition to the next phase. The phase order is dawn, day, dusk, night.
    ----------------------------------------------------

  8. #8
    LesiU's Avatar

     rFactor 2 Validated PC Specification Where I race Modding Group: SimRacingPL 

    Registered
    Oct 2010
    Location
    Poland
    Thanks mianiak, but I was talking about figuring out the lerp animation sequence provided in the material properties for sky dome.

    JorgeANeto. For me, it looks like a direct reference to all 5 (0-4) textures. Lerping is about linear transition between two points which rF is using for transitions between each texture change, so that's not the case (well, at least in my opinion). I'll ask my friend to have a look into the shader code. Maybe he will find anwers to our questions? Stay tuned.

  9. #9
    LesiU's Avatar

     rFactor 2 Validated PC Specification Where I race Modding Group: SimRacingPL 

    Registered
    Oct 2010
    Location
    Poland
    Shader is doing only Lerping on two textures (and RGBA color) that it receives from the GFX engine, so it is the engine, that interprets the sequence directly. You can try and ask ISI directly about that. Maybe this time they will help you. I tried, about a year ago, and they said that they don't remember that already, so they have no idea how it works

  10. #10
    blakboks's Avatar

     rFactor 2 Validated PC Specification 

    Registered
    Oct 2010
    Location
    Somewhere between NYC and Montreal
    Awesome addition, Mianiak! I've been following the tutorials floating around, and I didn't see anywhere where they mentioned the T2 animation sequence. I was scratching my head until I (re)stumbled on this thread. The order in which my skys were showing up was not the same I was getting on any other other track, plus it would flash white during the transition from sky to sky. Using that animation sequence for T2 fixed it perfectly! Hopefully the tutorial-makers will take note and add this info to their tut's. I'm starting to compile a list of notes on track building. This one has definitely made it in!

    Thanks again,
    Chris

  11. #11
    taufikp's Avatar

     rFactor 2 Validated PC Specification rF2 Rank Laptimes 

    Registered
    Nov 2010
    Location
    INDONESIA
    After creating a sphere and give it a sky texture, I still can't see the sky properly, what I see is only the blue color (part of the sky tex) and no clouds at all. Maybe there's a problem with my UVWmap? And how to do this in proper way? All other properties already set as in ISI's tutorial and in this post.

  12. #12
    taufikp's Avatar

     rFactor 2 Validated PC Specification rF2 Rank Laptimes 

    Registered
    Nov 2010
    Location
    INDONESIA
    Quote Originally Posted by taufikp View Post
    After creating a sphere and give it a sky texture, I still can't see the sky properly, what I see is only the blue color (part of the sky tex) and no clouds at all. Maybe there's a problem with my UVWmap? And how to do this in proper way? All other properties already set as in ISI's tutorial and in this post.
    Fix the problem, turns out I need to flip the normal. Works fine, but the sky animation is still working incorrectly and too fast. The animation is backwards I think (night is day, and day is night).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •