|  | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
| 
				
				Extracting high precision depth map from scene
			 
			
			Hello, I'm new to using Vizard, and attempting to extract high-precision depth data from a scene. At the moment, to do this, I am using: Code: depth = viz.addRenderTexture(format=viz.TEX_DEPTH_32)
float_buff = depth.saveToBuffer('<raw>', dataType=viz.GL_FLOAT)
	
size = depth.getSize()
w = size[0]
h = size[1]
	
d_float = np.fromstring(float_buff, np.float32, w*h)
	
np.save('depth.npy', d_float.reshape((w, h)))This allows me to save the values of the depth render texture to a numpy array... but I have a few questions: 
 Any guidance would be appreciated. Thanks, Joe | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Copying Scene? | Brett Lindberg | Vizard | 0 | 08-28-2009 11:56 PM |