i have a sphere mesh , and use a cube texture, the sample function can not take a xyz coord
pb3dutil get this complie error: 'sample' : no matching overloaded function found
input vertex float3 vertexPosition
id : "PB3D_POSITION";
input vertex float3 UVCoord
id : "PB3D_UV";
input image4 cubeImage;
interpolated float4 interpolatedCoord;
output float4 result;
interpolatedCoord = float4(UVCoord.x,UVCoord.y,UVCoord.z,0);
result = sample(cubeImage, interpolatedCoord.xyz,PB3D_CUBE);
thanks for your reply.
what do you mean about "We don't support mip mapped or cube textures"?
do you mean the function is not ready now or never can be used even in the final release of pb3d
if the later, why define the keyword PB3D_CUBE
if pb3d can not use cube texture, how can i sample a cube texture in flash player 11? by AGAL ?
I mean that the function is not ready now. The details are in the documentation because we will support it in the final release, however we haven't implemented the code for it yet.
Right now, the only way to sample from a cube texture is to do it directly in AGAL.
No, as the preview 3 release notes state we do not support cube sampling:
(in the section labelled "known issues")
You can get the AGAL byte code back from the AGALProgram obkect using the byteCode method.