Rain reflections on racesurface

Discussion in 'Track Modding' started by Normark, Dec 11, 2020.

  1. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Hi
    Will the race_surface act as a reflection plane or do I have to make a reflection plane for each object I want to be reflected.

    I have named and mapped the race_surface with the wet suffix, and the raindrops are animated in puddles and the sun is reflected, so the track surface is working correct.

    Just want to know if the reflection plane for each object is needed or the racesurface is acting as a reflection plane.

    Thanks for any advice.
     
  2. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,789
    Likes Received:
    2,246
    If the track is flat, you can probably use a global plane that will get most objects, but chances are you'll have to make a refplane for each object you need to reflect.
     
  3. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Thanks Coutie
    There is a tricky video showing how to adjust the refplanes, but I gues I can just align them to the bottom af the object.
    Another thing I wonder about is why my puddles are all green, I know there is a green hill behind, but that is not reflected. green puddles.jpg
     
  4. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,789
    Likes Received:
    2,246
    Maybe the ibl probe is really close to something green?
     
  5. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Thanks, I thought that could be the reason, I will check. :)
     
  6. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Hi
    I can´t get the rain reflections to work.
    The sun reflects in the puddles, but my main bulding doesn´t.

    The main building is like this in the scn. file:
    }
    Instance=building
    {
    ReflectPlane=(0.000, 1.000, 0.000, 0.075)
    MeshFile=building.gmt CollTarget=True HATTarget=True ShadowCaster=(Static, Solid) Reflect=True
    }
    And in the bottom of the scn. file:
    //-------------------------------------------------------
    //-------------------------------------------------------
    //-------------------REFLECTION MAPS---------------------
    //-------------------------------------------------------


    ReflectionMapper=REFLECTEDENV
    {
    Type=Planar
    TextureSize=(1024)
    UpdateRate=(100.000)
    StaticSwitch=(500.000)
    TrackingIns=NULL
    IncludeIns=building

    And this is a screenshot of my building and reflect plane from MAX.
    The building is exported wit reflections enabled, and the refl. plane as local plane
    refl-plane.jpg
     
  7. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Something I wonder about.
    The reflection plane cover different surfaces: tracksurface, gravel and curbs. How can the game engine control that the reflections only appear on the wet racesurface??
    I´m scratching my head, hope someone can explane and maybe that could give mee the answer why it is not working.
     
  8. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,789
    Likes Received:
    2,246
    Because the puddles and what not only appear on the road shader. Your refplane is too big, it only needs to match the object, not that that is what your problem is. Everything looks ok, but obviously something isn't. Only thing I can think of is you don't have a } at the end of your reflection stuff.
     
  9. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58
    Coutie, thanks a lot for your sharp eyes.
    I spend quite a couple of hours fighting with this. After I added that small bastard it works like a charm, perfect reflections.
    Thanks a lot. :)
     
    Goanna likes this.
  10. Normark

    Normark Registered

    Joined:
    Oct 5, 2010
    Messages:
    237
    Likes Received:
    58

Share This Page