ihateloss
18-07-2008 23:03:02
Here is my situation. I have a point cloud file which have just x y z r g b data for each point. This file is pretty big, about 1G. I want to render it in Ogre and I have tried to use the manualobject:
class Park(ogre.ManualObject):
def __init__(self, name):
ogre.ManualObject.__init__(self, name)
self.pointFile = None
def renderPark(self):
self.clear()
self.begin("", ogre.RenderOperation.OT_POINT_LIST)
self.position(23, 23, 23)
self.colour(1, 0, 0)
self.end()
but, when I call renderPark(), the vertex in Ogre is just white. I donnot know why? help
class Park(ogre.ManualObject):
def __init__(self, name):
ogre.ManualObject.__init__(self, name)
self.pointFile = None
def renderPark(self):
self.clear()
self.begin("", ogre.RenderOperation.OT_POINT_LIST)
self.position(23, 23, 23)
self.colour(1, 0, 0)
self.end()
but, when I call renderPark(), the vertex in Ogre is just white. I donnot know why? help