banimod / etpro / ettv forums Forum Index banimod / etpro / ettv forums
Bani's Discussion Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

scripted cameras
Goto page 1, 2  Next
 
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation
View previous topic :: View next topic  
Author Message
fretn



Joined: 27 Jul 2003
Posts: 351
Location: Belgium!

PostPosted: Wed Apr 14, 2004 11:12 pm    Post subject: scripted cameras Reply with quote

not finished

Camera definitions are simply a position, view direction, and FOV which can be defined and obtained over a set amount of time. A camera definition is made up of a camera path and at least one target path. Paths can be one of three different types.

1.Fixed – Does not move.
2.Interpolated – The position is interpolated between two points over a given amount of time.
3.Spline – The position is interpolated between the two nearest pre-computed time segments along the derived spline path.

Camera definitions are stored in “.camera” files which can be loaded anywhere from the base path.

A ".camera" file looks like this:

Code:

cameraPathDef {
   time <time_in_seconds>
   camera_Interpolated {
      time <time_in_milliseconds>
      type <some_number>
      name <some_name>
      baseVelocity <some_velocity>
      startPos ( x y z )
      endPos ( x y z )
   }
   target_Interpolated {
      time <time_in_milliseconds>
      type <some_number>
      name <some_name>
      baseVelocity <some_velocity>
      startPos ( x y z )
      endPos ( x y z )
   }
   event {
      // dunno - I need to check this
      type 4
      param ""
      time 0
   }
   fov {
      fov <some_fov>
      startFOV <some_fov>
      endFOV <some_fov>
      time <time_in_milliseconds ?>
   }
}


_Interpolated can be switched with _Fixed

Code:

_Fixed {
   time <time_in_milliseconds>
   type <some_number>
   name <some_name>
   pos ( x y z )
}


camera_ is the position of the camera, if you want a static position, use camera_Fixed, if you want a moving camera use camera_Interpolated

or camera_Spline, I recommend building spline paths with GTKRadiant.
target_ is the place where the camera is looking at, if you use a moving target, the angle of your camera will slightly move
in the moving direction of the target.
You can retrieve your current position in a map with /getpos (bleh I need to check the name of this cmd).
_________________
Day by day : http://w.twwwo.be/
Back to top
View user's profile Send private message
fretn



Joined: 27 Jul 2003
Posts: 351
Location: Belgium!

PostPosted: Wed Apr 28, 2004 4:59 am    Post subject: Reply with quote

new example scripted camera:

railgun03

start a server with the map railgun

/forcevar sv_cheats 1
/camera railgun03

or open a demo with this map and exec the last command.

this camera is made with gtkradiant 1.4

first I decompiled the bsp with q3map2 to a .map file, then I opened the source file with gtkradiant, went to plugins->cameras and started a new spline camera

example to convert a bsp to a map file

Code:
C:\Program q3map2.exe -convert -format map -map railgun.bsp -game et


then fire up gtkradiant open the .map file and go to plugins->camera->new spline camera

the camera inspector will popup drop some points and preview it

tip: when making a camera both camera and target are a spline, and they have to follow a path like my example, just add the nodes for the camera, and then edit the .camera file by hand, copy paste the camera nodes to the target , remove the first node by the target and the last by the camera, save it, and the camera will always look in the direction it travels. [/code]
_________________
Day by day : http://w.twwwo.be/
Back to top
View user's profile Send private message
GrO



Joined: 11 Jan 2005
Posts: 3

PostPosted: Tue Jan 11, 2005 12:48 pm    Post subject: Reply with quote

Hello!

Where can i download this plugin? I have searched it but no found... Smile

best regards, GrO
Back to top
View user's profile Send private message
=FF=im2good4u



Joined: 05 Feb 2003
Posts: 3924
Location: The Netherlands, HOLLAND

PostPosted: Tue Jan 11, 2005 1:03 pm    Post subject: Reply with quote

(oh)

its in etpro ! no plug in needed
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
=FF=im2good4u



Joined: 05 Feb 2003
Posts: 3924
Location: The Netherlands, HOLLAND

PostPosted: Tue Jan 11, 2005 1:04 pm    Post subject: Reply with quote

or if u mean the Q3map2 its inside gtk radiant
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
GrO



Joined: 11 Jan 2005
Posts: 3

PostPosted: Tue Jan 11, 2005 3:02 pm    Post subject: Reply with quote

no no Very Happy i mean this one
Quote:
then fire up gtkradiant open the .map file and go to plugins->camera->new spline camera


I have all map converted ! but i need this plugin (and i don't found it on etpro or am a noob imHo)
Back to top
View user's profile Send private message
Nail



Joined: 02 Jan 2004
Posts: 425

PostPosted: Tue Jan 11, 2005 4:41 pm    Post subject: Reply with quote

fretn wrote:


this camera is made with gtkradiant 1.4

first I decompiled the bsp with q3map2 to a .map file, then I opened the source file with gtkradiant, went to plugins->cameras and started a new spline camera


_________________
Improvise, Adapt, Overcome
Back to top
View user's profile Send private message Visit poster's website
Bouaap



Joined: 22 Oct 2004
Posts: 25

PostPosted: Wed Jan 12, 2005 1:59 am    Post subject: Reply with quote

Right.. the latest 1.5 GtkRadiant does not have this plugin bundled. Get 1.4.
_________________
wargle.c
Back to top
View user's profile Send private message
GrO



Joined: 11 Jan 2005
Posts: 3

PostPosted: Wed Jan 12, 2005 2:29 pm    Post subject: Reply with quote

omg Shocked k thanks
Back to top
View user's profile Send private message
=FF=im2good4u



Joined: 05 Feb 2003
Posts: 3924
Location: The Netherlands, HOLLAND

PostPosted: Thu Jan 13, 2005 2:19 am    Post subject: Reply with quote

or else 1.3 witch has it for sure
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Bouaap



Joined: 22 Oct 2004
Posts: 25

PostPosted: Thu Jan 13, 2005 2:44 am    Post subject: Reply with quote

=FF=im2weak4u wrote:
or else 1.3 witch has it for sure

I've been using 1.4 to create some .camera's Wink
_________________
wargle.c
Back to top
View user's profile Send private message
Bouaap



Joined: 22 Oct 2004
Posts: 25

PostPosted: Fri Jan 14, 2005 2:42 am    Post subject: Reply with quote

Hmm.. maybe somebody can help me a little with those camera paths. When I've created one, and I want to move the complete path up/down orso, is there a simple way todo that? I cant seem to figure out how to select them all..
_________________
wargle.c
Back to top
View user's profile Send private message
skooli



Joined: 16 Jan 2005
Posts: 9

PostPosted: Sun Jan 16, 2005 2:39 am    Post subject: Reply with quote

hi, i'm using gtkradiant 1.4, but always when i klick on "preview", there occurs a critical error, and the radi has to be closed.
so i think theres something wrong with my camera definitions i made with the inspector ^^

would be great if somebody could make little description about getting a valid camera file... step-by-step

thanks and cya Very Happy
Back to top
View user's profile Send private message
Bouaap



Joined: 22 Oct 2004
Posts: 25

PostPosted: Sun Jan 16, 2005 5:13 am    Post subject: Reply with quote

Guess that's because you dont have a path and a target with enough waypoints.. add some more Wink
_________________
wargle.c
Back to top
View user's profile Send private message
skooli



Joined: 16 Jan 2005
Posts: 9

PostPosted: Mon Jan 17, 2005 5:11 am    Post subject: Reply with quote

tell me: how can i make waypoints with the camera inspector? Shocked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group