News:

MFG's Character of the Month: September 2026 Voting

Main Menu

MUGEN 1.1 Calculating Zoomout and Camera Bounds

Started by 3djake, May 30, 2015, 08:11:04 AM

Previous topic - Next topic

3djake

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

beterhans

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.