Antialiased vector graphics in LiveCode 6.5.1

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Antialiased vector graphics in LiveCode 6.5.1

Post by capellan » Wed Jan 15, 2014 5:28 am

Hi All,

Seems like there is a bug in LiveCode 6.5.1
with the property antialiased for vector graphics.
When SVGL set the antialiased of every created
polygon graphic, this graphic stays empty even
when the same script have set their fill.
The only way in which these graphics could show
their fills is setting their antialiased to false...

Look this image:
https://dl.dropboxusercontent.com/u/383 ... _error.jpg

And test for yourself:
http://livecodeshare.runrev.com/stack/112/SVGL

(When you open the Stack SVGL, click the button "Draw"
in the stack named "SVGL *" to draw the Tiger.
In the image posted this button is behind the stack
named "Import *")

Notice, this error does NOT appears with
graphics created with IDE tools, only
with graphics created in SVGL script...

Why this happens?
Does exists a workaround?

Thanks in advance!

Al

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Antialiased vector graphics in LiveCode 6.5.1

Post by capellan » Wed Jan 15, 2014 6:19 am

The property fillRule [evenodd - nonzero - empty] is somehow related to this bug.

After importing some graphics using EpsImport v05C
http://andregarzia.on-rev.com/alejandro ... t_V05C.zip
noticed that I could set or unset the antialiased properties in
imported graphics, without affecting their fill, but...
when I set the fillRule graphic property to evenodd or nonzero
then the fill of antialiased graphic dissapears.

If I set the antialiased to false, the fill is visible,
If I set the fillRule to empty, the fill is visible and
could change the antialised without problems.

By the way, if you need to import some vector graphics from
illustrator files version 7 or less, here is nice tip that could help you,
when you need to scale these vector graphics inside a LiveCode stack.

http://andregarzia.on-rev.com/alejandro ... ents03.jpg

But these questions still are unresolved:

Why does this happens? Does exists another workaround, besides
NEVER set the fillRule of vector graphics?

Al

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Re: Antialiased vector graphics in LiveCode 6.5.1

Post by BvG » Thu Jan 16, 2014 5:12 pm

i suggest you enter this as a bug report, as it's probably a problem with the new graphic engine that they jsut introduced, changes are high that they actually fix it.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Antialiased vector graphics in LiveCode 6.5.1

Post by capellan » Fri Jan 24, 2014 4:52 am

Solved in LiveCode 6.5.2 rc1! 8)

RobertC
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Sun Feb 04, 2007 3:43 pm

Re: Antialiased vector graphics in LiveCode 6.5.1

Post by RobertC » Thu Sep 11, 2014 11:40 am

Same bug exists in 7.0.
Plus: if you save as stand-alone, the antialiasing is set to false for all graphics that have a fillrule set.

I use the fillrule to get "holes" in graphics. In my particular case I solved the problem with a few lines of code in a preopenstack handler:

repeat with i=1 to the number of graphics
set the antialiased of graphic i to true
end repeat

But it is of course not a solution. I'll have a look to see if it has been reported properly (it certainly has not been fixed)
The Old Rant Robert.

Post Reply

Return to “Multimedia”