clipping/collision problem i've never noticed before


(sodsm live) #1

i’m not sure how to phrase this right and i seem to be having problems with the search function here at the forum.

in the course of making some furniture to be converted into models, i noticed that some solid brushes were not blocking bullets. more precisely they appeared to be stopping bullets since they are leaving their wall mark decals on the surface, but looking behind the brush and you can see bullet impacts there as well. those extra impacts behind the solid brush seem to reflect the surface parms of the brush you are shooting through. so say i have glass in front of wood, the bullets will impact the glass leaving the glass style bullet marks but it also leaves glass style marks on the wood behind it(no dark spot in center of decal, long fracture lines).

at first i thought it was because i was using some small grid settings but i can see it happening with a brush up to 16 units thick. i also thought it had something to with glass but it’s happening with default shaders as well. i don’t actually know if the bullet is going through or if it’s just the decal being projected through since i’m just testing this in devmap mode.

Edit:

just tested with a func explosive behind it and it appears it’s just the decal being projected only. that’s okay for fair-gameplay but it sure throws off the illusion of the game.

if anyone knows what i’m doing wrong i’d appreciate the help.


(psyco_mario) #2

sorry, i dont understand what you mean!
:S


(kamikazee) #3

You are right, the decal projection code shows bulletmarks trough a thin brush.

You can try this as well by shooting through cornes whilst allmost aiming at the floor. What matters is the distance between the two brushes and the point where it hits first.


(sodsm live) #4

sorry mario, i couldn’t quite figure out how to phrase the situation.

thanks kamikazee, i just wanted to be sure it wasn’t something broken with my shaders or the game.

see i was making a coffee table model that has a glass top insert. standing in front of the table and shooting downward at an angle through the glass, sort of aiming at one of the cross braces that go between the tables legs, you can see the sparks from the glass but the bullet holes appeared in the wood(i was using glass shader that had wallmarks turned off at the beginning). that’s when i thought my glass shader wasn’t clipping bullets but i got confused about the sparks appearing from the glass.

anyway, i think i’ll change both the shaders used so neither of them show marks.

another thing i noticed because of this problem, and it wasn’t until i made the table a model, was that by putting a rudimentary rectangular clip brush over the table, the wall marks show up perfectly on all the complicated brush work that make up the table. i guess this is the good part about decals projecting through thin brushes.


(psyco_mario) #5

ah, now i get what you mean,

thats wierd! :stuck_out_tongue: