Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (blobplayintennis, AndrewAMD, JeyKey II, 1 invisible), 21,343 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
3d object to screen(vec_for_screen) #128933
05/09/07 19:01
05/09/07 19:01
Joined: Jul 2006
Posts: 69
P
piposlav Offline OP
Junior Member
piposlav  Offline OP
Junior Member
P

Joined: Jul 2006
Posts: 69
I would like this>
1object (3d cylinder) in screen ,as part of my HUD. but when iam moving cylinder not rotating corectly (i tried vec_for_screen)

temp.x =500; (x_pos in screen)
temp.y =50; (y_pos in screen)
temp.z = 8; (i dont understand this parameter ,because if i want to use 2D)
vec_for_screen(temp,CAMERA);
vec_Set(object.x,temp);(set vectors)

Re: 3d object to screen(vec_for_screen) [Re: piposlav] #128934
05/09/07 19:08
05/09/07 19:08
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
but what you mean "not rotating corectly"
temp.x and temp.y are 2d coordinates (on screen position)
temp.z is the distance from camera to point in 3d world.


Never say never.
Re: 3d object to screen(vec_for_screen) [Re: tompo] #128935
05/09/07 19:33
05/09/07 19:33
Joined: Jul 2006
Posts: 69
P
piposlav Offline OP
Junior Member
piposlav  Offline OP
Junior Member
P

Joined: Jul 2006
Posts: 69
iam add this

vec_set(temp,camera.x);
vec_sub(temp,rad.x);
vec_to_angle(rad.pan,temp);

now is correct ,but when i moving mouse.y my cylined still rotating (panning)
maybe i post video


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

Gamestudio download | 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