Write out arbitrary data as an image file?

   2336   2   1
User Avatar
Member
96 posts
Joined: May 2008
Offline
Hi,

I'm currently trying to work out how to write out arbitrary data as an image file, without using the HDK but only using built-in tools.

Basically there is some stuff happening to a texture, and I'm trying to write out the modified texture on every frame. Unfortunately, so far I have not been able to find any way to spit out the texture data into an image file - is there a way? Maybe a roundtrip through COP somehow?

I already tried Python's hou.saveImageDataToFile() function, but it's unbelievably slow and crash prone.

Cheers
Michael
User Avatar
Member
607 posts
Joined: May 2007
Offline
I'm not quite sure what your needs here specifically are.
In COPs you can query your geometry data with expressions or VEX/VOPs (simple example attached)

Attachments:
ee_cop_data.hip (111.5 KB)

User Avatar
Member
96 posts
Joined: May 2008
Offline
I'm not sure if importing Geometry will be the solution. The idea is to run a sim on a textured object, where the sim is influences by the texture, and then the result of the sim is used to manipulate the texture and write it back out, to be used as the input on the next frame. So far this could be done with bgeo files as well, but the thing is, the texture is meant to be rendered out as an image file, so that someone else can use that texture anywhere as a regular texture. I hope this makes sense?
  • Quick Links