SynthMaker

WORKAROUND: part of boarder missing [0.9.4g]

Archive · 2005 10 old posts

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

infuzion ·

Seems that the right & bottom sides are short 1px of the boarder. Noticed in _e, still happens in _g. Likely related to my bug (minor) residual objects after moving getting fixed... sorry :/

edit: Workaround: see below

malc ·

Hi infuzion,

This isn't happening because of the bug that we fixed for you before but it is along a similar line.

The reason you're seeing this is a combination of the way that graphics are drawn and the fact that anything you draw inside a module is clipped to it's border.

When you draw a rectangle, the coordinates define the centre of the line that forms the border of the rectangle. If you have a thick line as the border then this will overlap inside and outside of the area defined.

Have a look at the picture below. The rectangle is drawn 1 square in from the border. You can see that if this was hard up against the border half of the rectangle outline would be chopped off on all sides.

Nu Audio Science ·

I get this problem all the time but i think it is because i am using the size of the window to determine the size of my borders.

infuzion ·

Nu Audio Science wrote: I get this problem all the time but i think it is because i am using the size of the window to determine the size of my borders.

So this means we have to use an Data:Int with a -0.1 connected to the w & h in Float to Area everytime we need a boarder? IMHO the Rectangle should include the -0.1...

malc ·

You just need to be aware of the way that shapes are drawn. If you have a rectangle defined by the area (x,y,w,h) = (1,1,4,4) and the thickness of your pen is 0.5 then the actual area the rectangle will cover is (0.75,0.75,4.5,4.5)

We could add components to allow you to change the way the pen is applied. So for example, you could make the pen draw round the interior of the defined rectangle if you wish. That said with antialiasing you may still get some spill over.

Looking at it there may be a small error in the clipping region which makes it clip just a little too small at some zoom levels but everything I've said above still applies even if that is the case.

Tom7777 ·

Would this mess up my GUIs i have made already at the current size? I think it would be best just to add new modules, im not really to happy about changing my workflow and making a load of adjustments each release of SM which is usually the case, to be honest i would rather you just made a load of changes if your going to and then consentrate on any bugs caused by this. Sorry if i sound moody or whatever by making posts like this 🙂

skOre ·

Hmm, guess its just that its still not version 1.0 time, so things will continue to change...

infuzion ·

malc wrote: We could add components to allow you to change the way the pen is applied. So for example, you could make the pen draw round the interior of the defined rectangle if you wish.

Seems like this is already the default; to make a inner-border of the view with no clipping do the following: area (x,y,w,h) = (0,0,MGUI_height-0.1,MGUI_width-0.1) pen size doesn't matter; the -0.1 prevents the clipping. http://rapidshare.de/files/3119528/tip0 ... e.osm.html

malc ·

I think it just looks that way infuzion. In your example your pen size is 0.3 but if you zoom in you'll see that it's only about 0.15. This is because half of it is being clipped off.

Your -0.1 solution does get round the error in the clipping region that I mentioned in my last post but it's a bit rough and this is really noticable at higher zoom levels. At normal zoom it works fine though.

infuzion ·

malc wrote: We could add components to allow you to change the way the pen is applied. So for example, you could make the pen draw round the interior of the defined rectangle if you wish. That said with antialiasing you may still get some spill over.

No need: this is easily fixed by a user module. Keep working on the harder stuff! <cracks whip> 😉

http://rapidshare.de/files/3171095/tip0 ... d.osm.html

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.