Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, henrybane), 1,095 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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