Welcome, Guest. Please login or register.

Pages: [1]
Print
Author Topic: camera and viewport  (Read 3756 times)
amo-ej1
Community member

Posts: 80


elie@de-brauwer.be
View Profile
« on: November 01, 2009, 06:32:06 PM »

Folks,

While fixing ticket 132 ( http://parpg-trac.cvsdude.com/parpg/ticket/132 ) I made a modification which automatically sets the viewport of a camera to whatever resolution the use is currently using. At this point it was still possible that inside map.xml there is someting like:

Code:
<camera id="main" ref_cell_height="38" ref_cell_width="72" ref_layer_id="ObjectLayer" rotation="45.0" tilt="-60.0" viewport="0,0,1024,768" zoom="1.0" />

If your resolution is higher than 1024,768 this would normally create a view on map in the top left corner of size 1024x768 and pad the what remains with a black border. This patch make use of the full screen width (this is typically what we want) but this results in the viewport parameter in the xml file to be completely ignored.  Just a message here so that people know this. (or can we throw this argument out altogether ? )
Logged
Kaydeth
Community member

Posts: 185



View Profile Email
« Reply #1 on: November 02, 2009, 02:23:32 PM »

Seems to behave fine if you remove the viewport option from the map file. I say we take it out to avoid confusion.
Logged
amo-ej1
Community member

Posts: 80


elie@de-brauwer.be
View Profile
« Reply #2 on: November 03, 2009, 08:42:55 AM »

http://parpg-trac.cvsdude.com/parpg/ticket/145

Done
Logged
Pages: [1]
Print
Jump to: