SynthMaker

bitmap draw bug

Archive · 2009 12 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

MyCo ·

Hi!

No long explanation, see the attachment... the values at the right side show zeros ---> both of them should show "10"

Maik

PS: yes, I'm pissed off...

aliasant ·

Lol 🙂

Go Girl!

sunsynth ·

Hmmm, even without a MGUI and no Front Panel?

oddson ·

You need to use the other size primitive. The Bitmap Size primitive gives those values. The View Size needs to be connected to a View (as an enabled front panel or an MGUI primitive). The View Size should output the size of the connected view and not the size of any bitmap content within it.

It think the real issue is that this is one of those areas in SynthMaker with the directionality of program data become confusing. Defined graphic components on the right hand side of the Bitmap Create primitive seem like an input but arrive on the output side. Normally V connectors only appear as output on the right-hand-side when the primitive is passing V content from one side to the other with or without transformation (as with the Rotate primitive). Bitmap Create and Draw to Bitmap are the only exceptions.

(FYI to noobs - the Bitmap Create primitive is used to take graphic content generated within S|M and store it as a bitmap that can then be used as output within the program or to save as file output.)

MyCo ·

As I understand S|M, every View has it's parameters which are width and height. Each front panel generates this values by its size. So a component that generates a View has to pass width and height with it for following components. And this particular primitive doesn't do this. It's nearly the same bug as yu can see here: selector bug

The trigger (which is part of the green data type) is not passing through a primitive.

@oddson: what other "size" primitive? None of the View-Size primitives work, because in the generated View are no parameters stored (that's the bug).

sunsynth ·

you overlooked:

The Bitmap Size primitive gives those values

which outputs 80 x 80...

Tzarls ·

I don´t get this..... why should it output 10 * 10, when you are specifying a size of 80*80? If you use a Bitmap size, it outputs 80*80, which are the right values. And the V on the right side of the Bitmap Create primitive is actually an input, I think.

And maybe I´m wrong, but I think the only way to create a view is with the GUI primitive. The V connectors on the other primitives are to attach them to an existing view, not for creating views.

MyCo ·

first, when I work "on" the view I have the grid size set on the "bitmap create", it can be different and I can't use a lot of the draw primitves without recalculating EVERY size-value. I can't use "grid to pixel" or "pixel to grid" at all.

second, when I work on a view, I don't understand why I have to use variables from a bitmap at all. I don't have to use external "height" or "width" input when I draw normaly on a View, so why do I have to do it here? --> inconsistency and I still believe that's just a bug (missing parameter assignment)

third, 80x80 is in pixel, Views operate in grid size, the grid size is by default 8 pixel per grid square but you can change it when you use "bitmap create"

oddson ·

I guess it could be considered a missing feature of the View Size primitive that it won't give the obvious output for the two primitives that generate V outputs without views being created... but personally I wouldn't have expected them too (and yes I forgot about pixel versus grid units -- something I was once quite careful about while doing the primitive survey).

mwvdlee ·

From: Make "Bitmap Create" have an area

I agree with the poster that the width and height should be set for views generated by Bitmap Create.

Thing is; why would it be so difficult to include that information for those people who want it? I assume it's already reserved in the View data structure internally but simply not set.

Besides, do modules like Rotate and Smooth work on view generated by Bitmap Create? If so, then the information must already be in there somewhere, if not then... well... shouldn't they?

Acrobat ·

MyCo wrote: So a component that generates a View has to pass width and height with it for following components. And this particular primitive doesn't do this. It's nearly the same bug as yu can see here:

Probably the reason why it doesn't work like others is because it is NOT like others. It's just a bitmap primitive against vector primitives. 🙂

mwvdlee ·

Acrobat wrote: Probably the reason why it doesn't work like others is because it is NOT like others. It's just a bitmap primitive against vector primitives. 🙂

So basically its exactly like the others. The only difference between the screen and a bitmap is that... well... technically there really is no significant difference.

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.