Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
super simple question! #252932
02/21/09 14:56
02/21/09 14:56
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
first,hi@all
then,i want to conver sun 3Dpos(xyz)to 2Dpos(xy),
and i tried vec_to_screen(sun_pos,camera),and heres my problem:
how can i get 2Dposition's vector?
like
var scr_x;
var scr_y;
scr_x=vec_to_screen(sun_pos,camera).x //ofcourse this wont work
or somethin else?
thx !


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS
Re: super simple question! [Re: Omicron_NEGA] #252962
02/21/09 20:32
02/21/09 20:32
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
The function returns an normal Vector with z = 0.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: super simple question! [Re: WretchedSid] #252964
02/21/09 20:39
02/21/09 20:39
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
He means use
VECTOR scr_pos;
scr_pos = vec_to_screen(sun_pos,camera); //scr_pos.z will always be zero


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: super simple question! [Re: EvilSOB] #253579
02/25/09 15:30
02/25/09 15:30
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
thx!
and one more:
does that means:
1:scr_pos .x=Valuable data converted by function
2:scr_pos .y=Valuable data converted by function
3:scr_pos .z=zero


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS

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