Textures and NO traspassing


(GotLink) #1

Hi…

I need to make some kind of oil container, like a big cilindre, but when i try to make a simple circle with any texture y cant go into the circle BUT i can go out the circle…

What i want its, when im into the circle i dont want to be able to leave it, then i dont be able to fall from the top. thats what i want…

But… the texture have an alpha, then if somebody its at the top of the oil container (maybe a snipper), another Snipper have to be able to shoot him, with out problem of texture bloking the bullet…

i did try that without problem, the only thing is i need dont be able to fall down from the top…

Another thing… maybe if i make a screen shot, you can understand what i try to say… i know i have a poor english… but sorry… then, how can i make a screen shot??

Thanks!!


(MadMaximus) #2

in game, press F11 to take a screenshot, if you want to do an editor screenshot, then press your PrintScreen key at the top of your keyboard to the right and then PASTE that into whatever image editor you use. windows paint will do.


(MuffinMan) #3

yep a screenshot would definitely help! anyway, to understand that better - you did a cylinder and players can get inside, the thing has an alpha texture and you want to have the alpha texture to let shots pass? you could write your own shader for the alpha that lets shots through… anyway i can’t really imagine plz post an image


(GotLink) #4

Ok… maybe its more easy with screenshots…

Here the Snipper View from the bottom… as you can see the red section shows a little box of wood simulating another snipper from the top… then thats ok… i can shoot the box and break it, alpha texture its doing hes job…

Now, this is the Oil Container, or Fuel Container… and as you can see there are two plataforms, at the middle and the top of fuel container… here is where i need to make it solid

And, here… its the view from the top or middle of fuel container, the snipper can shoot, but if i walk right to the Red Section i fall down… thats what i dont want…

Any Idea…??

Thanks!!


(HairyPlums) #5

I think you can add a “surfaceParm playerClip” to the shader to prevent a player from walking through it (I haven’t tested this, so sorry if it’s not the answer!).


(Drakir) #6

Just copy the curve and use ‘clip’ on it and place it in the exact same location.

Perhaps u need to invert the matrix to get the clip to work, not sure. But clip will definitly work.


(GotLink) #7

ok… thanks but… where can i get this SurfaceParm PlayerClip

Otherwise… i make a irregular polygon with 20 sides (looks like a circle), then copy and paste the same polygon, juts a litle small the other, and with a CSG Substract i make the hole… next the base and thats all…

Finaly i get a nice plataform jeje…

Thx!!!


(HairyPlums) #8

It’s a shader parameter, e.g.:


textures/mymap/railing
{
  surfaceParm playerClip
  {
     map textures/mymap/railing.tga
  }
  // ....other shader sruff omitted
}