Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_for_screen #201953
04/12/08 08:38
04/12/08 08:38
Joined: Jul 2006
Posts: 96
C
ChildeHarold Offline OP
Junior Member
ChildeHarold  Offline OP
Junior Member
C

Joined: Jul 2006
Posts: 96
I have encountered a strange behaviour of the vec_for_screen function, maybe someones knows of that.

I have got a top view camera and want to move an object below

VECTOR t;
t.x = ev->mouse_pos->x;
t.y = ev->mouse_pos->y;
t.z = _VAR(200);
vec_for_screen(&t,TopView);

So it's mainly that what the manual sasys (don't mind about the syntax difference, it's C++)

But the objects are not displayed properly. They are shifted.
The function works fine when I stand upright.
Anybody who succeed using it for a top view?




Last edited by ChildeHarold; 04/12/08 08:39.
Re: vec_for_screen [Re: ChildeHarold] #201973
04/12/08 15:12
04/12/08 15:12
Joined: Jun 2003
Posts: 427
Prison
DarkWhoppy_ Offline
Senior Member
DarkWhoppy_  Offline
Senior Member

Joined: Jun 2003
Posts: 427
Prison
I had to same issue. As soon as I used a function like vec_for_screen() or vec_to_screen() things would move around to odd positions. I'm not sure how I resolved this issue but one day it just stopped happening.


darkwhoppy@msn.no.spam.com (remove no.spam.) Website: WhoppyArts

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