WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Vertex array (https://forum.worldviz.com/showthread.php?t=6167)

simrus 07-19-2018 04:42 AM

Vertex array
 
I generate a minimum of 10,000 lightpoints on every frame (different positions each time). Using numpy I've vectorised every step of my program to get as much speed as possible, but I'm left with this

# now add points to vertex list
for i in range(0, NPTS):
viz.vertex(pt[i,0], pt [i,1], pt[i,2])

which really needs replacing with a single pass of a vertex array.

I see that someone posted previously about this same problem of loops and vertex arrays

https://forum.worldviz.com/showthread.php?p=18081

The underlying OpenGL / OpenSceneGraph has the functionality to pass vertex arrays so is there any (simple) way to expose that functionality in Vizard?

simon

Jeff 07-25-2018 08:51 PM

Not that I know of but I will check with a developer for any suggestions.

Jeff 07-30-2018 06:04 PM

I've checked and there's no built-in way to accomplish this.

simrus 08-15-2018 02:53 AM

Thanks for checking Jeff. Anyway the functionality could be added to a request list for future versions?


All times are GMT -7. The time now is 03:43 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC