W
warenhuis
Guest
Hello everyone,
I'm trying to get all visible d3d polygons on screen in a list. It should happen for every step (about a couple of thousand steps).
'List' here is not per se 'ds_list', but simply a name for a defined collection of visible polygons.
The lists will be saved out and used in another application.
The list should be filtered for:
- polygons outside of the camera frustum
- polygons that are fully hidden by other polygons
It also needs to be sorted in descending order based on the polygon's average depth.
My first attempts took very long and have terrible performance. I was using arrays and ds_lists to do this, looping a few times through them for all the checks.
This is certainly a dead end, and I'm out of ideas. If anyone knows how to do this properly/more efficient, your advice would be greatly appreciated!
Taking some time to generate the list is okay, but it should be no more than ca. 1 second.
Thanks in advance,
warenhuis
I'm trying to get all visible d3d polygons on screen in a list. It should happen for every step (about a couple of thousand steps).
'List' here is not per se 'ds_list', but simply a name for a defined collection of visible polygons.
The lists will be saved out and used in another application.
The list should be filtered for:
- polygons outside of the camera frustum
- polygons that are fully hidden by other polygons
It also needs to be sorted in descending order based on the polygon's average depth.
My first attempts took very long and have terrible performance. I was using arrays and ds_lists to do this, looping a few times through them for all the checks.
This is certainly a dead end, and I'm out of ideas. If anyone knows how to do this properly/more efficient, your advice would be greatly appreciated!
Taking some time to generate the list is okay, but it should be no more than ca. 1 second.
Thanks in advance,
warenhuis
Last edited by a moderator: