动态壁纸是否带有游戏引擎?

发布于 2024-10-01 14:39:56 字数 330 浏览 1 评论 0原文

我想开发一个动态壁纸。经过一番研究,我得出结论,有两种选择可以创建一个:

我从未开发过动态壁纸。哪种解决方案最简单、最快?

I'd like to develop a live wallpaper. After some research, I concluded that there were two options to create one :

I've never developed Live Wallpaper. Which solution is the easiest and fastest?

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

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

发布评论

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

评论(3

时光瘦了 2024-10-08 14:39:56

您可以直接处理绘图,如 SDK 中的 Cube 示例所示。
或者您可以使用 OpenGL ES,例如通过 AndEngine、LibGDX、GLWallpaperService 或 RenderScript。更多的工作,但更好的表现。

如果你的壁纸相当简单,我建议你自己画。这就是大多数人所做的。如果您需要“物理”(例如粒子系统),请查看 AndEngine 或 LibGDX。如果您需要 3D,请查看 GLWallpaperService。除了 Cube 示例之外,您可能还想查看 Android 系统源代码,以了解库存壁纸(草、银河等)如何使用 RenderScript。此链接可能会帮助您实现目标,但事情会不断发展: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/ android/wallpaper/(然后向下滚动到壁纸)

祝你好运。
乔治.

You can handle the drawing directly, as in the Cube example in the SDK.
Or you can use OpenGl ES, e.g. via AndEngine, LibGDX, GLWallpaperService, or RenderScript. More work, but better performance.

If your wallpaper is fairly simple, I would suggest doing the drawing yourself. That is what most people do. If you need "physics" (e.g. a particle system), look at AndEngine or LibGDX. If you need 3D, look at GLWallpaperService. In addition to the Cube example, you might want to look at the Android system source code to see how the stock wallpapers (Grass, Galaxy, etc.) use RenderScript. This link may get you there, but things keep moving: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.1.1_r1/com/android/wallpaper/ (then scroll down to the wallpapers)

Good luck.
George.

蓝咒 2024-10-08 14:39:56

我建议 Rajawali:https://github.com/MasDennis/Rajawali
基于 OpenGL ES 2.0 的 Android 3D 引擎

I suggest Rajawali: https://github.com/MasDennis/Rajawali
A 3D engine for Android based on OpenGL ES 2.0

不必你懂 2024-10-08 14:39:56

使用游戏引擎进行开发肯定更容易。 Unity 引擎在这方面非常出色,它具有可视化编辑器、良好的资源导入管道以及资源商店中的大量内容,这将有助于促进您的开发。您还可以使用其他游戏引擎来制作动态壁纸,但这将是一项更加乏味的任务。

使用 Unity 的缺点是 ti 可能有点重 - 预计 APK 的最小大小约为 9 MB。不过,如果您有资源密集型动态壁纸,这并不重要。

我最近发布了uLiveWallpaper - 一个 Unity 资源,可以使用 Unity 5 创建 Android 动态壁纸。它经过充分测试且可靠,为 Android Studio 创建项目,并包含占位符代码让你开始吧。

如果您想做一些非常简单的事情,Unity 可能不是最好的选择,但如果您追求高视觉质量,Unity 绝对是最好的选择。

在这里查看 uLiveWallpaper 论坛主题:
http://forum.unity3d.com/ threads/ulivewallpaper-develop-android-live-wallpapers-with-unity-5.375255/

或者只需搜索“uLiveWallpaper”。

It sure is easier to develop with a game engine. Unity engine is pretty good for that, with its visual editor, good asset import pipeline a tons of stuff on Asset Store that would help to boost your development. There are other game engines tyou could use for live wallpapers, but it'd be a much more tedious task.

The negative side of using Unity is that ti might be somewhat heavy - it's expected to have an minimal APK of around 9 MB in size This doesn't really matters if you have a resource-heavy live wallpaper, though.

I've recently released uLiveWallpaper - a Unity asset that makes it possible to create live wallpapers for Android using Unity 5. It is well-tested and reliable, creates projects for Android Studio, complete with placeholder code to get you started.

Unity is probably not the best option if you want to make something really simple, but definitely the best option if you aim for high visual quality.

Check out uLiveWallpaper forum thread here:
http://forum.unity3d.com/threads/ulivewallpaper-develop-android-live-wallpapers-with-unity-5.375255/

Or just search up for "uLiveWallpaper".

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