Problem duplicating billboards Javascript
My goal is to create a 2D array of billboards by duplicating a single reference billboard, childing them to one empty object and populating an array with a reference to each billboard. With the array of references I can loop and edit each billboard separately. I designed the code successfully but absolutely no results on the preview panel.
Thus, I broke it into a smaller problem by attempting to just duplicate the reference billboard ONCE and change the aligner to X:1 Y:1 and alpha 90%. simple enough, but still no results. The code for this is here: https://pastebin.com/eBJ1sRaK I can reference the created billboard and get and set values so it "exists" I just can't see it on the preview panel. which is the whole purpose of it.
Just what am I doing wrong? Thanks!
Hi Ben!
You're very close! A billboard is rendered by the Orthographic camera and not the default camera. So, all we need to do is put the clone in the same render layer as your original billboard (since it's currently being rendered by the Orthographic camera).
Let me know if you need any clarification. Can't wait to see the result!
Cheers,
Jonathan