Page MenuHome

OSL script fails to read texture3d file
Closed, ArchivedPublic

Description

System Information
Linux 3.2.0-4-amd64
Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller

Blender Version
Broken: Blender 2.69 r60991

Short description of error
Using an OSL script using texture3d functionality, blender fails to read the texture file.

Exact steps for others to reproduce the error
Obtained OSL distribution containing the file "dense_float.f3d".
Created an OSL script which shoud read the above mentioned texture file, but the output shows only output of 0.
Ran blender throught the linux command "strace" in order to see all the system calls and no system call for reading this file is seen.

After compilation of OSL, the same shader could be compiled and run on the command line, showing the expected output. This is confirmed by using strace and noticing the reading of the texture file

Event Timeline

Alexis Kotte (kottea) raised the priority of this task from to 90.
Alexis Kotte (kottea) updated the task description. (Show Details)
Alexis Kotte (kottea) edited a custom field.
Thomas Dinges (dingto) lowered the priority of this task from 90 to Normal.Nov 15 2013, 12:42 PM

What is a .f3d file? Is that even supported by OIIO (if its a texture file)?

An f3d file is a 3D texture file which can contain floats (the way I want to use it) or colors.
This format (based upon HDF5) is supported by OIIO and OSL.
Compilation of the projects Field3D, oiio and OpenShadingLanguage result in a command line version of an osl shader, capable of handling such a file.
Is Field3D (https://sites.google.com/site/field3d/) included in blender?

Thomas Dinges (dingto) changed the task status from Unknown Status to Archived.Nov 15 2013, 12:53 PM
Thomas Dinges (dingto) claimed this task.

We don't compile with Field3D, and therefore don't support it.

For 3D Textures / Voxel data we plan to go with OpenVDB in the future: http://www.openvdb.org/