WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-16-2012, 03:32 AM
lionfish lionfish is offline
Member
 
Join Date: Oct 2009
Posts: 11
Taking screenshots

Hello,
I'm trying to count the number of pixels of a certain colour in each frame of a scene (don't ask why!!!). It doesn't need to be quick as I'm running through the telemetry afterwards.

My plan is to do something like:

capture_tex = viz.addBlankTexture([1,1])
viz.window.screenCapture(capture_tex)
data = capture_tex.getImageData()

Then process the 'data' array.

My problem is the screenCapture function
(from here: http://docs.worldviz.com/vizard/comm...eenCapture.htm )

The top of the page says it takes a string (file to save screenshot to), but the example further down it has a texture object passed to it instead. Is this really possible? When I tried I get an error:

File "C:\Program Files (x86)\WorldViz\Vizard30\python\viz.py", line 8160, in screenCapture
_ipcSend(_VIZ_SCREENCAPTURE,0,0,fileName,0.0,0.0,0 .0,0.0)
TypeError: message must be a string

as if it really needs a string, and passing the texture object isn't correct.

Any ideas?

Thanks!

Mike.
Reply With Quote
 

Tags
capture, pixel, screenshot, texture

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
screenshots using a loop krimble Vizard 2 09-14-2009 02:20 AM
Anti-aliasing Elizabeth S Vizard 7 10-18-2006 12:42 PM
screenshots vadrian Vizard 1 04-25-2005 06:17 AM


All times are GMT -7. The time now is 10:05 AM.


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