Gamestudio Links
Zorro Links
Newest Posts
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
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 12,092 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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