3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: cam1stperson  (Read 1078 times)

« on: November 02, 2011, 11:49:32 AM »
give it a script who you can zoom in with the cam1stperson?
« Reply #1 on: November 02, 2011, 12:35:38 PM »
I got a bit of a d�j� vu...

Impossible. The field of view is not an OUT by a Cam1stPerson.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #2 on: November 02, 2011, 02:20:08 PM »
umm... i think am gonna try this.... i add cam 1 person and a camchase with hidden skinmesh.... il try it

jestermon

« Reply #3 on: November 02, 2011, 02:27:49 PM »
Add this script as well as the normal "Zoom with camera" script, and let the chasecam do the looking and zooming for you, the 1st Person cam is then just the place holder for the chasecam.


bool done = false;
void Main()
{
int CAM1 = OBJ_0;  //1st person camera
int CAM3 = OBJ_22; //chasecam
Vector3 camLocation;
Quaternion camOnientation;

iObjectLocation(CAM1,camLocation);
iObjectOrientation(CAM1,camOrientation);
iObjectLocationSet(CAM3,camLocation);
iObjectOrientationSet(CAM3,camOrientation);
   if(!done){
      iObjectHide(CAM1);
      iObjectShow(CAM3);
      done = true;
   }
}

Not tested, just typed on the fly.. should work in principle.

« Last Edit: November 02, 2011, 02:32:14 PM by jestermon »
« Reply #4 on: November 04, 2011, 03:39:39 AM »
This is my project.very simple
Good luck
version 7.22
« Last Edit: November 04, 2011, 04:07:42 AM by Nasa13 »
Use 7.22

jestermon

« Reply #5 on: November 04, 2011, 06:09:47 AM »
Very nice solution Nasa. Just linking the chase camera to the 1st person camera, and setting the follow and rotate to a value of 1... simple, but clever, and only the zoom script needed. Sometime the simple solutions are the best. Kudos to you.
« Reply #6 on: November 04, 2011, 08:40:05 AM »
thank you jestermon.
i always try to find simple way. But sometimes it  can not be possible....*)
Use 7.22
« Reply #7 on: November 04, 2011, 09:29:11 AM »
thank you all ;) thats exactly that what i need ;D
Pages: [1]