Re: [PyOpenGL-Users] Point VBO
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2009-04-01 02:40:21
|
Ian Mallett wrote:
> Hello,
>
> I have a VBO which should make a square grid:
>
> #Numeric is "import numpy as Numeric"
> class glLibCausticGrid:
> def __init__(self,size):
> self.size = size
> self.size_squared = size*size
> threedimensionalgrid =
> Numeric.dstack(Numeric.mgrid[0:size,0:size,0:1])/float(size-1)
Wouldn't this have created a double, rather than a float data-set, does
on my machine:
>>> n = numpy.dstack( numpy.mgrid[0:255,0:255,0:1])/float(254)
>>> n.dtype
dtype('float64')
HTH,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|