xray material or objects in bge...

hi. is there any way to make some object or it’s material xrayed? so it will bi always visible through another objects? i want to apply this to the player weapon bcs i wont to use overlay scene…

bump…

You mean that objects behind another object are still displayed?

I do not think you can do that unless the foreground object is transparent.

so you are pointing at the alpha sorting? i can use the alpha on the weapon, in the place that player cant see… or you mean something different?

Yes, if you want to see through an object you need to make it transparent (whether with alpha, add or clip alpha).

If you meant the “targeting” help that some games offer, I’m pretty sure this is rendered in front of each other object (similar to an overlay scene).

but i dont want to apply it on crosshair… i want to apply it to the players hands and weapon to prevent it getting to the wall… if you know what i mean… the situation when the player is too close to the wall and the weapon has no collision enabled…

I would suggest you to ask questions about the problems you’re having with the overlay scene technique because it seem to be the perfect solution to your problem as far as my understanding of the BGE goes.

Ok, so the problem is that the player can get to close to the wall. An appropriate collision detection would solve that issue.

I can imagine that you make the weapon turned away when it hits a wall. A normal person would do this as well :). And it would make sense as the wepon would crash into the wall otherwise.

Or you make it that the player can’t get that close if he has a weapon in front of him.

from the suggestion… best is the thing that the will be turned away… i’ll try it… but i have problems with collision sensor on a sensor object… it will do nothing…