IBM TJ Watson Research

IBMTextureGradientsSpinning

IBMTextureGradientsSpinning.mp4

Description

This test case demonstrates texturing effects that can produce gradients. For example a simple 2 pixel texture will be rendered as a gradient going from the one pixel color to the other over the geometry being textured. Note, that while this is the usual expected behavior some players may not interpolate the colors resulting in half the geometry in one color and half in the other (pixel replication for scaling versus interpolation). More complex gradient fills can be created using more than two pixels.

A series of textures creating gradient patterns are shown for a Rectangle, Circle, IndexedFaceSet2D, Curve2D and Text. Each shape is rotated through 360 degrees, anticlockwise, over a period of 5s and then for 5s the shapes stand still in their unrotated state. At the start of each rotation the texture is switched. There are six textures in all and once the sixth is shown it goes back to the first and repeats this cycle indefinitely.

The textures are as follows:

  1. A 1x2 pixel RGB PixelTexure having Yellow pixel on the top and Red pixel on the bottom
  2. A 2x1 pixel RGB PixelTexure having Green pixel on the left and Blue pixel on the right
  3. A 1x3 pixel RGB PixelTexure having Blue pixels on the top and bottom, with Yellow pixel in the middle
  4. A 4x1 pixel RGB PixelTexure having a Green, Red, Blue and Yellow pixel in left to right order
  5. A 15x15 pixel JPG image in an ImageTexture having yellow circular gradient fill on a blue background.
  6. A 4x4 pixel RGBA PixelTexure having a partially transparent single pixel wide red border on all sides, with the remaining two by two area in the center filled by two opaque Cyan pixels on the left and two opaque Yellow pixels on the right.

Screenshot

Snapshot taken during first texturing.



Snapshot taken during second texturing.



Snapshot taken during third texturing.



Snapshot taken during fourth texturing.



Snapshot taken during fifth texturing.



Snapshot taken during sixth texturing.



Back to main index