YesNoOk
avatar

MUGEN 1.1 Calculating Zoomout and Camera Bounds (Read 15831 times)

Started by 3djake, May 30, 2015, 08:11:04 am
Share this topic:
MUGEN 1.1 Calculating Zoomout and Camera Bounds
#1  May 30, 2015, 08:11:04 am
  • avatar
Hello all,

Here is a video I made demonstrating how to calculate Zoomout and camera bounds
https://www.youtube.com/watch?v=t_0Wzthy8fA

If you are not into videos, here is a brief guide on what I covered.

Get your stage dimensions.
If stageheight or stagewidth < 1024
stageheight = stageheight * 2
stagewidth = stagewidth * 2
else
stageheight = stageheight
stagewidth = stagewidth

if stageheight < stagewidth
zoomout = 480 / stageheight
boundleft and boundright = (stagewidth - (640 / zoomout)) / 4 #boundleft must be a negative value
boundhigh = 0
zoomin = 1
else
zoomout = 640 / stagewidth
boundhigh = stageheight - (480 / zoomout) #boundhigh must be a negative value
boundleft/right = 0


Notes - You may have to use the sprite alignment tool and zoffset to get rid of black area on the top or bottom of the screen.
You may also need to add zoomdelta and play with delta for background sprites.
You should comment out verticalfollow
Last Edit: May 30, 2015, 08:12:48 am by 3djake
Re: MUGEN 1.1 Calculating Zoomout and Camera Bounds
#2  November 13, 2016, 02:47:30 pm
  • ****
Great tutorial!

can you sure me how you run mugen 1.1 under ubuntu?

I can get my Mugen 1.1 to work under wine with OpenGL settings.
only directx mode works.