Futile
Futile copied to clipboard
Implement basic line+shape drawing
Some nice references here: http://www.goodboydigital.com/pixi-webgl-primitives/
JPSarda already made a line-drawer I can use as a reference too: https://gist.github.com/jpsarda/4573831
Also: http://artgrammer.blogspot.ca/2011/05/drawing-nearly-perfect-2d-line-segments.html http://artgrammer.blogspot.co.uk/2011/07/drawing-polylines-by-tessellation.html
We're using SPSarda's stuff and it seems to work great, just FYI.
Ian Marsh
On Jun 24, 2013, at 7:05 AM, Matt Rix [email protected] wrote:
Some nice references here: http://www.goodboydigital.com/pixi-webgl-primitives/
JPSarda already made a line-drawer I can use as a reference too: https://gist.github.com/jpsarda/4573831
— Reply to this email directly or view it on GitHub.
Awesome, good to know! Yeah I figure I'll take what he did there with the line drawer, and then add the ability to make shapes with it as well.
I also have been trying SPSarda's draw stuff on top of Futile and works well. However, I then tried to build a basic SVG path reader on top of it and quickly hit the "A mesh may not have more than 65000 vertices." Unity error. Am not sure how to deal with multiple meshes in Futile.
Got past the mesh error by applying an SVG fill to each 'shape' as a WTPolygonSprite ( see http://wtrebella.com/polygon-sprites-with-futile/) before moving onto the next SVG path and SPSarda FDrawingSprite. Not really sure why that works, but it does... So each SVG path is a FContainer with one FDrawingSprite and one or more WTPolygonSprites. Hacked some classes from http://www.codeproject.com/Articles/3751/An-SVG-framework-in-C-and-an-SVG-GDI-bridge to do the XML parsing.
Wondering now how to speed up the FPS which has naturally slowed down to under 35 on iPad mini after loading entire svg map of the world with touchable paths/fills for each country.
Glad to know you've been using FDrawingSprite, note that it has been updated recently with the ability to push different borders on left and right side of the main line. For example you can draw with a rainbow, which was not possible before that. (note that my pseudo is not SPSarda, it's JPSarda (Jean-Philippe Sarda)).
Thanks 'JPSarda'! Also loving your other work, FScrollContainer and FPseudoHtmlText which I've combined for an IM chat interface. Can't wait to try ShakeUtil and FSpeechBubble.
Yep SpeechBubble looks like a good pick for a chat app :). An IM chat interface for a game? Interesting!
Nah, I'm mad enough to use Futile for business apps :) Using Electroserver as backend for IM.
Once I have a basic scrollable panel in place, plus modifications to FTextbox which I got from here https://github.com/Imdsm/FutileExt/blob/master/Assets/Scripts/Game/FTextbox.cs nearly everything in place. Also, nice thing about PseudoHtmlText is it's easy to use with things like Emoticons.
Drop a word on reddit when it's released as I'm very curious to see it now.