Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
finding a position on the uv map using a 3d position #210036
06/07/08 11:40
06/07/08 11:40
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline OP
Expert
lostclimate  Offline OP
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
I had no idea were to put this since i dont use litec and the scripting forum has been removed.

my question is, is there any functions that would lend them selves to finding the uv coordinates on an entitiys skin that correlate to were the mouse is hovering over top of them?

Re: finding a position on the uv map using a 3d position [Re: lostclimate] #210066
06/07/08 17:20
06/07/08 17:20
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
if its a terain you can calculate it yourself

else maby c_trace but i gues not

i never tried it but maby it helps you:
vec_for_uv (VECTOR*, ENTITY*, var number);


"empty"
Re: finding a position on the uv map using a 3d position [Re: flits] #210072
06/07/08 17:27
06/07/08 17:27
Joined: Sep 2003
Posts: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
Yes, c_trace is it. Trace a ray from the camera position in direction mouse_dir3d and then the hit struct gives you the uv position on the hit texture. But this only works with lite-c because the hit struct is a lite-c struct.

Re: finding a position on the uv map using a 3d position [Re: Spirit] #210194
06/08/08 22:06
06/08/08 22:06
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline OP
Expert
lostclimate  Offline OP
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
damn, im going to have to upgrade soon. oh well, ill work on it sometime.


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