- Home /
How do I Create a Bush?
Well , I dont know if I can ask questions like this here but I've been working on a environment for portfolio because I LOVE environments, Trees plants bushes everything. But I just cannot think about a good way to create plants like this:
I have no idea how to set-up my (bilboard) planes to make it look like this.
Anyone has some suggestions?
Thanks in advance.
Answer by joonturbo · Nov 16, 2013 at 04:37 PM
Put in a plane with the bush texture and choose a material with a transparent shader. Then add a script that makes the bosh turn towards the camera at all times. It's probably a bit too rough, but it's a starting point.
Here's an example (C#):
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class LookAtObject : MonoBehaviour {
public Transform lookAtObject;
public Vector3 rotationOffset;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (lookAtObject != null)
{
transform.LookAt(lookAtObject);
transform.Rotate(rotationOffset, Space.Self);
}
}
}
Oke, That sounds really great thanks!
But Doesnt Unity already do that with Grass?
I've never used grass, but it looks like it might. $$anonymous$$y answer is referring to making it look and behave like bushes in game, not about placing it in the level.
Anyway, I think I can work with this! Thank you Sir.
Your answer
Follow this Question
Related Questions
Can I make a billboard plane on terrain tree prefab? 3 Answers
Billboard script 1 Answer
Billboard script restrictions 1 Answer
Efficient mesh instantiation 2 Answers
How to make a billboard shader? 1 Answer