Houdini 11 VEX VEX functions

binput returns bilinear sampled input.

  1. vector binput(int , int )

  2. vector4 binput(int , int )

  3. vector binput(float , float )

  4. vector4 binput(float , float )

  5. float binput(int , int , int )

  6. float binput(int , float , float )

  7. vector binput(int , int , int , int )

  8. vector4 binput(int , int , int , int )

  9. vector binput(int , int , float , float )

  10. vector4 binput(int , int , float , float )

  11. float binput(int , int , int , int , int )

  12. float binput(int , int , int , float , float )

  13. vector binput(int , int , int , int , int , int )

  14. vector4 binput(int , int , int , int , int , int )

  15. vector binput(int , int , int , float , float , int )

  16. vector4 binput(int , int , int , float , float , int )

  17. float binput(int , int , int , int , int , int , int )

  18. float binput(int , int , int , int , float , float , int )

binput returns bilinear sampled input.

Point sampled input functions should be used whenever discrete pixel values are being modified, since these functions are much faster. Filtered functions should be used whenever UV coordinates are being manipulated. If multiple subsamples are being read and combined, bilinear lookups can produce a similar result to finput but much faster.

Each function may take either floating point or integer UV coordinates. If floating point UVs are used, the values are interpreted as 0-1 UV values; that is, (0.5, 0.5) is the center of the image. If integer UVs are used, the values are considered to be in pixel units, ranging from (0,0) to (XRES-1, YRES-1).

Each input function can return a float, vector or vector4 value. If the channel does not exist, the value returned for it will be 0. Whenever possible, use the vector versions rather that multiple float versions.

There are three different complexity levels for each input function.

  • The first level specifies only UV parameters.

  • The second specifies the input #, plane # and UV parameters.

  • The last level specifies all the parameters: input #, plane #, array index, UV and frame #. It also allows optional filter arguments, like the wrap mode.

If not specified in the function, the input number is always 0, the plane index is the current cooked plane, the array index is the currently cooked array index, and the frame is the current frame. So, cinput(u, v) is the same as cinput(0, PL, u,v) is the same as cinput(0, PL, AI, u,v, F).

Contexts: cop

Related topics