|
5 X3D Models | X3D Model Descriptions | |
---|---|---|
hierarchy | Test a ColorInterpolators ability to continue to receive and generate events when it is no longer part of the transformantion hierarchy. The ColorInterpolator in this world is "switched"out by setting its parent Switch node whichChoice value to "-1" . The result should be: the ColorInterpolator should continue to change the color of the Sphere in this world from red, green, to blue continuously, even though it has been "switched out". | |
keys 1000 | Test of a ColorInterpolator ability to interpolate between a minimum conformance requirement of 1000 key/keyValue pairs. The fraction_changed eventOut of a TimeSensor node is used to change the color from keyValues blue to yellow and back to blue, created by combining sine functions of red and green and cosine function of blue over a 180 degree arc. The result should be a sphere geometry that changes from blue, to yellow, to blue in a 5 second interval. | |
samekeys | Test keys with same value. A ColorInterpolator node is used to change the color of a Sphere geometry. The fraction_changed field of a TimeSensor node is used to change the color from keyValues of red, red, green, blue and blue [ 1 0 0, 1 0 0, 0 1 0, 0 0 1, 0 0 1]. Each keyValue has a corresponding key of [ 0.0, 0.5, 0.5, 0.5, 1.0] respectively. The value_changed field is routed to the diffuseColor field of the geometry. The result thould be: The Sphere should change color from red, to blue and back to red in a 5 second cycle. The green color should NOT appear on the Sphere, since only the lower and upper color limits (red and blue) for the 0.5 key are determined. | |
simple | Test of basic ColorInterpolator functionality. A ColorInterpolator node is used to change the color of a Sphere geometry. The fraction_changed field of a TimeSensor node is used to change the color from keyValues of red, green blue [ 1 0 0, 0 1 0, 0 0 1]. Each keyValue has a corresponding key of [ 0.0, 0.5, 1.0] repsectively. The value_changed field is routed to the diffuseColor field of the geometry. The result thould be: The Sphere should change color from red, to green, to blue, continuously in a 5 second cycle. | |
value changed | Test of a ColorInterpolatorss ability to load the correct keyValue into its value_changed field before any events are received. The Sphere on the left has its color set to that of the value_changed field of a ColorInterpolator that has "blue" as its first SFColor keyValue. This value is routed to the Spheres Material node diffuseColor through a Script node. As a result, the left Sphere should first appear "white", then, when the pointing device passes over the left Sphere, it should turn blue, then return to white when the pointing device is no longer over the Sphere. The second Sphere on the right has a similar set of conditions, with the exception of having a ColorInterpolator with NULL keys and keyValues. This should result in the value_changed field having an initial SFColor value of 0 0 0 before any events are received by the ColorInterpolator. As a result, the right Sphere should first appear white, then turn "black" (a default of 0 0 0) when the pointing device passes over the Sphere, then return to white when the pointing device no longer indicates the Sphere. |
Online at https://www.web3d.org/x3d/content/examples/ConformanceNist/Interpolators/ColorInterpolator Master source-code model archive is under version control at |
The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.