Inspiration
How often do we realize that we have so much empty space around us which belongs to nature and that we can help revive our mother earth but a small step- Planting more trees and making the earth a little more greener. However, growing a tree is a long process and thus visualizing the final result of it excites us! GreenAR is all about this!
What it does
GreenAR lets you visualize Virtual plants and trees in your Garden/Backyard or elsewhere, you can plant up to 25 trees and 25 plants (5 of each type) at different positions. Thus you can visualize the final results of planting a tree and that certainly excites any nature lover. If you do not have enough space for a large tree, you can visualize smaller pots and plants as well.
How I built it
It started with collecting as well as creating some 3D models. All these 3D Models are extremely low poly and use materials instead of textures so that more and more options could be provided. The UI starts with basic Instructions for User, followed by a canvas option for Plants or trees All this using Object Tap. The first issue was that the plant to grow wherever the user drags the arrow to and stop following it after that. Achieved this using patch editor to initially keep the visibility of all 3d models of plants and trees off and follow the drag. Once button of the plant/tree is pressed, its visibility is turned on, its size is increased from 0,0,0 to 1,1,1 to give a feel of growing and most importantly its screen drag patch is disabled to it stays wherever planted. A similar patch is created for each and every plant/tree. Thus it enables the user to visualize multiple trees at different positions. This supports up to 25 trees and 25 plants ( 5 of each type) and still not much heavy on the device due to low size. All the trees will have some facts and figures written about them on a separate canvas. Here is a look at the patches arrangement. Credit for 3d models
Challenges I ran into
1.Couldn't Find a way to dynamically instantiate copies of plants 2.Planting a tree and then stop its drag
Decreasing the size of the lens within limits to improve lens engagement
Accomplishments that I'm proud of
My first experience with the Patch editor which I feared for a few months is over, and it is awesome! I am pretty sure i have got a ton of ideas to implement this summer vacation.
What I learned
It was a great experience to learn to implement logics and calculations using patches and improved my 3D modelling skills. While building this lens in the last two weeks I came across a lot of small and big issues which will definitely help me in my future projects on SparkAR.
What's next for GreenAR World
It was a great experience to learn to implement logics and calculations using patches and improved my 3D modelling skills. While building this lens in the last two weeks I came across a lot of small and big issues which will definitely help me in my future projects on SparkAR.
Built With
- ar
- particle
Log in or sign up for Devpost to join the conversation.