WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 01-28-2014, 07:43 PM
shivanangel shivanangel is offline
Join Date: Feb 2006
Location: New Jersey
Posts: 182
Question <multimedia:image>.setImageData question

Hello Vizard Support,

I had a question when using <multimedia:image>.setImageData().
I'm working on an updated volume renderer and I'm trying to populate a 3D texture ( btw, thank you for helping me with that months ago ) but instead of using the .load() method with a file name I wish to fill the 3D texture with images that have already been loaded into Vizard.

Specifically, I'm trying to do something like this:

def loadBlank3DTexture( blank3DTex, imageList ):
	Fill 3D texture with provided list of images in sequential order
	for i, image in enumerate( imageList ):
		imageSize = image.getSize()
		print i, image
		blank3DTex.setImageData( image.getImageData(), imageSize, blank3DTex.getPixelFormat(), i )
I originally was testing with 3 png images that were only all red, green, or blue each. I noticed only the blue images seemed to load.

Then I tested with images with differing RGB values to see if a specific channel was being shown and I noticed only the blue channel was being displayed. Obviously, there is something I am not understanding about the setImageData method. I seem to only be passing the blue channel.

Any thoughts?

Reply With Quote

3d texture, setimagedata

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
question about NVIDIA 3D vision Weihua An Vizard 5 08-02-2010 06:49 AM
Question about using function hankiwan Vizard 1 02-15-2010 10:50 AM
how to invoke command line question billjarrold Vizard 2 01-11-2010 08:51 AM
beginner flow control question jvacare1 Vizard 4 09-14-2009 08:19 AM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM

All times are GMT -7. The time now is 08:36 PM.

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