Converting from Mugen 1.0 to Mugen 1.1

Ver el tema anterior Ver el tema siguiente Ir abajo

Converting from Mugen 1.0 to Mugen 1.1

Mensaje por mey_z el Miér Ago 18, 2010 4:02 pm

I realize not many people have access to the alpha version of 1.1 at this time but nevertheless this thread should save people a lot of headache when the public release rolls around.

Stage Zoom and Camera Bounds
Stages now support the zoomin and zoomout parameters which determine the minimum and maximum amount of the stage that can be shown at once. Zoomin should usually be kept at the default value of 1.0 while zoomout will be a value less than one and greater than 0. The maximum zoomout dimensions are also automatically factored into the camera bounds, so there is some math involved in order to keep your stages in bounds.
Code (Mugen): [Select]
[Camera]
boundhigh = -544
boundlow = 0
boundleft = -192
boundright = 192For a high resolution stage (640x480) of size 1024x1024, these are the camera settings you'd expect to have. However, if we allow the stage to zoom out to the entire stage width we would see these settings instead:
Code (Mugen): [Select]
[Camera]
boundhigh = -256
boundlow = 0
boundleft = 0
boundright = 0
zoomin = 1
zoomout = 0.625To get our scale factor, we divide our screen width by the stage's total width:
640/1024 = 0.625
Then to adjust the boundhigh, we subtract the stage height by the maximum visible stage height
1024-(480/0.625) = 256

If we want to set an arbitrary zoom factor rather than one that goes the whole width of the stage, we can use this method instead:
Code (Mugen): [Select]
[Camera]
boundhigh = -424
boundlow = 0
boundleft = -112
boundright = 112
zoomin = 1
zoomout = 0.81024-(640/0.8 ) = 224 - Horizontal pixels not visible at any given time
224/2 = 112 - Camera left and right bounds
1024-(480/0.8 ) = 424 - Vertical pixels not visible at any given time
Again this is with a 1024x1024 stage.

I will post more when I get around to it.
-------------------------------------------------------------------------------------------------------------------


algien save si esto si se puede saludos!!!





http://mugenguild.com/forumx/index.php?topic=118564.0 wrtnwrnr

_________________

mey_z
Moderador
Moderador

Sagitario Dragón
Cantidad de envíos : 745
Localización : INFRAMUNDO
Fecha de inscripción : 11/09/2008

Ver perfil de usuario

Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.