WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-10-2015, 08:15 AM
tokola tokola is offline
Member
 
Join Date: Nov 2012
Posts: 67
Cool 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)
I can try and reproduce the problem in a sample script, but before I do this, is there any reason that you think such a behavior can be explained?
Attached Thumbnails
Click image for larger version

Name:	map_points1.png
Views:	348
Size:	66.4 KB
ID:	715   Click image for larger version

Name:	map_points2.png
Views:	358
Size:	72.5 KB
ID:	716  
Reply With Quote
  #2  
Old 07-10-2015, 09:09 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Is one script enabling multisampling and the other not? Without multsampling enabled, points will usually be rendered as squares.
Reply With Quote
  #3  
Old 07-10-2015, 10:05 AM
tokola tokola is offline
Member
 
Join Date: Nov 2012
Posts: 67
Easy fix! I knew it would be a piece of cake for you, farshizzo!

I have a hard one coming in another thread, soon
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
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


All times are GMT -7. The time now is 04:00 PM.


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