Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,209 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
confused #274516
06/27/09 03:33
06/27/09 03:33
Joined: Jun 2009
Posts: 10
ina
P
peank Offline OP
Newbie
peank  Offline OP
Newbie
P

Joined: Jun 2009
Posts: 10
ina
hi...eughhh can anyone help me....i wanna wrapped the camera to my models head/eyes and the camera should focus to where ever the heads toward to..(heeheh sorry my english is bad)i try "vec_set(camera.pan,my.pan)" but the camera just focus ahead, it didn't follow the heads movement then i try something else, i use bones for the animation and try to put the camera with my bones head...but then all i see is my model foot...i screw up didn't i....heheeh...well if there's someone who would share some code to me , i reallllyyyy apreciated..... grin

Re: confused [Re: peank] #274527
06/27/09 05:38
06/27/09 05:38
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
To set the position of the camera to the head, and make it follow it constantly use 'vec_set' in a 'while' loop. Don't forget a 'wait(1)' command at the end of the loop.

Last edited by DJBMASTER; 06/27/09 05:38.
Re: confused [Re: DJBMASTER] #274545
06/27/09 08:15
06/27/09 08:15
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
you can set the camera on a vertex and then you can make the camera look to another vertex (e.g nose vertex). here an example:
var tt;
var zz;
while(1)
{
vec_for_vertex(tt,my,421); //back vertex of the head
vec_for_vertex(zz,my,1094);//vertex of the nose
vec_set(camera.x,zz);
vec_sub(tt,camera.x);
vec_to_angle(camera.pan,tt);
wait(1);
}


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: confused [Re: alibaba] #275507
07/01/09 15:27
07/01/09 15:27
Joined: Jun 2009
Posts: 10
ina
P
peank Offline OP
Newbie
peank  Offline OP
Newbie
P

Joined: Jun 2009
Posts: 10
ina
thanks !


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