• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

SOLVED Hide AC_CREW objects?

Gunnar333

Well-Known Member
I was wondering if anybody has a solution for the following situation:

We can name an object: AC_CREW_0_xxx, AC_CREW_1_xxx, AC_CREW_2_xxx, etc....
These objects will appear only when these teams/cars are loaded in game.

Is there a way which do the opposite? Like when team 1-3 is in game these objects will be hidden?

I want to make pit garage doors which are open when team is in game and closed when not.
 

Johnr777

Moderator
I was wondering if anybody has a solution for the following situation:

We can name an object: AC_CREW_0_xxx, AC_CREW_1_xxx, AC_CREW_2_xxx, etc....
These objects will appear only when these teams/cars are loaded in game.

Is there a way which do the opposite? Like when team 1-3 is in game these objects will be hidden?

I want to make pit garage doors which are open when team is in game and closed when not.
There might be a way... but dont quote me on it, all theory.

What if you do 2 objects for the door, one name AC_CREW etc... and the other whatever object name you want.

Same material for both - with alpha properties.

Have the AC CREW kn5 carry the texture with black alpha channel, and the non AC CREW kn5 carry another texture with white alpha.

If you prioritize the AC CREW in models.ini, it should use its texture first, therefor, no garage door.
 

Gunnar333

Well-Known Member
There might be a way... but dont quote me on it, all theory.

What if you do 2 objects for the door, one name AC_CREW etc... and the other whatever object name you want.

Same material for both - with alpha properties.

Have the AC CREW kn5 carry the texture with black alpha channel, and the non AC CREW kn5 carry another texture with white alpha.

If you prioritize the AC CREW in models.ini, it should use its texture first, therefor, no garage door.
Sounds like a good idea. This might work. I will fiddle around - let's see...
 

luchian

Administrator
Staff member
I was wondering if anybody has a solution for the following situation:

We can name an object: AC_CREW_0_xxx, AC_CREW_1_xxx, AC_CREW_2_xxx, etc....
These objects will appear only when these teams/cars are loaded in game.

Is there a way which do the opposite? Like when team 1-3 is in game these objects will be hidden?

I want to make pit garage doors which are open when team is in game and closed when not.
I also wanted this for my track. I tried with lods, I failed :lol:.

@Johnr777 's idea is much more intelligent, it might work! Please post if you succeed :D
 

Gunnar333

Well-Known Member
So here we go. How to do open closed pit garages step by step:
  1. Create two garage door objects for every garage pit slot. And assign the same material to all of them.
    GarageDoors.jpg
  2. Create two textures with alpha channel, one for open, one for closed door
    Textures.jpg
  3. name all objects you'll use for open doors: AC_CREW_0, AC_CREW_1, AC_CREW_2, etc... and assign the open garage texture to them
  4. name all the objects for closed doors how you want (I used: GD_0_closed, GD_1_closed, GD_2_closed, etc...) and export these to a new fbx, load it in ks Editor and apply the closed garage texture to them.
    So all closed and open garage doors do have the same material but with two different textures.
    Export a closedgaragedoors.kn5
  5. in models ini load closedgaragedoors.kn5 after your kn5 with open doors

    Sounds a bit complicated but it works.
    Screenshot_ks_lamborghini_huracan_gt3_g333_sachsenring_31-4-120-13-31-18.jpg Screenshot_ks_lamborghini_huracan_gt3_g333_sachsenring_31-4-120-13-30-49.jpg
 

luchian

Administrator
Staff member
So here we go. How to do open closed pit garages step by step:
  1. Create two garage door objects for every garage pit slot. And assign the same material to all of them.
    View attachment 5465
  2. Create two textures with alpha channel, one for open, one for closed door
    View attachment 5466
  3. name all objects you'll use for open doors: AC_CREW_0, AC_CREW_1, AC_CREW_2, etc... and assign the open garage texture to them
  4. name all the objects for closed doors how you want (I used: GD_0_closed, GD_1_closed, GD_2_closed, etc...) and export these to a new fbx, load it in ks Editor and apply the closed garage texture to them.
    So all closed and open garage doors do have the same material but with two different textures.
    Export a closedgaragedoors.kn5
  5. in models ini load closedgaragedoors.kn5 after your kn5 with open doors

    Sounds a bit complicated but it works.
    View attachment 5467 View attachment 5468
Man, this is so awesome. I know it's just a thing that many will not care, but I feel very excited about it! Thank you for sharing. Always pushing forward, awesome guys you are :nerd:
 
Top