Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Change the camera FOV  (Read 9548 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Change the camera FOV
« on: December 04, 2008, 02:07:35 PM »

Can we have script to change the FOV of a camera, used in a 3d hidden geometry file, when in use in-game.

It would be helpful to be able to specify the camera by its name, and then set the FOV value. E.g. Scene.SetCameraFOV("camera-1",95); and to also 'get' the cameras existing FOV state, e.g. Scene.GetCameraFOV("camera-1");

Thanks
Logged

sychron

  • Wanderer zwischen den Welten
  • Global Moderator
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 223
  • There is no spoon. The enemy gate is down!
    • View Profile
Re: Change the camera FOV
« Reply #1 on: December 04, 2008, 02:46:16 PM »

I don't think that's possible, for wintermute uses pre-rendered backgrounds, which are not seen through the camera. So changing the FOV cannot change the background if the scene, therefore you should consider switching scenes instead of changing the FOV.
Logged
... delete the inner sleep ...

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Change the camera FOV
« Reply #2 on: December 04, 2008, 03:18:10 PM »

I am not using a 2d Background, where I wish to change the FOV of the camera.

Because the FOV can be changed in the Scene Editor, can those controls be created in a scriptable version?
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Change the camera FOV
« Reply #3 on: December 04, 2008, 07:26:36 PM »

I am not using a 2d Background, where I wish to change the FOV of the camera.

Because the FOV can be changed in the Scene Editor, can those controls be created in a scriptable version?


Wintermute is not able to use real 3D. So if you would change the FOV of the camera, the scene would look exactly the same, because it does not change. The FOV and the 3ds geometry File is just for the purpose to let the engine know where the char can walk, which areas are blocked, and where shadows should be cast. Oh and Lights of course.
Logged

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Change the camera FOV
« Reply #4 on: December 08, 2008, 02:02:28 PM »

Hello. Yes, I know Wintermute can not use 'real 3D', but I still wish to change the Camera FOV on the fly through scripts, as I am not limited by using a matching 2d background art in such scenes.
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Change the camera FOV
« Reply #5 on: December 08, 2008, 02:43:30 PM »

you can fake it through different cameras in the same place and switching them in the real time, no?
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Change the camera FOV
« Reply #6 on: December 08, 2008, 02:58:05 PM »

I thought of trying that, but because I wish to create the effect of the Camera FOV transitioning, I would need to add loads of cameras on the same spot, far to many too repeat for various scenes.

If I were going from 40 to 90 FOV, I'd need to change through 50 cameras. Annoyingly in the Scene Editor, (with my actors loaded into view) I can just grab and slide the FOV and see the effect I'm want to use, live!
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Change the camera FOV
« Reply #7 on: December 08, 2008, 03:56:40 PM »

What exactly do you want to get as a result? If you slide the FOV in the SceneEditor, the background stays the same...Why would you want to use that? Just curious.
Logged
 

Page created in 0.039 seconds with 19 queries.