Page 1 of 1

Rescaling Nature Billboards

Posted: Tue May 25, 2021 2:33 pm
by Daniel87
Hey guys,

I know I have asked this before, but recently I came across a conversation from Hazelnut and somebody else, I forgot who - about scaling billboards. Although I didn't know the exact context and if it's also concerning nature billoards, I think I remember Hazelnut mentioning that he got it working to rescale NPC billboards.

So now I wondered if the same might be possible with Nature billboards? BillboardBatch.AddItem() only allows scale and size for custom materials, not sure how to pretend the original nature billboards are custom, so I can actually utilize this overloaded constructor.

Re: Rescaling Nature Billboards

Posted: Tue May 25, 2021 4:17 pm
by l3lessed
Ignore me. Sorry, this was for npc flats, not nature flats. I'm trying to see if I can find a way to access them though.

Re: Rescaling Nature Billboards

Posted: Tue May 25, 2021 6:10 pm
by l3lessed
It does seem the nature billboard batch info is being passed through and saved in the streaming world class.

I think I found it in the DaggerfallLocation script class. If I'm understanding the code right, you should be able to pull the DaggerfallLocation using the StreamingWorld script class. From there, you can pull the location summary and then the NatureBillboardBatch.

Code: Select all

        public struct LocationSummary
        {
...
	    public DaggerfallBillboardBatch NatureBillboardBatch;
...
        }
*Edit*
Well, that isn't helpful, it doesn't give access to the current billboards in the terrain. I imagine, as you already seem to be implying, this needs to be done on terrain generation.

Re: Rescaling Nature Billboards

Posted: Wed May 26, 2021 9:47 am
by Daniel87
l3lessed wrote: Tue May 25, 2021 6:10 pm It does seem the nature billboard batch info is being passed through and saved in the streaming world class.

I think I found it in the DaggerfallLocation script class. If I'm understanding the code right, you should be able to pull the DaggerfallLocation using the StreamingWorld script class. From there, you can pull the location summary and then the NatureBillboardBatch.

Code: Select all

        public struct LocationSummary
        {
...
	    public DaggerfallBillboardBatch NatureBillboardBatch;
...
        }
*Edit*
Well, that isn't helpful, it doesn't give access to the current billboards in the terrain. I imagine, as you already seem to be implying, this needs to be done on terrain generation.
Yep, exactly as you said in your last edit. At ITerrainNature.cs would be the place to do it, but from there it seems I don't have to toolset for this.