canot set colour to vertex in my manualobject

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

chpod

21-07-2008 09:41:07

Double post.

See http://www.ogre3d.org/phpBB2/viewtopic.php?t=35383

It seems you found a solution, could you post it, please ?

Thx,
chpod