Reflections Getting Left Behind

Discussion in 'Track Modding' started by Alex Sawczuk, Jan 20, 2012.

  1. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    I've managed to get reflections working, but they get left behind rather than following the objects, and only update once every second or two.

    Any suggestions? I do have just one rather large roadsurface atm.
     
  2. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    It sounds a bit like you have static reflections involved here.
    This is a static entry
    ReflectionMapper=STATIC05
    {
    Type=Cubic
    TextureSize=(512)
    UpdateRate=(0.100)
    StaticSwitch=(100.000)
    Pos=(714.695313,-0.149937,-15.357156)

    and refmap0
    ReflectionMapper=REFMAP0
    {
    Type=Cubic
    TextureSize=(512)
    UpdateRate=(100.000)
    StaticSwitch=(100.000)
    TrackingIns=True
     
  3. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    ReflectionMapper=REFLECTEDENV
    {
    Type=Planar
    TextureSize=(1024)
    UpdateRate=(150.000)
    StaticSwitch=(150.000)
    TrackingIns=NULL
    IncludeIns=SkyBoxi

    etc

    Should TrackingIns be true?
     
  4. Luc Van Camp

    Luc Van Camp Track Team Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    1,030
    Likes Received:
    15
    Yes, it should be True.

    EDIT: thought you were talking about REFMAP0, sorry.
    That REFLECTEDENV looks correct.
     
  5. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    When you say left behind, I think car reflections, REFMAP0 is for car, REFLECTEDENV is for wet track. If its reflectedenv that you are working on, then what you need to do it set up a reflect plane for each object reflected that does not sit on the global reflect plane. This reflect plane and reflect setting is set in the instance rollout.

    If you have seen my test track I uploaded and notice the reflection of the walls on the corners how it doesn't sit flat. That's because the wall is all one object, What needs to be done there is to break the wall into smaller sections and set up an angled reflect plane so that the bottom of the wall 's reflection sits flush with the track.

    Here it is as one solid object
    [​IMG]


    Then I break the wall into smaller sections and add reflect planes and angle them to suit.
    [​IMG]

    Which gives me,,,
    [​IMG]
     
    Last edited by a moderator: Jan 20, 2012
  6. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    Yeah I'm aware of that, but my issue isn't the plane they're being reflected by, just the fact that the cube map is generated and then stays static for a couple of seconds before being redone. Meaning the car drives off and leaves its reflection behind.
     
  7. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
  8. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    Ok, I see what you mean now. Try setting your update rate to 100.

    This works for me with these settings

    ReflectionMapper=REFLECTEDENV
    {
    Type=Planar
    TextureSize=(1024)
    UpdateRate=(100.000)
    StaticSwitch=(150.000)
    TrackingIns=NULL

    http://www.youtube.com/watch?v=yBFbQjpZ-7E
     
  9. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    was the same when it was at 100
     
  10. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    hmm, I don't know what's going on here, I just tested it a few different ways that could cause this, first I set special fx level to low but it worked fine, second I set the weather to day (instead of raining) and turned the reflection on manually and it worked. I also tested the rtrainer incase it was the car but it worked fine.

    [ED] can you fire the rtrainer up in Joesville and make sure it works there?
     
  11. Luc Van Camp

    Luc Van Camp Track Team Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    1,030
    Likes Received:
    15
    OK, we've identified the problem and it will be fixed ASAP :) .
     
  12. fanlebowski

    fanlebowski Registered

    Joined:
    Oct 19, 2010
    Messages:
    132
    Likes Received:
    1
    sorry to post here. but when i clic on <add new mapper>, enter the name and hit ender, my 3ds max 2010 crash immediately :(

    have you a solution for me ?

    [​IMG]
    3dsmax 2010, i have this when i want to enter a new mapper

    if i rename it and hit enter > crash

    ty
     
    Last edited by a moderator: Jan 20, 2012
  13. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
  14. fanlebowski

    fanlebowski Registered

    Joined:
    Oct 19, 2010
    Messages:
    132
    Likes Received:
    1
    yup sorry :eek:
     

Share This Page