#1
|
|||
|
|||
Weird behavior of on-the-fly objects
I am using a piece of code from Vizard's onTheFly.py example (see below) to create some dots on a map. The dots are created normally when run from within the module ('__main__'), but become square when the module is called from another module (see images)! Absolutely nothing changes in the way the code is called, so it makes no sense to me why this might happen. Seems like a bug.
Code:
def DisplayClickedCoords(self,coords): #Add on-th-fly points on the map for all the coordinates viz.startLayer(viz.POINTS) viz.pointSize(20) viz.vertexColor(viz.RED) self.spots = viz.endLayer() self.spots.disable(viz.CULLING) for c in coords: self.spots.addVertex(c[0], 0, c[1]) self.spots.alpha(0.5) |
#2
|
|||
|
|||
Is one script enabling multisampling and the other not? Without multsampling enabled, points will usually be rendered as squares.
|
#3
|
|||
|
|||
Easy fix! I knew it would be a piece of cake for you, farshizzo!
I have a hard one coming in another thread, soon |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting position of a group of objects | mape2k | Vizard | 2 | 10-31-2013 08:33 AM |
Simultaneous Actions on Multiple Objects | javadi | Vizard | 2 | 07-19-2013 03:54 PM |
Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 03:07 PM |
Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 03:09 AM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |