Multiple Cameras

Discuss the future of Warzone 2100 with us.
cajadas
Trained
Trained
Posts: 56
Joined: 01 Mar 2011, 17:33

Multiple Cameras

Post by cajadas »

Hi,

i am trying to apply at least 2 cameras to the map (splitting the window in half) so that the player can monitor what's happening in two locations without using the minimap. I've researched warcam.ccp but i havent found a definition of the camera object. Although there are references to a trackingCamera, i don't think thats what i want.

I've also researched display.cpp but i guess that file is used for other purposes. I would appreciate any help on the matter.

Thanks.
Safety0ff
Trained
Trained
Posts: 397
Joined: 18 Jul 2009, 23:23

Re: Multiple Cameras

Post by Safety0ff »

look in src/display3d.* and lib/ivis_opengl/*

The code isn't very flexible, and since it wasn't designed for that you're guaranteed to run into some nasty thorns.

If you do manage to get it going, please share your findings.