Recognize Hitpixel / Trefferpixel Erkennen

Posted By: HoopyDerFrood

Recognize Hitpixel / Trefferpixel Erkennen - 10/08/07 21:49

Hello,
is there a posibility to recognize on which Pixel on an entitys Texture a trace hit? To get the u,v coordinates on an entitys Skin at the place the trace hit. I want to check hitzones using a second skintexture with coloured areas.

I excuse for my bad english and thank you for helping me.

Hallo,
gibt es eine Möglichkeit herauszufinden welchen Pixel auf der Textur einer Entität ein Tracestrahl getroffen hat. Kann man die u,v Koordinaten auf der Trefferstelle auf dem Skin der Entität bekommen? ich möchte Trefferzonen anhand einer 2. Skintextur mit verschieden gefärbten Bereichen erkennen.
Posted By: rvL_eXile

Re: Recognize Hitpixel / Trefferpixel Erkennen - 10/08/07 21:51

Sry weiss net ob es geht, aber schau mal im AUM dort steht was über Hitboxen bzw Trefferzonen...

cYa Sebastian
Posted By: ventilator

Re: Recognize Hitpixel / Trefferpixel Erkennen - 10/08/07 21:53

Quote:

When c_trace() hits a level block or a model entity in OBB mode, the predefined hit.skin1 pointer is set to the hit BMAP (the lightmap or the first entity skin), and hit.u,hit.v are set to the u,v coordinates of the hit point on the texture. This can be used to paint on the texture, add or remove shadows, or punch holes in targets with a gun.



Posted By: Zapan@work

Re: Recognize Hitpixel / Trefferpixel Erkennen - 10/09/07 14:34

It seems that the c_trace function does not work correct yet. So currently it's a better choice to use ventilator's "super-trace" plugin
Posted By: HoopyDerFrood

Re: Recognize Hitpixel / Trefferpixel Erkennen - 10/09/07 23:02

My engine doesn't know the parameters "hit" so hit.u and hit.v do not exist. And there is nothing in the manual about that parameter.

Where can I get more infomation about the super-trace-plugin and where can I download it. It sounds very interesting.


@eXile: Ich schaue immer erst in's AUM bevor ich hier eine Frage stelle, aber ich habe nichts gefunden. Zumindest nichts was hilft.
© 2024 lite-C Forums