WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-03-2013, 02:11 AM
Joran Joran is offline
Member
 
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
I am revisiting this 'problem'. The version using a plugin did work (I need to recompile the plugin again). But now I saw the <multimedia:image>.saveToBuffer() method. It looks very useful. I still have:

Code:
depthtex = viz.addRenderTexture(format = viz.TEX_DEPTH, width = 8, height = 8)
And i can now save it to a buffer with:

Code:
depthtex.saveToBuffer('<raw>')
.

But this buffer then contains an 8 bit z-buffer. When I change my texture format to viz.TEX_DEPTH_32, I get the error message:

Code:
error pixelFormat = 81a7
** ERROR: Texture does not contain image data, cannot save to buffer
I am almost where I want to be. Is there some way to save a 16 bit or 32 bit z-buffer? Or maybe could the support for it be added to saveToBuffer?

Greetings, Joran.
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
writing joystick position to a data file Saz Vizard 3 12-17-2008 05:18 AM
Translating a texture and its Alpha shivanangel Vizard 5 12-02-2008 04:52 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 08:48 AM
how I can get my texture to appear exactly as is defined mspusch Vizard 1 04-23-2005 12:12 PM


All times are GMT -7. The time now is 10:47 PM.


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