开发者

Convert Flash art to OpenGL-ready vector format?

开发者 https://www.devze.com 2022-12-11 23:38 出处:网络
Say I have some 2D artwork in Flash CS4 format .FLAs, and I\'d like to put it into an iPhone game that uses OpenGL ES, keeping it in vector format. An OpenGL-ready format could just be a list 开发者_如

Say I have some 2D artwork in Flash CS4 format .FLAs, and I'd like to put it into an iPhone game that uses OpenGL ES, keeping it in vector format. An OpenGL-ready format could just be a list 开发者_如何学Goof vertex positions and colors for a triangle strip.

Is there a converter available that can do that easily?


You could port gameswf to iPhone, it supports most SWF tags, it loads and renders in OpenGL. It's coded in C++ so it's easy to embed it into your iPhone application. Be warned that's it's usable but it has its limits.


Claus Wahlers's project looks pretty cool, check out: https://github.com/claus/as3swf/wiki/shape-export-to-objective-c

Convert Flash art to OpenGL-ready vector format?

Convert Flash art to OpenGL-ready vector format?


I would recommend converting the swfs to .svg format, Either in Illustrator, or with this online tool. I actually used a small java console app to automate this part for what I had to do recently, it worked pretty well.

Once that's done, you can use Qt to do the rendering bit for you as commented on here.


You could use smokescreen to convert the flash to html5, and then use the stock HTML viewer found In interface builder. Just my 2 cents.

0

精彩评论

暂无评论...
验证码 换一张
取 消