SOLVED Parallax displacement mapping

Discussion in 'Tracks' started by MGMetroDave, Oct 17, 2019.

  1. MGMetroDave

    MGMetroDave Member

    Joined:
    Apr 7, 2019
    Messages:
    92
    Likes Received:
    98
    Just wondering if anyone's managed to get this new CSP feature to work? I've downloaded and tested the Feldbergring example files and can confirm it's working perfectly on that, but despite doing everything correctly (I think), it's not working on my own track. Has anyone else experimented with it? Are there any tracks using the feature?
    • Must use ksPerPixelMultiMap shader
    • The txNormal texture file must have an alpha channel, which is then used by CSP to control parallax displacement (lighter values = positive displacement/outwards)
    • Add the following to the extension track config ini (example from Feldberg)
      • [Material_DisplacementMap]
        Meshes = texture:cobbles1_NM.dds, texture:cobbles2_NM.dds, texture:terrain_NM.dds, texture:walls2_NM.dds, texture:walls3_NM.dds
        DisplacementScale = 1
        UseParallaxShadows = 1
    The above was outlined by Ilja in an email to me. Is there anything else obvious that I've missed? I'm probably missing something stupid. It doesn't seem to do anything in game?

    https://github.com/ac-custom-shader.../blob/master/config/tracks/feldberg.ini#L1605

    For the record, I even tried swapping out my own DDS files with the ones from the feldbergring csp test version, but that didn't work either, so it's probably not a texture file issue. Am I going crazy? :lol:
     
    Last edited: Oct 17, 2019
  2. fughettaboutit

    fughettaboutit Member

    Joined:
    Jul 21, 2014
    Messages:
    41
    Likes Received:
    32
    you have these lines?

    [INCLUDE]
    INCLUDE=common/conditions.ini, common/materials_track.ini
     
    luchian and MGMetroDave like this.
  3. MGMetroDave

    MGMetroDave Member

    Joined:
    Apr 7, 2019
    Messages:
    92
    Likes Received:
    98
    Thank you! Yes that's it! Big facepalm monent. :lol: Thanks @fughettaboutit !
     
    fughettaboutit likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice