View Single Post
Old 04-14-2009, 05:07 AM
Joran Joran is offline
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
Getting data from a render texture


I want to get the data from a depth texture. I use the following command to create the texture:

depthtex = viz.addRenderTexture(format = viz.TEX_DEPTH, width = 8, height = 8)
And somewhere else I attach this texture to a viz.RENDER_DEPTH render node. Is there a way to get the data from this texture in python?

Greetings, Joran.
Reply With Quote