WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-19-2018, 04:42 AM
simrus simrus is offline
Member
 
Join Date: Nov 2016
Posts: 7
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
Reply With Quote
  #2  
Old 07-25-2018, 08:51 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,397
Not that I know of but I will check with a developer for any suggestions.
Reply With Quote
  #3  
Old 07-30-2018, 06:04 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,397
I've checked and there's no built-in way to accomplish this.
Reply With Quote
  #4  
Old Today, 02:53 AM
simrus simrus is offline
Member
 
Join Date: Nov 2016
Posts: 7
Thanks for checking Jeff. Anyway the functionality could be added to a request list for future versions?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass vertex array instead of calling viz.vertex()? Novakin Vizard 2 03-01-2016 12:06 AM
Mesh Graph (more than vertex position info) jpriede Vizard 0 05-03-2013 07:48 AM
Semi-circle array containing target and distractor objects ptjt255 Vizard 3 08-04-2009 03:09 AM
vertex list jaclyn.bill Vizard 2 07-01-2009 07:17 AM
Copy objects in an array to another array Johannes Vizard 3 04-29-2005 02:37 PM


All times are GMT -7. The time now is 07:20 AM.


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