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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 12,885 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
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 | 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