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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,103 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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