Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Summary X3D Resources

X3D Example Archives: Conformance Nist, Appearance, Texture Transform

 

TextureTransform shifts 2D texture coordinates for positioning, orienting and scaling image textures on geometry. Note that resulting visible effects appear reversed because image changes occur before mapping to geometry.

X3D Tooltips of interest: TextureTransform.

X3D Specification sections of interest: Shape component, 18.4.10 TextureTransform

X3D Examples Archives of related interest:

 
  48 X3D Scenes       Scene Descriptions
all_complex all complex Test TextureTransform of scale, rotation, center and translation to an ImageTexture. Test browser ability to apply a +90 degree rotation, with a center of 1 3, a scale of .33 1, and a translation of 0 4.9 to an MovieTexture mapped to the faces of primative geometry. The result is (using the primitive mapping rules: All geometry faces should map a single, centered V that is 3 times wider than its height, oriented down for its horizontal axis, and right for its vertical axis.
all_complex_movietexture all complex movietexture Test scale, transform rotation and center of MovieTexture TextureTransform. Test browser ability to apply a +90 degree rotation, with a center of 1 3, a scale of .33 1, and a translation of 0 4.9 to a MovieTexture mapped to the faces of complex geometry. The result is using default complex geometry mapping rules (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) The geometry faces should map a single, centered V that is 3 times wider than its height, oriented down for its horizontal axis, and right for its vertical axis. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
all_complex_pixeltexture all complex pixeltexture Test rotation, center and scale transform to PixelTexture. Test browser ability to apply a +45 degree rotation, with a center of 1 1, a scale of .5 .5 (creating a double sized image), and a translation of .5 .5 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of complex geometry. The result is: Using the default complex geometry mapping rules (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) : these geometry faces should display four adjacent right triangles, all with 90 degree central angles and joined at the central vertex. The top triangle should be RED, the bottom BLUE, the left YELLOW and the right GREEN. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
all_primitives all primitives Test TextureTransform of scale, center, translation and rotation to primitive geometry for ImageTexture. Test browser ability to apply a +90 degree rotation, with a center of 1 3, a scale of .33 1, and a translation of 0 4.9 to an ImageTexture mapped to the faces of primative geometry. The result is (using the primitive mapping rules: All geometry faces should map a single, centered V that is 3 times wider than its height, oriented down for its horizontal axis, and right for its vertical axis.
all_primitives_movietexture all primitives movietexture Test TextureTransform of scale, center, translation and rotation to primitive geometry for a MovieTexture. Test browser ability to apply a +90 degree rotation, with a center of 1 3, a scale of .33 1, and a translation of 0 4.9 to an MovieTexture mapped to the faces of primative geometry. The result is (using the primitive mapping rules: All geometry faces should map a single, centered "V" that is 3 times wider than its height, oriented down for its horizontal axis, and right for its vertical axis.
all_primitives_pixeltexture all primitives pixeltexture Test TextureTransform of scale, center, translation and rotation to primitive geometry for PixelTexture. Test browser ability to apply a +45 degree rotation, with a center of 1 1, a scale of .5 .5 (creating a double sized image), and a translation of .5 .5 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of primitive geometry. The result is: each face should display four adjacent right triangles, all with 90 degree angles and joined at the central vertex. The top triangle should be RED, the bottom BLUE, the left YELLOW and the right GREEN.
center_complex center complex Test center field for complex geometry applied with an ImageTexture. Test browser ability to apply a +90 degree (clockwise) rotation center of (left to right) 0 0, 0.33 0.33, -101.66 -101.66,-.5 -.5, 0.66 0.66 and 1 1 to an ImageTexture mapped to the faces of complex geometry, mapping with the default complex geometry mapping rules. The result is : (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) Column #1 displays the VTS logo centered horizontally and vertically, rotated clockwise 90 degrees on all geometry faces. Column #2 maps the rotated VTS logo centered horizontally, with the logo spelling TSV on all faces.Column #3 maps the VTS logo exactly as was done in column #1. Column #4 maps the rotated VTS logo with the VTS logo centered horizontally, and spelling SVT. Column #5 maps the same as column 1 and column #3.
center_complex_movietexture center complex movietexture Test center field for complex geometry applied with a MovieTexture. Test browser ability to apply a +90 degree (clockwise) rotation center of (left to right) 0 0, 0.33 0.33, -.5 -.5, 0.66 0.66 and 1 1 to an MovieTexture mapped to the faces of complex geometry,mapping with complex mapping rules. The result is: (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) Column #1 displays the VTS logo centered horizontally and vertically, rotated clockwise 90 degrees on all geometry faces. Column #2 maps the rotated VTS logo centered horizontally, with the logo spelling TSV on all faces.Column #3 maps the VTS logo exactly as was done in column #1. Column #4 maps the rotated VTS logo with the VTS logo centered horizontally, and spelling SVT. Column #5 maps the same as column 1 and column #3.
center_complex_pixeltexture center complex pixeltexture Test center field for complex geometry applied with a PixelTexture. Test browser ability to apply a +90 degree (clockwise) rotation center of (left to right) 0 0, 0.33 0.33,0.5 0.5, 0.66 0.66 and 1 1 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result is (moving counterclockwise from the lower left corner of the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) : Column #1 full height YELLOW, full height RED, full height GREEN, full height BLUE. Column #2 2/3 height BLUE, 2/3 height GREEN, full height RED, 1/3 height GREEN, 1/3 height BLUE, full YELLOW Column #3 Same as Column #1 Column #4 1/3 height YELLOW, 1/3 height RED, full height GREEN, 2/3 height RED, 2/3 hight YELLOW, full height BLUE Column #5 Same as Column #1
center_primitives center primitives Test center field for primitive geometry applied with a ImageTexture. Test browser ability to apply a +90 degree (clockwise) rotation center of (left to right) 0 0, 0.33 0.33, -101.66 -101.66, -.5 -.5, 0.66 0.66 and 1 1 to an ImageTexture mapped to the faces of primitive geometry, mapping with the default primitive mapping rules. The result is (for all faces): Column #1 displays the VTS logo centered horizontally and vertically, rotated clockwise 90 degrees on all geometry faces. Column #2 maps the rotated VTS logo centered horizontally, with the logo spelling SVT on all faces.Column #3 maps the VTS logo exactly as was done in column #1. Column #4 maps the rotated VTS logo with the VTS logo centered horizontally, and spelling TSV. Column #5 maps the same as column 1 and column #3.
center_primitives_movietexture center primitives movietexture Test center field for primitive geometry applied with a MovieTexture. Test browser ability to apply a +90 degree (clockwise) rotation center of (left to right) 0 0, 0.33 0.33, 0.5 0.5, 0.66 0.66 and 1 1 to an MovieTexture mapped to the faces of primitive geometry, mapping with the same primitive mapping rules as in test #1. The result is (for all faces): Column #1 displays the VTS logo centered horizontally and vertically, rotated clockwise 90 degrees on all geometry faces. Column #2 maps the rotated VTS logo centered horizontally, with the logo spelling TSV on all faces.Column #3 maps the VTS logo exactly as was done in column #1. Column #4 maps the rotated VTS logo with the VTS logo centered horizontally, and spelling SVT. Column #5 maps the same as column 1 and column #3.
center_primitives_pixeltexture center primitives pixeltexture Test center field for primitive geometry applied with a PixelTexture. Test browser ability to apply a +90 degree rotation center of (left to right) 0 0, 0.33 0.33,0.5 0.5, 0.66 0.66 and 1 1 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of primitive geometry, using default primitive geometry mapping rules. The result is (moving counter-clockwise from the lower left corner of all geometry faces): Column #1 full height YELLOW, full height RED, full height GREEN, full height BLUE. Column #2 2/3 height BLUE, 2/3 height GREEN, full height RED, 1/3 height GREEN, 1/3 height BLUE, full height YELLOW Column #3 Same as Column #1 Column #4 1/3 height YELLOW, 1/3 height RED, full height GREEN, 2/3 height RED, 2/3 hight YELLOW, full height BLUE Column #5 Same as Column #1
default_primitives_imagetexture default primitives imagetexture Test default field values for primitive geometry applied with an ImageTexture. Test browser default TextureTransform ability to map a JPEG rgb file onto the faces of primative geometry. A red, green and blue VTS logo on a purple background should map onto a sphere, cone, cylinder and box. For the sphere, the texture should cover the entire surface, and wrap counterclockwise from the back of the sphere. For the cone, the texture should wrap counterclockwise (from above) starting at the back of the cone. A circle cutout of the texture is applied right side up to the base of the cone when the cone is tilted toward the +z direction. For the cylinder, the texture should wrap counterclockwise (from above) starting at the back of the cylinder. A circle cutout of the texture is applied right side up to the top and bottom caps of the cylinder. For the box, the texture should be applied right side up in its entirety to each face of the box.
default_primitives_movietexture default primitives movietexture Test default field values for primitive geometry applied with a MovieTexture. Test browser default TextureTransform ability to map a MovieTexture onto the faces of primative geometry. A red, green and blue VTS logo on a purple background should map onto a sphere, cone, cylinder and box. For the sphere, the texture should cover the entire surface, and wrap counterclockwise from the back of the sphere. For the cone, the texture should wrap counterclockwise (from above) starting at the back of the cone. A circle cutout of the texture is applied right side up to the base of the cone when the cone is tilted toward the +z direction. For the cylinder, the texture should wrap counterclockwise (from above) starting at the back of the cylinder. A circle cutout of the texture is applied right side up to the top and bottom caps of the cylinder. For the box, the texture should be applied right side up in its entirety to each face of the box.
default_primitives_pixeltexture default primitives pixeltexture Test default field values for primitive geometry applied with a PixelTexture. Test default TextureTransform node effect on PixelTexture mapping to primitive geometry. A PixelTexture consisting of a square checkerboard of red (lower left quadrant), yellow (lower right), red (upper right) and yellow (upper left) is mapped to primitive geometry. For the sphere, the texture should cover the entire surface, and wrap counterclockwise from the back of the sphere. For the cone, the texture should wrap counterclockwise (from above) starting at the back of the cone. A circle cutout of the texture is applied right side up to the base of the cone when the cone is tilted toward the -z axis. For the cylinder, the texture should wrap counterclockwise (from above) starting at the back of the cylinder. A circle cutout of the texture is applied right side up to the top and bottom caps of the cylinder. For the box, the texture should be applied right side up in its entirety to each face of the box.
elevationgrid elevationgrid Text default TextureTransform mapping of a JPG image to an ElevationGrid. An ElevationGrid is default texture mapped by aligning the +S (horizontal) axis of the VTS logo with the +X axis of the ElevationGrid and the +T (vertical) axis of the VTS logo with the +Z axis of the ElevationGrid. The bottom of the VTS logo coincides with the first row of grid points and the top of the VTS logo maps to the last row of grid points
elevationgrid_movietexture elevationgrid movietexture Test default TextureTransform mapping of a MovieTexture to an ElevationGrid. An ElevationGrid is default texture mapped by aligning the +S (horizontal) axis of the VTS logo with the +X axis of the ElevationGrid and the +T (vertical) axis of the VTS logo with the +Z axis of the ElevationGrid. The bottom of the VTS logo coincides with the first row of grid points and the top of the VTS logo maps to the last row of grid points.
elevationgrid_pixeltexture elevationgrid pixeltexture Map a PixelTexture A PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) to an ElevationGrid. An ElevationGrid is default texture mapped by aligning the +S (horizontal) axis of the PixelTexture with the +X axis of the ElevationGrid and the +T (vertical) axis of the PixelTexture with the +Z axis of the ElevationGrid. The bottom of the PixelTexture coincides with the first row of grid points (along the rear of the ElevationGrid) and the top of the PixelTexture maps to the last row of grid points (along the front).
extrusion extrusion Test default TextureTransform mapping of a JPG image to an Extrusion. An ImageTexture is applied to an Extrusion by aligning the bottom of the VTS logo with the first cross-section at the first spint point (the bottom of the extrusion), and the top of the VTS logo coincides with the last cross-section at the last spine point (the top of the extrusion). The left side of the VTS logo is aligned with the first cross-section point of all spine points (the rightmost point of the extrusion), and the right side of the VTS logo coincides with the last cross-section point for all spine points (again, the rightmost point on the extrusion). For the ends of the extrusion, The VTS logo will map with the +S (horizontal) texture axis aligning with the +X axis of the cap, and the +T (vertical) texture axis aligning with the +Z axis of the cap.
extrusion_movietexture extrusion movietexture Test default TextureTransform mapping of a MovieTexture to an Extrusion. A MovieTexture is applied to an Extrusion by aligning the bottom of the VTS logo with the first cross-section at the first spine point (the base of the extrusion), and the top of the VTS logo coincides with the last cross-section at the last spine point (the top of the extrusion). The left side of the VTS logo is aligned with the first cross-section point of all spine points (the rightmost point), and the right side of the VTS logo coincides with the last cross-section point for all spine points (again, the rightmost point on the extrusion). For the ends of the extrusion, The VTS logo will map with the S (horizontal) texture axis aligning with the X axis of the cap, and the T (vertical) texture axis aligning with the Z axis of the cap.
extrusion_pixeltexture extrusion pixeltexture Test default TextureTransform mapping of a PixelTexture to an Extrusion geometry. A PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) is applied to an Extrusion by aligning the bottom of the PixelTexture with the first cross-section at the first spine point, and the top of the PixelTexture coincides with the last cross-section at the last spine point. The left side of the PixelTexture is aligned with the first cross-section point of all spine points (beginning on the far right side), and the right side of the PixelTexture coincides with the last cross-section point for all spine points (also on the far right side). For the ends of the extrusion, The PixelTexture will map with the +S (horizontal) texture axis aligning with the +X axis of the cap, and the +T (vertical) texture axis aligning with the +Z axis of the cap.
indexedfaceset indexedfaceset Test default TextureTransform mapping of a JPG image to an IndexedFaceSet. The result is: The VTS logo should appear upright on the front face and appear reversed on the rear face of the geometry. All other faces should have smeared end pixels of the front and rear faces.
indexedfaceset_movietexture indexedfaceset movietexture Test default TextureTransform mapping of a MovieTexture to an IndexedFaceSet. The VTS logo should map to an IndexedFaceSet geometry by projecting the image through the geometry bounding box face with the long (X) and second-longest (Y) axes, and onto the IndexedFaceSet geometry. A horizontally reversed VTS logo is mapped to the opposite (rear) side of the IndexedFaceSet. Geometry faces between the front and back are smeared with the projected end-pixels of the ImageTexture. The VTS should face upright on the front face of the IndexedFaceSet and appear reversed on the rear geometry face.
indexedfaceset_pixeltexture indexedfaceset pixeltexture Test default TextureTransform mapping of a PixelTexture to an IndexedFaceSet geometry.Map a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) to an IndexedFaceSet. The PixelTexture should map to an IndexedFaceSet geometry by projecting the image through the geometry bounding box face onto the front face of the IndexedFaceSet geometry. A horizontally reversed PixelTexture is mapped to the opposite (rear) side of the IndexedFaceSet. Geometry faces between the front and back are smeared with the projected end-pixels of the PixelTexture. The texture should appear right side up on the front, and reversed and inverted on the rear face.
rotation_complex rotation complex Test rotation field for ImageTexture mapping to complex geometry. Test browser ability to apply rotations of (left to right) -180, -90, +45, +90 and +180 degrees to an ImageTexture mapped to the faces of complex geometry, mapping with primitive mapping rules. The result is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) the first column of geometry should show the VTS logo upside-down and spelling to the left for all faces. The second column of geometry should map the VTS logo with the positive horizontal direction pointing up, and the positive vertical axis pointing left. The third column should map the VTS logo right side up, on a downward 45 degree angle. The fourth column should map the VTS logo vertically downward, with the +T direction to the right. The fifth column should be identical to column #1. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
rotation_complex_movietexture rotation complex movietexture Test rotation field for MovieTexture mapping to complex geometry. Test browser ability to apply rotations of (left to right) -180, -90, +45, +90 and +180 degrees to an MovieTexture mapped to the faces of complex geometry, using default complex geometry mapping rules. The result is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) the first column of geometry should show the VTS logo upside-down and spelling to the left for these faces. The second column of geometry should map the VTS logo with the positive horizontal direction pointing up, and the positive vertical axis pointing left. The third column should map the VTS logo right side up on a downward 45 degree angle. The fourth column should map the VTS logo vertically downward, with the +T direction to the right. The fifth column should be identical to column #1. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
rotation_complex_pixeltexture rotation complex pixeltexture Test rotation field for PixelTexture mapping to complex geometry. Test browser ability to apply rotations of (left to right) -180, -90, +45, +90 and +180 degrees to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) :the first column of geometry should display RED, GREEN, BLUE and YELLOW. The second columns should display GREEN, BLUE, YELLOW and RED. The third column should be a downward diagonal of YELLOW, BLUE on the top diagonal, GREEN RED, GREEN, RED on the middle diagonal, and YELLOW, BLUE on the botttom diagonal. The fourth column should display YELLOW, RED, GREEN and BLUE. The fifth columsn should display RED, GREEN, BLUE and YELLOW. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
rotation_primitives rotation primitives Test rotation field for ImageTexture mapping to primitive geometry. Test browser ability to apply rotations of (left to right) -180, -90, +45, 90 and 180 degrees to an ImageTexture mapped to the faces of primitive geometry, mapping with mapping rules. The result is (for all geometry faces): the first column of geometry should show the VTS logo upside-down and spelling to the left for all faces. The second column of geometry should map the VTS logo with the positive horizontal direction pointing up, and the positive vertical axis pointing left. The third column should map the VTS logo right side up, on a downward 45 degree angle. The fourth column should map the VTS logo vertically downward, with the +T direction to the right. The fifth column should be identical to column #1.
rotation_primitives_movietexture rotation primitives movietexture Test rotation field for MovieTexture mapping to primitive geometry. Test browser ability to apply rotations of (left to right) -180, -90, +45, +90 and +180 degrees to an MovieTexture mapped to the faces of primitive geometry, using default primitive mapping rules. The result is (for all geometry faces): the first column of geometry should show the VTS logo upside-down and spelling to the left for all faces. The second column of geometry should map the VTS logo with the positive horizontal direction pointing up, and the positive vertical axis pointing left. The third column should map the VTS logo right side up, on a downward 45 degree angle. The fourth column should map the VTS logo vertically downward, with the +T direction to the right. The fifth column should be identical to column #1.
rotation_primitives_pixeltexture rotation primitives pixeltexture Test rotation field for PixelTexture mapping to primitive geometry.Test browser ability to apply rotations of (left to right) -180, -90, +45, +90 and +180 degrees to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of primitive geometry, mapping with default primitive geometry mapping rules. The result is (for all geometry faces, beginning in the lower left quadrant and moving counter-clockwise): the first column of geometry should display RED, GREEN, BLUE and YELLOW. The second columns should display GREEN, BLUE, YELLOW and RED. The third column should be a downward diagonal of YELLOW, BLUE on the top diagonal, GREEN RED, GREEN, RED on the middle diagonal, and YELLOW, BLUE on the botttom diagonal. The fourth column should display YELLOW, RED, GREEN and BLUE. The fifth columsn should display RED, GREEN, BLUE and YELLOW.
scale_complex scale complex Test scale field for ImageTexture mapping to complex geometry. Test browser ability to apply scales of (left to right) -4 -4, -2 -2, 0.4 .9, 2 2, and 4 4 to an ImageTexture mapped to the faces of complex geometry, using the primitive mapping rules. The results are: a 4 X 4 reversed and inverted matrix of VTS logos should appear on the bottom of the ElevationGrid, on the side and bottom end cap of the Extrusion, and on the front of the IndexedFaceSet. The second column should display a reversed and inverted 2 X 2 matrix of VTS logos on the same geometry faces. The third geometry column should map an enlarged, centered V onto the front of these faces. The fourth column should contain an upright 2 X 2 grid of VTS logos on these faces, and the fifth geometry column should contain a 4 X 4 matrix of upright VTS logos on these faces. All opposing faces should have reversed images, and side faces for the IndexedFaceSet should have smeared pixels.
scale_complex_movietexture scale complex movietexture Test scale field for MovieTexture mapping to complex geometry. Test browser ability to apply scales of (left to right) -4 -4, -2 -2, 0.4 .9, 2 2, and 4 4 to a MovieTexture mapped to the faces of complex geometry, using the primitive mapping rules. The results are: a 4 X 4 reversed and inverted matrix of VTS logos should appear on the bottom of the ElevationGrid, on the side and bottom end cap of the Extrusion, and on the front of the IndexedFaceSet. The second column should display a reversed and inverted 2 X 2 matrix of VTS logos on the same geometry faces. The third geometry column should map an enlarged V onto the front of these faces. The fourth column should contain an upright 2 X 2 grid of VTS logos on these faces, and the fifth geometry column should contain a 4 X 4 matrix of upright VTS logos on these faces. All opposing faces should have reversed images, and side faces for the IndexedFaceSet should have smeared pixels.
scale_complex_pixeltexture scale complex pixeltexture Test scale field for PixelTexture mapping to complex geometry. Test browser ability to apply scales of (left to right) -4 -4, -2 -2, .5 .5, 2 2, and 4 4 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result (using complex geometry mapping rules) is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) : a 4 X 4 reversed and inverted matrix of PixelTextures should appear on these faces in the first (far left) column. The second column should display a reversed and inverted 2 X 2 matrix of PixelTextures. The third geometry column should map a double sized PixelTexture and appear blue on all faces. The fourth column should disiplay a 2 X 2 matrix of right side up PixelTextures, and the fifth column should display a 4 X 4 matrix of PixelTextures. Opposite geometry faces should show reversd mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
scale_primitives scale primitives Test scale field for ImageTexture mapping to primitive geometry. Test browser ability to apply scales of (left to right) -4 -4, -2 -2, .4 .9, 2 2, and 4 4 to an ImageTexture mapped to the faces of primative geometry, using default primitive mapping rules. The result is: a 4 X 4 reversed and inverted matrix of VTS logos should appear on al1 geometry in the first (far left) column. The second colum should display a reversed and inverted 2 X 2 matrix of VTS logos on all geometry faces. The third geometry column should map an upright, enlarged, centered V on the front of all geometry faces. The fourth column should contain an upright 2 X 2 grid of VTS logos on all geometry faces, and the fifth geometry column should contain a 4 X 4 matrix of upright VTS logos on all geometry faces.
scale_primitives_movietexture scale primitives movietexture Test scale field for MovieTexture mapping to primitive geometry.Test browser ability to apply scales of (left to right) -4 -4, -2 -2, 0.4 .9, 2 2, and 4 4 to an MovieTexture mapped to the faces of primative geometry, mapping with the same rules as in test #1. The result (using the primitive mapping rules) is: 4 X 4 reversed and inverted matrix of VTS logos should appear on al1 geometry in the first (far left) column. The second colum should display a reversed and inverted 2 X 2 matrix of VTS logos on all geometry faces. The third geometry column should map an upright, enlarged V on all geometry faces. The fourth column should contain an upright 2 X 2 grid of VTS logos on all geometry faces, and the fifth geometry column should contain a 4 X 4 matrix of upright VTS logos on all geometry faces.
scale_primitives_pixeltexture scale primitives pixeltexture Test scale field for PixelTexture mapping to primitive geometry.Test browser ability to apply scales of (left to right) -4 -4, -2 -2, .5 .5, 2 2, and 4 4 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of primitive geometry, mapping with default primitive geometry mapping rules. The result (using the primitive mapping rules) is: 4 X 4 reversed and inverted matrix of reversed and inverted PixelTextures should appear on al1 geometry in the first (far left) column. The second column should display a reversed and inverted 2 X 2 matrix of PixelTextures on all geometry faces. The third geometry column should map a double sized PixelTexture and appear blue on all faces. The fourth column should display a 2 X 2 matrix of right side up pixeltextures, and the fifth column should display a 4 X 4 matrix of right side up pixeltextures.
translation_complex_s translation complex s Test ImageTexture translation along S axis for complex geometry. Test browser ability to apply translations of (left to right) -100.75 0, -23.25 0, 0 0, 23.25 0, and 100.75 0 to an ImageTexture mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) : The left column shows primitive geometry mapped with the VTS logo vertically centered on all faces, with the ImageTexture beginning on the left at the middle of the V in VTS. The second column shows vertically a vertically centered logo with the texture beginning at the S in the VTS logo. The third column shows a vertically and horizontally centered VTS logo on all faces. The fourth column should be identical to column #1. The fifth column should be identical to column #2. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
translation_complex_s_movietexture translation complex s movietexture Test MovieTexture translation along S axis for complex geometry. Test browser ability to apply translations of (left to right) -100.75 0, -23.25 0, 0 0, 23.25 0, and 100.75 to a MovieTexture mapped to the faces of complex geometry, using default complex geometry mapping rules. The result is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet): The left column shows primitive geometry mapped with the VTS logo vertically centered on these faces, with the MovieTexture beginning on the left at the middle of the V in VTS. The second column shows vertically a vertically centered logo with the texture beginning at the S in the VTS logo. The third column shows a vertically and horizontally centered VTS logo on these faces. The fourth column is identical to column #1. The fifth column is identical to column #2. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
translation_complex_s_pixeltexture translation complex s pixeltexture Test PixelTexture translation along S axis for complex geometry. Test browser ability to apply translations of (left to right) -100.75 0, -23.25 0, 0 0, 23.25 0, and 100.75 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result is (moving counter-clockwise from the corner of the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) : Column #1 is half width BLUE, full width YELLOW, half width BLUE, half width GREEN, full width RED, half width GREEN. Column #2 half width YELLOW, full BLUE, half width YELLOW, half width RED, full GREEN, half width RED. Column #3 is full width BLUE, full width RED, full width YELLOW, full width GREEN. Column #4 is identical to column #1. Column #5 is identical to column #2.
translation_complex_t translation complex t Test ImageTexture translation along T axis for complex geometry. Test browser ability to apply translations of (left to right) 0 -100.75, 0 -23.25, 0 0, 0 23.25, and 0 100.75 to an ImageTexture mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result is: (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) The left column shows primitive geometry mapped with the VTS logo horizontally centered on all faces, with the VTS logo appearing at the bottom of all geometry faces. The second column shows a horizontally centered logo with the VTS logo at the top of all geometry faces. The third column shows a vertically and horizontally centered VTS logo on all faces. The fourth column should be identical to column #1. The fifth column should appear identical to column #2. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
translation_complex_t_movietexture translation complex t movietexture Test MovieTexture translation along t axis for complex geometry. Test browser ability to apply translations of (left to right) 0 -100.75, 0 -23.25, 0 0, 0 23.25, and 0 100.75 to a MovieTexture mapped to the faces of complex geometry, using default complex geometry mapping rules. The result is (for the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet): The left column shows primitive geometry mapped with the VTS logo horizontally centered on these faces, with the VTS logo appearing at the bottom of all geometry faces. The second column shows a horizontally centered logo with the VTS logo at the top of all geometry faces. The third column shows a vertically and horizontally centered VTS logo on these faces. The fourth column should be identical to column #1. The fifth column should appear identical to column #2. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
translation_complex_t_pixeltexture translation complex t pixeltexture Test PixelTexture translation along T axis for complex geometry.Test browser ability to apply translations of (left to right) 0 -100.75, 0 -23.25, 0 0, 0 23.25, and 0 100.75 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of complex geometry, mapping with default complex geometry mapping rules. The result is (moving counter-clociwise from the corner of the bottom face of the ElevationGrid, the side and bottom end cap of the Extrusion, and the front of the IndexedFaceSet) : Column #1 is half height BLUE, half height YELLOW, full RED, half height YELLOW, half height BLUE, full height GREEN. Column #2 is half height GREEN, half height RED, full height YELLOW, half height RED, half height GREEN, full height BLUE. Column #3 is full height BLUE, full height YELLOW, full height RED, full height GREEN. Column #4 is identical to column #1. Column #5 is identical to column #2. Opposite geometry faces should show reversed mapping, and side faces for the IndexedFaceSet should show smeared end pixels of the front and back faces.
translation_primitives_s translation primitives s Test ImageTexture translation along S axis for primitive geometry. Test browser ability to apply translations of (left to right) -100.75 0, -23.25 0, 0 0, 23.35 0, and 100.75 0 to an ImageTexture mapped to the faces of primative geometry, mapping with default primitive mapping rules. The result is: The left column shows primitive geometry mapped with the VTS logo vertically centered on all faces, with the ImageTexture beginning on the left at the middle of the V in VTS. The second column shows a vertically centered logo with the texture beginning at the S in the VTS logo. The third column shows a vertically and horizontally centered VTS logo on all faces. The fourth column should appear identical to column #1. The fifth column should appear identical to column #2.
translation_primitives_s_movietexture translation primitives s movietexture Test MovieTexture translation along S axis for primitive geometry. Test browser ability to apply translations of (left to right) -100.75 0, -23.25 0, 0 0, 23.25 0, and 100.75 to a MovieTexture mapped to the faces of primitive geometry, using default primitive mapping rules. The result is: The left column shows primitive geometry mapped with the VTS logo vertically centered on all faces, with the MovieTexture beginning on the left at the middle of the V in VTS. The second column shows vertically a vertically centered logo with the texture beginning at the S in the VTS logo. The third column shows a vertically and horizontally centered VTS logo on all faces. The fourth column is identical to column #1. The fifth column is identical to column #2.
translation_primitives_s_pixeltexture translation primitives s pixeltexture Test PixelTexture translation along S axis for primitive geometry. Test browser ability to apply translations of (left to right) -100.75 0, -23.25 0, 0 0, 23.25 0, and 100.75 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of primitive geometry, mapping with default primitive geometry mapping rules. The result is (moving counter-clockwise from the lower left corner of all faces): Column #1 is half width BLUE, full width YELLOW, half width BLUE, half width GREEN,full width RED, half width GREEN. Column #2 half width YELLOW, full width BLUE, half width YELLOW, half width RED, full width GREEN, half width RED. Column #3 is full width BLUE, full width RED, full width YELLOW, full width GREEN. Column #4 is identical to column #1. Column #5 is identical to column #2.
translation_primitives_t translation primitives t Test ImageTexture translation along T axis for primitive geometry. Test browser ability to apply translations of (left to right) 0 -100.75, 0 -23.25, 0 0, 0 23.25, and 0 100.75 to an ImageTexture mapped to the faces of primitive geometry, mapping with default primitive mapping rules. The result is: The left column shows primitive geometry mapped with the VTS logo horizontally centered on all faces, with the VTS logo appearing at the bottom of all geometry faces. The second column shows a horizontally centered logo with the VTS logo at the top of all geometry faces. The third column shows a vertically and horizontally centered VTS logo on all faces. The fourth column should be identical to column #1. The fifth column should appear identical to column #2.
translation_primitives_t_movietexture translation primitives t movietexture Test MovieTexture translation along T axis for primitive geometry. Test browser ability to apply translations of (left to right) 0 -100.75, 0 -23.25, 0 0, 0 23.25, and 0 100.75 to a MovieTexture mapped to the faces of primitive geometry, using default primitive mapping rules. The result is: The left column shows primitive geometry mapped with the VTS logo horizontally centered on all faces, with the VTS logo appearing at the bottom of all geometry faces. The second column shows a horizontally centered logo with the VTS logo at the top of all geometry faces. The third column shows a vertically and horizontally centered VTS logo on all faces. The fourth column should be identical to column #1. The fifth column should appear identical to column #2.
translation_primitives_t_pixeltexture translation primitives t pixeltexture Test PixelTexture translation along T axis for primitive geometry. Test browser ability to apply translations of (left to right) 0 -100.75, 0 -23.25, 0 0, 0 23.25, and 0 100.75 to a PixelTexture consisting of a square checkerboard of blue (lower left quadrant), yellow (lower right), red (upper right) and green (upper left) mapped to the faces of primitive geometry, mapping with default primitive geometry mapping rules. The result is (moving counter-clockwise from the lower left corner of all faces): Column #1 is half height BLUE, half height YELLOW, full height RED, half height YELLOW, half height BLUE, full height GREEN. Column #2 is half GREEN, half height RED, full height YELLOW, half height RED, half height GREEN, full height BLUE. Column #3 is full height BLUE, full height YELLOW, full height RED, full height GREEN. Column #4 is identical to column #1. Column #5 is identical to column #2.

Online at http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/TextureTransform

Validate XHTML 1.1

Master source-code model archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/TextureTransform

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Javadoc for translated java source Next Chapter Summary X3D Resources