Page 2 of 2

Re: Custom Scene Help

Posted: Wed Nov 16, 2016 1:40 am
by Interkarma
I've added some quick control to the DaggerfallBillboard editor script. This makes it possible to add custom billboards to scene. Here's the process in brief.
  1. Grab latest code from today.
  2. Setup scene as usual and set Arena2 path in DaggerfallUnity singleton.
  3. Create an empty GameObject.
  4. Add DaggerfallBillboard component to this GameObject
  5. Enter the archive and record index in Custom area of DaggerfallBillboard inspector. For example, the well shown is from TEXTURE.212, index 0. Thus archive=212, index=0.
  6. Click "Set Billboard Texture" button.
  7. Click "Align To Surface) to align base of billboard with a surface 4 units or less below billboard. Position billboard centre roughly above desired surface before trying to align.
CustomBillboards.png
CustomBillboards.png (191.76 KiB) Viewed 1831 times
Billboards set in this manner should work just like one added by RMB layout. They should align to scene camera in editor, player camera in game, and save/load with your custom scene. They should also animate normally while playing the scene.

I hope this achieves something close to what you were looking for. :)

Re: Custom Scene Help

Posted: Wed Nov 16, 2016 2:26 am
by kingOfWyrms
Looks great, setting it up now.