QUESTION KSLAYER issue

Discussion in 'Tracks' started by Mitja Bonca, Dec 17, 2019.

  1. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    Hi, on my latest track I have issues with multiple same objects, which are made for choosing level of details.
    For example, I named fences like:
    fence01_01_KSLAYER3
    fence01_02_KSLAYER4
    ...
    All fences have unique name for sure, even before kslayer part.

    But in the game (in AC) both fences are shown, for layer3 and layer 4. Never happened to me before. Don't know whats wrong. Any idea?
     
  2. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    614
    Not sure I understand what you are trying to do, are they 2 separate fences in different locations and you want to make them disappear or are they the same and you are trying to have the high detail switch into the lower detail?

    Switching between the 2 objects will require that you set the LOD out value of the higher poly object at.. example 150, and set the LOD in value of the lower poly object at 149... again, example values.
     
  3. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    I have 2 different fences (2 objects) on same place, one is low poly, 2nd one high poly. I want one to be selected when in game high level of details is selected, 2nd one when very high is selected.
    But I still didnt set the lods in kseditor.
    I though thats not necessary, or is it?
    Lod is only when some objects appear and disappear, right? It has nothing to do with kslayer reserved word in AC, as fas as I know.
     
    Last edited: Dec 17, 2019
  4. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    614
    Yeah, that wont work then. Because Very High will render everything, all lower KSLAYERs as well.

    Example, to show how it renders

    MAX = Layers 1,2,3,4,5
    Very High = Layers 1,2,3,4
    High = Layers 1,2,3
    Med = Layers 1,2
    Low = Layer 1
     
  5. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    So I have to set lods? So in All previous projects I was doing it wrong :(
    Any idea how to salve this? How to hide all objects of KS3 when KS4 is selected for example? As you described in your 1st post?
     
  6. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    614
    Yeah, unfortunately it layers them, not replaces anything.

    For your multi-object system, you need to use LODs, so in KS editor, high poly object LOD IN = 0 , LOD OUT = 100, low poly object LOD IN = 74, LOD OUT = 350

    Try those values or change them as needed
     
    Mitja Bonca and luchian like this.
  7. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    Thank you so much. This is exactly what I was after :) I can even optimize my previous tracks.

    Btw, this wouln't work?
    high poly object LOD IN = 0 , LOD OUT = 100, low poly object LOD IN = 100 (or 99) LOD OUT = 350

    So that you don't have duplicate objects at one for some period of time.
     
    Last edited: Dec 17, 2019
  8. Johnr777

    Johnr777 Moderator

    Joined:
    Jul 26, 2017
    Messages:
    1,050
    Likes Received:
    614
    You might need to overlap, otherwise they could disappear for a split second. But try, might be ok
     
  9. Mitja Bonca

    Mitja Bonca Active Member

    Joined:
    Nov 18, 2014
    Messages:
    107
    Likes Received:
    35
    Location:
    Slovenia
    Thx a lot mate, appreciate it.
     
    Johnr777 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