https://github.com/yarolegovich/rsmetaballs
Metaballs rendering using RenderScript
https://github.com/yarolegovich/rsmetaballs
android metaballs renderscript
Last synced: 26 days ago
JSON representation
Metaballs rendering using RenderScript
- Host: GitHub
- URL: https://github.com/yarolegovich/rsmetaballs
- Owner: yarolegovich
- Created: 2018-02-12T13:25:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T13:59:27.000Z (over 7 years ago)
- Last Synced: 2025-04-19T22:34:36.731Z (about 1 month ago)
- Topics: android, metaballs, renderscript
- Language: Kotlin
- Size: 132 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A small RenderScript experiment. Be aware of that it's very far from its best application, but I just wanted to try the tool and failed to come up with anything more suitable for it.
I've tried two different approaches:
* [The first one](https://github.com/yarolegovich/RSMetaballs/blob/master/app/src/main/java/com/yarolegovich/rsmetaball/rs/RSSurfaceTarget.kt) involves using an Allocation as a SurfaceProducer for a SurfaceView.
* [The second one](https://github.com/yarolegovich/RSMetaballs/blob/master/app/src/main/java/com/yarolegovich/rsmetaball/rs/RSCanvasTarget.kt) renders to a bitmap and then draws it on a canvas. This approach clearly involves more expensive data transfers, but can be greatly sped up at the cost of reduced image quality.[Full video.](https://www.youtube.com/watch?v=JdLhtkbEDio)

I'd like to note that I'm not going to update this repository.