Author Topic: ADDING ZOOM TO BGS - how to get the correct size of a bg  (Read 3333 times)

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
ADDING ZOOM TO BGS - how to get the correct size of a bg
« on: May 17, 2014, 03:50:01 PM »
Well,
it's in my mind for some times: adding correct zoomout(s)...  ;D

According to this: http://mugenguild.com/forum/topics/converting-mugen-1-0-mugen-1-1-118564.0.html

Quote
[mcode][Camera]
boundhigh = -544
boundlow = 0
boundleft = -192
boundright = 192[/mcode]
For 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:
[mcode][Camera]
boundhigh = -256
boundlow = 0
boundleft = 0
boundright = 0
zoomin = 1
zoomout = 0.625[/mcode]
To 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

this explanation seems to be perfect & after the tests i've made i should be right but i prefer to be sure, so here are my questions:
- for getting the correct dimensions of the bg, i must add for a HR one: 640+(boundleft&right values)*480+(boundhigh&down values)?
then get the zoom factor that i place in a new line "zoomout=(640/640+(boundleft&right values))"
then put boundleft,right&down to 0
then put boundhigh to -(480+(boundhigh&down values))-(480/(640/640+(boundleft&right values))

is all that correct?

nb: tested with HR / LR - 1.0 / win / dos bgs... it seems that it works

subquestion: wouldn't it be possible to create a tool generating automatically a new def "[defname_1.1.def]" with these ???
« Last Edit: May 17, 2014, 04:07:30 PM by electrocaid »

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #1 on: May 18, 2014, 09:31:17 PM »
today was the official 1.1 day...  ::)











more in the shots' onedrive folder...  :)

i still don't have the perfect formula for coding but some results are... fun...

Colosse

  • Full Member
  • ***
  • Posts: 237
  • Sorry credit, I can't give you Link
    • View Profile
    • my blog
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #2 on: May 19, 2014, 07:53:24 AM »
la tour eiffel et le sphynx  sont vraiment énorme! j'ai bien kiffé lol
tu devrais rendre ces stages accessibles...  ::)
Mugen is full of true warriors which are striving for me.

https://www.youtube.com/user/Colosse77

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #3 on: May 19, 2014, 03:41:06 PM »
hehehehe
t'sais bien: plus on attendra, pire la release sera
ce que l'on ne voit pas sur ces shots, c'est la qualité sans le zoom: les deux miens sont en HD.... autrement dit, la moins belle image possible est celle que tu as sur les shots puisque c'est celle qui est compressée pour un affichage 1280*960  ;D

t'as pas été voir les autres exemples?

« Last Edit: May 19, 2014, 04:12:46 PM by electrocaid »

Colosse

  • Full Member
  • ***
  • Posts: 237
  • Sorry credit, I can't give you Link
    • View Profile
    • my blog
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #4 on: May 19, 2014, 07:19:42 PM »
pour sûr ça envoie du lourd tout ça... et en même temps je suis même pas sûr que mon mugen déjà bien garni puisse se le permettre, en terme de temps de chargement qui sont djà assez long (même si ça me le fait surtout avec des stages animés).
Mugen is full of true warriors which are striving for me.

https://www.youtube.com/user/Colosse77

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #5 on: May 19, 2014, 07:37:12 PM »
... c'est clair que les plus gros sont... voraces  ::) (je n'emploie que la méthode jigsaw)...

mais bon, sur les 1xxx qui sortiront, une très grande partie sera parfaitement jouable avec n'importe quel pc

et puis d'ici à ce qu'il soient sortis, tu auras changé de pc  :P ;)

Colosse

  • Full Member
  • ***
  • Posts: 237
  • Sorry credit, I can't give you Link
    • View Profile
    • my blog
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #6 on: May 19, 2014, 07:47:42 PM »
Hum. Tu serais pas du genre "private-iseur" plutôt que réalisateur au public toi? xD
Mugen is full of true warriors which are striving for me.

https://www.youtube.com/user/Colosse77

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #7 on: May 19, 2014, 08:52:20 PM »
du tout du tout

mais la sortie se fera en grandes pompes... obligé

et ça, je ne peux pas le faire seul...  ::)

mais c'est comme pour tout ce que je fais... ça va se faire... ;)

tiens, pour toi qu'aimes les sphynx: https://onedrive.live.com/redir?resid=23B85F826E067424!13831&authkey=!AH12hLbcPwY_n9g&v=3&ithint=photo%2c.png
« Last Edit: May 19, 2014, 09:20:31 PM by electrocaid »

Colosse

  • Full Member
  • ***
  • Posts: 237
  • Sorry credit, I can't give you Link
    • View Profile
    • my blog
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #8 on: May 20, 2014, 07:59:50 AM »
je vois...

le stage du sphynx me paraît un chouya obscure, mais il n'en reste pas moins terrible lol
Mugen is full of true warriors which are striving for me.

https://www.youtube.com/user/Colosse77

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #9 on: May 20, 2014, 04:52:16 PM »
je fais avec ce que je trouve, lol

et puis faut bien te dire que c'est UN stage sur 1.xxx...

celui qui n'aime pas pourra toujours essayer d'en trouver un autre plus à son goût  ;D

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #10 on: May 20, 2014, 07:21:54 PM »
allez, puisque t'as l'air d'aimer, j'ai ajouté des shots de mes derniers stages en date sur onedrive

voici le meilleur du zoom pour moi:





pas moche hein?

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #11 on: May 20, 2014, 08:24:16 PM »
... tu m'as donné envie d'en créer ce soir

c'est la première fois que je les entame avec l'intention de mettre un zoom dessus

résultats très probants je pense...

HD


HR


nb: tous mes stages sont uniquement réalisés avec l'aide de ms paint...
« Last Edit: May 20, 2014, 10:29:34 PM by electrocaid »

Colosse

  • Full Member
  • ***
  • Posts: 237
  • Sorry credit, I can't give you Link
    • View Profile
    • my blog
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #12 on: May 21, 2014, 11:04:14 AM »
ça me laisse sans voix  8), notamment celui en HD

... au passage je connaissais pas cette version de Birdie à poil... mdr
« Last Edit: May 21, 2014, 11:14:29 AM by Colosse »
Mugen is full of true warriors which are striving for me.

https://www.youtube.com/user/Colosse77

electrocaid

  • Moderator
  • Hero Member
  • *****
  • Posts: 834
  • mugen mugen mugen mugen mugeeeeeen
    • View Profile
Re: ADDING ZOOM TO BGS - how to get the correct size of a bg
« Reply #13 on: May 21, 2014, 05:25:53 PM »
ça me laisse sans voix  8), notamment celui en HD

... au passage je connaissais pas cette version de Birdie à poil... mdr

merci merci

nb: sur les 4 derniers shots, seul le tout dernier est en HR (les trois autres sont bien entendu en HD)

pour birdie, c'était pas voulu: je ne fais même plus gaffe

 

SMF spam blocked by CleanTalk