3D Rad - Free 3D game maker - Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Coming soon: software updates

Author Topic: camera user controlls  (Read 684 times)

laynedel

  • Full Member
  • ***
  • Posts: 125
  • ima create life ok: DSFSASAfxdsgcxdshbfxfbdfcvFGD.
    • WWW
camera user controlls
« on: October 28, 2009, 09:00:33 AM »
would it be a good idea to have the eventoninput object so when you connect it to camera it can activate camera contollds like zoom+ or - same with pitch ,yaw ,and roll features,so this doesnt need to be scripted
Logged

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 4657
Re: camera user controlls
« Reply #1 on: October 29, 2009, 03:21:08 AM »
Thanx laynedel , but the problem with this approach is that EventOnInput only provides one single control. You would be more to actually control the camera as you indicated. It would not be possible to bind controls to specific camera actions  :-\

laynedel

  • Full Member
  • ***
  • Posts: 125
  • ima create life ok: DSFSASAfxdsgcxdshbfxfbdfcvFGD.
    • WWW
Re: camera user controlls
« Reply #2 on: November 01, 2009, 02:56:07 PM »
hmm... i see.  just one thing . could you add some internal parameters like pan ,pitch,camera subject,etc.
Logged

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 4657
Re: camera user controlls
« Reply #3 on: November 01, 2009, 03:54:28 PM »
The internal parameters would be tricky to use to control camera movements. How should they work exactly? How to specify pan direction for example? I don't think it would be easier than controlling the camera directly by using iObjectOrientation/Location functions in a script (currently possible).

laynedel

  • Full Member
  • ***
  • Posts: 125
  • ima create life ok: DSFSASAfxdsgcxdshbfxfbdfcvFGD.
    • WWW
Re: camera user controlls
« Reply #4 on: November 04, 2009, 09:57:39 AM »
i mean like for example:
OUT_1 =left rotation
OUT_2 = right rotation
OUT_3 = up rotation
OUT_4 = down rotation

Code: [Select]
  //if this feature was available this would make the camera rotate as i hold down the key set in the EventOnInput object
       if (IN_22 == 1)    // IN_22 would be an eventoninput object
       OUT_1 = 1;
       else
      OUT_1 = 0;
Logged

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 4657
Re: camera user controlls
« Reply #5 on: November 04, 2009, 10:35:01 AM »
Please note you can achieve the same result by using exisiting script functions.

For example you can use the iQuaternionFromEulerAngles() function to build the desired orientation. You can then set it to the camera by using iObjectOrientationSet().

laynedel

  • Full Member
  • ***
  • Posts: 125
  • ima create life ok: DSFSASAfxdsgcxdshbfxfbdfcvFGD.
    • WWW
Re: camera user controlls
« Reply #6 on: November 04, 2009, 06:06:28 PM »
yeah but it would make it a whole lot easier for begginner scripters like me. i'm not great with complex stuff. the stuff i don't get properly is the commands starting with i.
Logged

electron_theory

  • 3D Rad Guru
  • *****
  • Posts: 728
    • WWW
Re: camera user controlls
« Reply #7 on: November 04, 2009, 06:17:29 PM »
Laynedal-   there Is a pretty robust camera control script here-http://www.3drad.com/forum/index.php?topic=951.0

Not sure if this is what you are looking for, but it should be a good start for you...

laynedel

  • Full Member
  • ***
  • Posts: 125
  • ima create life ok: DSFSASAfxdsgcxdshbfxfbdfcvFGD.
    • WWW
Re: camera user controlls
« Reply #8 on: November 05, 2009, 09:43:09 AM »
yeah i see. but that is missing one thing that i suggested. ever had trouble because you want to have a camera connected to  one object like a joint and looking at anither. this is the idea ,but thanks anyway
Logged

electron_theory

  • 3D Rad Guru
  • *****
  • Posts: 728
    • WWW
Re: camera user controlls
« Reply #9 on: November 05, 2009, 02:17:42 PM »
that is actually a different topic altogether i think... ???