写“画笔”优质绘图应用程序,需要书籍和资源推荐

发布于 2024-09-09 04:40:02 字数 541 浏览 3 评论 0原文

我花了大约一周的时间阅读所有关于 iPhone 绘图、动画和 OpenGL 的免费信息。使用可用的 iOS 绘图示例(例如 Apple 的 GLPaint 和 Quartz 示例应用程序),我编写了几个版本的绘图工具,但我遇到了许多限制,我认为这是由于“不知道我不知道的东西”。 Quartz 很容易使用并且最初速度很快,但在 20 或 30 条路径之后就会变慢,因为每次添加都必须重新渲染上下文。 OpenGL 笔画渲染通常看起来很慢(GLPaint 应用程序),并且使 UI 触摸滞后并感觉“廉价”。通过亚马逊和论坛进行搜索,没有发现任何关于低级 iPhone 绘图技术的好书或资源推荐,可以帮助我在技术上足够熟练,以编写具有与“画笔”或“画笔”一样好的用户体验和视觉质量的高性能应用程序。 “Adobe创意1.0”。我并不是想获得免费代码,我想学习并且我愿意为学习工具付费!
建议?指导?

编辑:我对市面上的书如此之少感到惊讶。我正在取得进展,绘制即使有很多路径也能响应的路径,并计划一个简单的撤消功能,但仍然想知道如何同时具有擦除功能和撤消功能。我想,擦除将需要对场景进行光栅化,然后必须通过缓存屏幕截图来完成撤消,而不仅仅是跟踪路径。

I've spent about a week reading all the freely available information on iPhone drawing, animation, and OpenGL. Using the available iOS drawing examples like Apple's GLPaint and Quartz sample apps I've written a few versions of a painting tool, but I've hit many limitations which I think is due to "not knowing what I don't know." Quartz is easy to use and fast initially, but slows to a crawl after 20 or 30 paths due to having to rerender the context with every addition. OpenGL stroke rendering seems slow in general (GLPaint app) and makes the UI touches lag and feel "cheap". A search through Amazon and the forums has not revealed any great book or resource recommendations on low level iPhone drawing technologies that could help me become technically proficient enough to write a high performance app with a user experience and visual quality as good as "Brushes" or "Adobe Ideas 1.0". I'm not trying to get free code, I want to learn and I'm willing to pay for learning tools!
Suggestions? Guidance?

Edit: I'm surprised at how few books are out there. I'm making progress, drawing paths that are responsive even when there's many of them and planning an easy undo feature, but still wondering about how to have an erase feature and undo at the same time. Erase will require the scene to be rasterized I suppose, and then undo would have to be done by cacheing screenshots instead of just keeping track of paths.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分开我的手 2024-09-16 04:40:02

查看 CGLayers。这将允许您缓存一些绘图,而不必在每次更改时被迫重新渲染所有内容,而是仅绘制更改。如果您想添加撤消/重做支持,您需要做一些工作,但这应该可以缓解一些性能问题。

Look into CGLayers. This will allow you to cache some of your drawing and not be forced to re-render everything each time it changes, but rather only draw the changes. You'll need to do a little work if you want to add undo/redo support, but this should alleviate some of your performance issues.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文