Billboards limit count

Discussion of proposed new features.

Billboards limit count

PostPosted by dakilla » 11 Nov 2016, 05:17

Hi

Is it possible to enlarge the max number of Billboards in BillboardSet ?
it is actually limited to : MAX_BILLBOARDS = 65536 / 4 => (16384)

I tried to set 500'000 and using index buffer with large indices, but it draw nothing...
User avatar
dakilla
Have some posts
Have some posts
 
Posts: 31
Joined: 27 Jan 2016, 05:10

Re: Billboards limit count

PostPosted by cadaver » 17 Nov 2016, 10:55

It should just need writing 32bit indices properly, so this shouldn't be impossible to add.

I wouldn't necessarily recommend using more than what fits to 16bit indices, since it's more data to write and slower to access, however the indices just need to be written once.
User avatar
cadaver
Urho3D author
Urho3D author
 
Posts: 1802
Joined: 16 Jan 2014, 14:52
Location: Finland

Re: Billboards limit count

PostPosted by cadaver » 25 Nov 2016, 10:19

Optional 32bit indices for billboards are in the master branch. Thinking of it, same could be done to DecalSet quite easily, it's just not necessarily a wise thing to do.
User avatar
cadaver
Urho3D author
Urho3D author
 
Posts: 1802
Joined: 16 Jan 2014, 14:52
Location: Finland

Re: Billboards limit count

PostPosted by dakilla » 26 Nov 2016, 12:57

great, thanks :)
User avatar
dakilla
Have some posts
Have some posts
 
Posts: 31
Joined: 27 Jan 2016, 05:10


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 0 guests