Random graphic Lines

Post any examples or modules that you want to share here
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Random graphic Lines

Post by tulamide »

Whenever you draw something to a view, you're actually drawing into a bitmap. Once some drawing is finished, the bitmap is shown in the view, further updated by more drawing, etc. It stays in its last state, until something else covers it. At that point the view is instructed, which part to redraw ("clipping") and it clears everything from that part of the bitmap. When you don't draw again after that, it just stays clear (clear = transparent).

This all has nothing to do with Ruby (nor green). It's just how drawing is handled in Windows.
"There lies the dog buried" (German saying translated literally)
User avatar
hardwarehost
Posts: 37
Joined: Wed Jan 12, 2011 4:38 pm
Location: Slovakia

Re: Random graphic Lines

Post by hardwarehost »

...32bit finally
I pushed it to different direction, theres 12 fully controlled rectangles but during the time I experimented too much for freaky effects. Its a fast mash-up. I will work on it further anyway to get something similar of what it was at the beginning.

Random Graph _32hwh 2.fsm
(457.4 KiB) Downloaded 1318 times
User avatar
DaveyBoy
Posts: 131
Joined: Wed May 11, 2016 9:18 pm
Location: Leeds UK

Re: Random graphic Lines

Post by DaveyBoy »

Wow . . . Ive never seen it this high before:

Image

Using the Alpha, I'm impressed :D
User avatar
hardwarehost
Posts: 37
Joined: Wed Jan 12, 2011 4:38 pm
Location: Slovakia

Re: Random graphic Lines

Post by hardwarehost »

You see its 5 times in schematic I wrote its a fast mash up :?:
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Random graphic Lines

Post by Tepeix »

Thanks Tulamide.
From what i see in host it only draw when we ask or when something hide the view or a part.
Strangly when the vst window is moved there's no redraw.
I suppose it redraw the view at refresh but only redraw the bitmap when call.

Interesting Art HarwareHost, i think that the creator of random make it more close that what could more represent something close to his mind.

Maybe there's some module that could reduce tick in this schematic.
I make a random color change that's more simpler. This one could change speed but not
so much.

Also i use a method to produce ticker at different speed in one place then send wirelessly all the ticks.
So a module that need slow tick will not add his own counter to the list.
I also go wireless to send the size or area of the view.

I will someday try a method to add smooth transparency border with png.
For now i experiment with bitmap feedback or smoothing..
Using the create bitmap with less pixels will add some strange blur.
Attachments
GraphicBitmapFeedback.fsm
(32 KiB) Downloaded 1274 times
Tepeix
Posts: 361
Joined: Sat Oct 16, 2021 3:11 pm

Re: Random graphic Lines

Post by Tepeix »

Finally here's a way to make transparent traces.
But we end up redrawing all the view and not only part for a perfect result.
Maybe it's possible to redraw only part, drawing first the bitmap recorded background,
then the trace we want to add.
Image
Attachments
transparentTraceRedraw.fsm
(74.22 KiB) Downloaded 1263 times
User avatar
hardwarehost
Posts: 37
Joined: Wed Jan 12, 2011 4:38 pm
Location: Slovakia

Re: Random graphic Lines

Post by hardwarehost »

Snap 2021-11-28 at 00.38.58.png
Snap 2021-11-28 at 00.38.58.png (13.56 KiB) Viewed 27960 times
I searchd the forum and found the View Cache module by Trog, now it fills all area forever or draw the line from moving object.

added xy "drawing" pad
Random Graph _32hwh 5 still.fsm
(824.8 KiB) Downloaded 1344 times
Soundshaperzkitz
Posts: 6
Joined: Wed Apr 12, 2023 1:36 am

Re: Random graphic Lines

Post by Soundshaperzkitz »

Just curious, how would I drop one of these custom modules into an existing flowstone vst project?

TIA!
Post Reply