Page 1 of 2

Tiled Background

Posted: Sat Jul 26, 2014 9:02 am
by tulamide
Another simple convenience graphics module. Tiled Background automatically repeats a bitmap as often as needed to fill the front panel. It is best suited for seamless tilable graphics, as the images show.

tiledbackground.png
tiledbackground.png (396.35 KiB) Viewed 28357 times

tiledbackground2.png
tiledbackground2.png (65.72 KiB) Viewed 28357 times


r1:
    fixed an issue with a cpu hog caused by 0x0 bitmaps.
r2:
    fixed an issue with misaligned non-square tiles.
    added a wireless input connector to mgui.

Re: Tiled Background

Posted: Sat Jul 26, 2014 9:11 am
by RJHollins
now that is cool ! Will check this out.

THX 8-)

Re: Tiled Background

Posted: Sat Jul 26, 2014 10:06 am
by Nubeat7
you can do this also with ruby using the TextureBrush, here is an example

Re: Tiled Background

Posted: Sat Jul 26, 2014 11:20 am
by tulamide
RJHollins wrote:now that is cool ! Will check this out.

THX 8-)

Hope it helps you :)

Re: Tiled Background

Posted: Sat Jul 26, 2014 11:23 am
by tulamide
Nubeat7 wrote:you can do this also with ruby using the TextureBrush, here is an example

Thank you very much! It's always nice to have green and ruby versions, so everyone can use whatever is preferred. I like this version for its simplicity. Plus, it doesn't have issues with empty bitmaps (which was the reason for the cpu hog in my older version)

Re: Tiled Background

Posted: Sun Jul 27, 2014 11:09 am
by tester
Thanks, I was just thinking about having such fellow on board here. While I agree with the statement that it is good to have both types (ruby and green - you never know what may be useful at the time) under your hand, I also prefer green one in this case.

Re: Tiled Background

Posted: Wed Aug 20, 2014 10:35 pm
by Perfect Human Interface
Hi, thanks for this. It's very useful.

A couple of things:
-it doesn't seem to tile correctly with non-square tiles
-I can't see it in my plugin's top level (am I being stupid? :? )

Re: Tiled Background

Posted: Wed Aug 20, 2014 10:45 pm
by MyCo
It would be better if you would draw to a bitmap instead of a view. So the tile code only runs inside FS and is purged when you export as EXE/VST. Instead you have an image that was rendered. I've done it that way with my own background generator long time ago:
http://www.synthmaker.co.uk/forum/viewt ... 92&p=82421

Re: Tiled Background

Posted: Thu Aug 21, 2014 12:30 am
by tulamide
Perfect Human Interface wrote:A couple of things:
-it doesn't seem to tile correctly with non-square tiles
-I can't see it in my plugin's top level (am I being stupid? :? )

Thank you for pointing this out to me!
- The second issue is solved very quick. I forgot to add a wireless input to the mgui. Just look inside the module and add it. I will correct this in a new version.
- I will investigate the first issue. But first I have to create a non-square tile :lol: I hope it's not the single precision floats that are causing this (then it's probably only doable with ruby)


MyCo wrote:It would be better if you would draw to a bitmap instead of a view. So the tile code only runs inside FS and is purged when you export as EXE/VST. Instead you have an image that was rendered. I've done it that way with my own background generator long time ago:
http://www.synthmaker.co.uk/forum/viewt ... 92&p=82421

Phew! For a second I thought I did just something already done aeons ago. Luckily they differ. :D

I wasn't sure if doing a bitmap was really meaningful at that stage, because there might be a lot of other elements that also won't change. It would be better then to draw all of them (incl the tiled background) to a bitmap. The smaller the plugin size, the better, I would say.

Re: Tiled Background

Posted: Thu Aug 21, 2014 8:54 am
by JB_AU
Cheers, this makes my interfaces not so plain :)