Page 1 of 1

[Original] SMB3 Rainbow Road Tileset

Posted: Mon Sep 19, 2022 5:12 pm
by AirShip
Super Mario Sunshine Original Soundtrack [FLAC]:
Spoiler: show
Image

[addedum]
The background of this tileset has a strange problem, as explained by enjl:
Machines with lower VRAM might not be able to properly display png files with more height or width than 8192 pixels.
So if you have a machine like that, it might just miraculously work with 8 frames if your PC internally cuts off the last frame and leaves a 8192 pixels tall image in memory.
if the background is not working properly, edit the background2-1.ini settings, increase the number of frames from 8 to 9.


Image

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Thu Sep 22, 2022 10:29 pm
by Alagirez
what happened with the background?: show
Image
Anyways, the tileset looks fantastic as usual.

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Thu Sep 22, 2022 11:42 pm
by AirShip
Alagirez wrote:
Thu Sep 22, 2022 10:29 pm
what happened with the background?: show
Image
Anyways, the tileset looks fantastic as usual.
hmm, that's strange, I've checked the files, and they work normally.
In any case, here is the background2-1.txt, should solve the problem, I believe.

Code: Select all

[Background]
priority=-100
img="b_skybox.png"
frames=8
repeatX=true
parallaxX=0.005
parallaxY=0.005
alignX=LEFT
alignY=BOTTOM

[Earth]
priority=-99.9
img="b_earth.png"
parallaxX=0.04
parallaxY=0.005
alignX=LEFT
alignY=BOTTOM
repeatX=true

[Clouds]
priority=-99.6
img="b_clouds.png"
repeatX=true
parallaxX=0.3
parallaxY=0.3
speedX=-0.7
alignX=LEFT
alignY=BOTTOM
y=-500

[Moon]
priority=-99.8
img="b_moon.png"
parallaxX=0.01
parallaxY=0.01
alignX=LEFT
alignY=BOTTOM
y=-450
x=500

[Rainbow Stars]
priority=-99.9
img="b_stars.png"
repeatX=true
parallaxX=0.1
parallaxY=0.1
speedX=-0.2
alignX=LEFT
alignY=BOTTOM
y=-150

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 9:33 am
by Marioman2007
All of the new tilesets and remakes you are doing are so amazing!!
Keep up the good work!

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 9:52 am
by Alagirez
AirShip wrote:
Thu Sep 22, 2022 11:42 pm

In any case, here is the background2-1.txt, should solve the problem, I believe.

Code: Select all

[Background]
priority=-100
img="b_skybox.png"
frames=8
repeatX=true
parallaxX=0.005
parallaxY=0.005
alignX=LEFT
alignY=BOTTOM

[Earth]
priority=-99.9
img="b_earth.png"
parallaxX=0.04
parallaxY=0.005
alignX=LEFT
alignY=BOTTOM
repeatX=true

[Clouds]
priority=-99.6
img="b_clouds.png"
repeatX=true
parallaxX=0.3
parallaxY=0.3
speedX=-0.7
alignX=LEFT
alignY=BOTTOM
y=-500

[Moon]
priority=-99.8
img="b_moon.png"
parallaxX=0.01
parallaxY=0.01
alignX=LEFT
alignY=BOTTOM
y=-450
x=500

[Rainbow Stars]
priority=-99.9
img="b_stars.png"
repeatX=true
parallaxX=0.1
parallaxY=0.1
speedX=-0.2
alignX=LEFT
alignY=BOTTOM
y=-150
...the background problem still happens after I copy-pasted the code. No Idea why

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 11:46 am
by Marioman2007
It's working fine for me. Is your smbx2 version up to date?
Spoiler: show
Image

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 12:51 pm
by deice
just to test i downloaded it myself and also had the same issue with the background. i'm frankly not quite sure how it was working for anyone by default?
"b_skybox.png" has a height of 9216, divided by 8 (the amount of frames) gives a height of 1152 for each frame.

comparing the frames horizontally with a height of 1152 results in the following visible misalignment:
Spoiler: show
Image
which is why the strange scrolling effect is present.
changing the amount of frames to 9, which results in a frame height of 1024, fixed the issue on my end.

the download and the code pasted in this thread both have the frame count set to 8 which should by all means not display correctly, so i'm not sure what sorcery is at work here for the people who have no issues with it out of the box.

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 9:00 pm
by Marioman2007
I again tested it, this time setting the frame to 9 and uh this happened:
Spoiler: show
Image

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 10:27 pm
by Enjl
Setting frames to 9 does appear to be the solution. However:
Machines with lower VRAM might not be able to properly display png files with more height or width than 8192 pixels.
So if you have a machine like that, it might just miraculously work with 8 frames if your PC internally cuts off the last frame and leaves a 8192 pixels tall image in memory.

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Fri Sep 23, 2022 10:59 pm
by AirShip
This is really...Unexpected.
I'll add an addendum to the main post about the case, thanks to everyone for alerting me and helping to resolve the issue!

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Sat Sep 24, 2022 12:06 am
by Marioman2007
Enjl wrote:
Fri Sep 23, 2022 10:27 pm
Setting frames to 9 does appear to be the solution. However:
Machines with lower VRAM might not be able to properly display png files with more height or width than 8192 pixels.
So if you have a machine like that, it might just miraculously work with 8 frames if your PC internally cuts off the last frame and leaves a 8192 pixels tall image in memory.
so I guess the best solution would be manually cut the image to 8192 pixels and set frames to 8, to have compatibility with all the PCs.

as I've shown before:
Spoiler: show
Image
It still looks good with the last frame cut-off.

Re: [Original] SMB3 Rainbow Road Tileset

Posted: Sat Sep 24, 2022 12:11 am
by Enjl
Marioman2007 wrote:
Sat Sep 24, 2022 12:06 am
Enjl wrote:
Fri Sep 23, 2022 10:27 pm
Setting frames to 9 does appear to be the solution. However:
Machines with lower VRAM might not be able to properly display png files with more height or width than 8192 pixels.
So if you have a machine like that, it might just miraculously work with 8 frames if your PC internally cuts off the last frame and leaves a 8192 pixels tall image in memory.
so I guess the best solution would be manually cut the image to 8192 pixels and set frames to 8, to have compatibility with all the PCs.

as I've shown before:
Spoiler: show
Image
It still looks good with the last frame cut-off.
Or the skybox could be split into two parallax layers and images: One for the upper half, and one for the lower half. Rendered at the same depth with the same alignment.