Knob that transform a bitmap layer

Hints, tips and discussion about graphics and user interface elements

Moderators: electrogear, exonerate

Knob that transform a bitmap layer

Postby Chaoslala on Mon Apr 02, 2012 2:36 pm

This is just an idea i have.
A gui composed by a unique picture.
The knob just make rotate an area in this picture.
The sliders make move an area..

So we could make complex graphic gui and "paint" every control like we want..
Chaoslala
essemer
 
Posts: 31
Joined: Sat Jan 21, 2012 2:24 pm

Re: Knob that transform a bitmap layer

Postby trogluddite on Mon Apr 02, 2012 4:37 pm

I see no reason why not.
There would be a slight CPU increase compared to the usual "animation frames" method - just because rotating graphics takes a bit more working out.
But on the other hand, I'm quite a fan of "unique" controls for each purpose - somehow symbols/colours etc. work better for me to find the right control than identical looking knobs with text to read. But with "strip" animations that means lots of bitmaps to keep organised. Editing just one picture that shows the whole GUI sounds really attractive.
The only other problem I can see is that SM can only deal with square/rectangular areas - so controls would need to be surrounded by areas of flat colour (no texture/gradient) - otherwise the square edges of the rotated areas might look a bit messy (or maybe psychedelic and cool!).
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3032
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Knob that transform a bitmap layer

Postby trogluddite on Mon Apr 02, 2012 6:19 pm

Hi again,
Hope you don't mind, but I used my moderator "superpowers" to move your thread into the Graphics Forum - it's not possible to upload attachments in the "Ideas and Requests" forum (that forum is really for requests to the program developers - but we're not sure if they really read it!). Your idea really caught my eye, so I thought it would be nice to put it somewhere that people can share some crazy ideas!

Here's something very quick and silly that I knocked up, inspired by your post - it's a very challenging game called "Find the Knobs" (promise, no cheating by looking for the "little hand" cursor!!!!)
Find the Knobs Game.osm
(37.54 KiB) Downloaded 254 times

The "Invisible knobs" trick will work with any bitmap big enough to fill the panel - everything shares a single bitmap.
As well as showing the "square areas" problem quite well, it also shows another little hassle - when you move controls around the panel (when editing), they don't have any way to know where they are! - hence the "X" and "Y" inputs to the knob modules (you can read those values when a GUI is selected for editing a front panel - hint: click on the numbers to change from grids to pixels).
But neither of those problems are huge - so long as controls have a bit of "space" around them, the "square areas" need not be a problem - and the X,Y thing only takes a few seconds to sort out (if the front panel is all one bitmap, you won't be moving them too often anyway).
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3032
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Knob that transform a bitmap layer

Postby Chaoslala on Tue Apr 03, 2012 5:07 pm

I love it !
Thanks ! :)
The circle limitation could maybe be fixed with another bitmap layer
with transparancy.
Chaoslala
essemer
 
Posts: 31
Joined: Sat Jan 21, 2012 2:24 pm

Re: Knob that transform a bitmap layer

Postby trogluddite on Tue Apr 03, 2012 5:32 pm

Glad you like it! :)
Chaoslala wrote:another bitmap layer with transparancy.

Yes, I've been thinking about this myself. It is possible to take small sections of a bitmap, or even individual pixels, and create a new bitmap from them using SM components. So a circular area could be "scanned" into a new knob bitmap with transparent 'edges'. Certainly, simple shapes like circles, triangles could be done.
Doing this uses a lot of CPU power, but, the moving parts only need "creating" once, when a new "master" bitmap is loaded - so it need not be a problem. The small sections will be remembered inside the schematic, and don't need re-making even when saving/loading the plugin.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3032
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: Knob that transform a bitmap layer

Postby Chaoslala on Sat Apr 07, 2012 2:37 pm

I combined it with an another module.
we can make it move with key.
Press G to go left, j is right and y = jump.
Could be a way to easily place the knob.
Attachments
Find the Knobs Gamers.osm
(275.25 KiB) Downloaded 177 times
Chaoslala
essemer
 
Posts: 31
Joined: Sat Jan 21, 2012 2:24 pm

Re: Knob that transform a bitmap layer

Postby philter5 on Mon Apr 30, 2012 5:35 pm

...great schematic trog , when you load the right pic´s in it you can even create some nice 3d looking shapes with it
(birds eye view by rotating some sides 45 degrees).
really cool stuff :D
---Yes, a piece of software CAN be your best friend---
User avatar
philter5
smaniac
 
Posts: 1495
Joined: Thu Jan 04, 2007 7:52 pm
Location: Germany


Return to Graphics

Who is online

Users browsing this forum: No registered users and 1 guest