• "Auto racing began 5 minutes after the second car was built." - Henry Ford
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dear Guest. Follow RaceDepartment on Twitter, Facebook, Instagram, Twitch, Steam and YouTube.

I need help with walls: problems with collisions and transparency

Discussion in 'Bob's Track Builder' started by zaxxon, May 2, 2009.

  1. zaxxon

    zaxxon

    Messages:
    292
    Ratings:
    +5
    The BTB project can be downloaded here: Click to DOWNLOAD the BTB project

    I have two kinds of walls: a) tree-walls and b) invisible walls. All of them are on the boundary of the driveable zone.

    The problems are:

    1) I would like all the walls to be collisionable, so the car can't go out of the driveable zone. I can't achieve it. I have tried "everything".

    2) The tree-walls show a thin black line on their top, where they are supposed to be transparent. May be in BTB the thin line is not visible, but when racing in RBR you can see it.

    I would appreciate any help with this problems.
     
  2. chub_pearson

    chub_pearson

    Messages:
    312
    Ratings:
    +2
    Hi there,

    with No 2, I think the black line is the base of the image somehow 'reflecting' onto the top in the mips. Try making the bottom 2 or 3 pixels of the image transparent [so the trees don't reach all the way down to the bottom of the image].
     
  3. Kerante

    Kerante

    Messages:
    13
    Ratings:
    +0
    flipping the walls upsidedown seems to fix it, i think the walls are collidable only from one side
     
  4. zaxxon

    zaxxon

    Messages:
    292
    Ratings:
    +5
    Thank you both, Kerante and club_pearson, for your time and help :wink2:
    I will try to apply your ideas.
     
  5. zaxxon

    zaxxon

    Messages:
    292
    Ratings:
    +5
    It works!
    :good:
    If the bottom pixels of the image are dark, the thin line appears on the top of the wall. Exactly what you said.

    Thanks :wink2:
     
  6. zaxxon

    zaxxon

    Messages:
    292
    Ratings:
    +5
    It also works. Now the problem is fixed.
    Thank you very much! :laugh2: