Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Recognize Hitpixel / Trefferpixel Erkennen #159752
10/08/07 21:49
10/08/07 21:49
Joined: Sep 2007
Posts: 48
Deutschland
H
HoopyDerFrood Offline OP
Newbie
HoopyDerFrood  Offline OP
Newbie
H

Joined: Sep 2007
Posts: 48
Deutschland
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.

Re: Recognize Hitpixel / Trefferpixel Erkennen [Re: HoopyDerFrood] #159753
10/08/07 21:51
10/08/07 21:51
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Sry weiss net ob es geht, aber schau mal im AUM dort steht was über Hitboxen bzw Trefferzonen...

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: Recognize Hitpixel / Trefferpixel Erkennen [Re: rvL_eXile] #159754
10/08/07 21:53
10/08/07 21:53
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
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.




Re: Recognize Hitpixel / Trefferpixel Erkennen [Re: ventilator] #159755
10/09/07 14:34
10/09/07 14:34
Joined: Oct 2002
Posts: 806
Zapan@work Offline
User
Zapan@work  Offline
User

Joined: Oct 2002
Posts: 806
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

Re: Recognize Hitpixel / Trefferpixel Erkennen [Re: Zapan@work] #159756
10/09/07 23:02
10/09/07 23:02
Joined: Sep 2007
Posts: 48
Deutschland
H
HoopyDerFrood Offline OP
Newbie
HoopyDerFrood  Offline OP
Newbie
H

Joined: Sep 2007
Posts: 48
Deutschland
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.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1