Sure, as soon as I modified the spdl to include the drop down menu for the filter and button to navigate to the .ptx file I'll upload both files.can you share please the ptex.mi and mib_ptex_lookup.spdl?
i'll double check
In the interim, the ptex.mi file is as follows (you can also copy it from Maya):
Code: Select all
# ptex lookup shader
#
# filename: .ptx file
#
# width: scale factor for filter width
# blur: blur amount to add to filter width [0..1]
#
# filter_type:
# 0 point Point-sampled (no filtering)
# 1 bilinear Bi-linear interpolation
# 2 box Box filter
# 3 gaussian Gaussian filter
# 4 bicubic General bi-cubic filter (uses sharpness option)
# 5 bspline BSpline (equivalent to bi-cubic w/ sharpness=0)
# 6 catmullrom Catmull-Rom (equivalent to bi-cubic w/ sharpness=1)
# 7 mitchell Mitchell (equivalent to bi-cubic w/ sharpness=2/3)
#
# interpolate_level: Interpolate between mipmap levels
# filter_sharpness: for general bi-cubic filter only
declare shader
color "mib_ptex_lookup" (
string "filename",
scalar "width" default 1.0,
scalar "blur" default 0.0,
integer "filtertype" default 4,
boolean "interpolate_level" default off,
scalar "filter_sharpness" default 1.0)
version 1
end declare