Ray Switch
This tab allows you to set a texture and projection mode for each ray type.
Texture Mode must be set to "Ray Switch" in the General section of this shader for these options to become active.
This is the texture map that is used as a background.
Cinema 4D also allows you to use movies as textures. You can load a video or picture sequence in the same way as you would a bitmap image (by clicking the folder button). The Animation settings control how the movie will be played back.
Example 1: You want to play a video or frame sequence.
-
Load the movie.
-
Click the movie's name (Texture box) or preview picture.
-
Click the Animation tab.
- Click Calculate.
Result: the movie is played back once and is second-synchronized.
Example 2: You want to play a movie from frame 25 to frame 350 of your animation, forwards and backwards (ping-pong) twice.
-
Load the movie.
-
Click the movie's name (Texture box) or preview picture.
-
Click the Animation tab.
-
Click Calculate.
-
Set Mode to Ping-Pong.
-
Set Timing to Range.
-
Set Range Start to 25 and Range End to 350.
- Set Loops to 1 so that the movie will be played twice.
Result: the movie is played forwards and backwards, then backwards and forwards using frame 25 to frame 350 of your animation.
Mode
Mode sets the general playback mode: Simple will play the movie once from start to finish; Loop will play the movie from start to finish repeatedly; Ping-Pong will play the movie from start to finish to start repeatedly. With Loop, the texture remains on the last frame of the movie once it has finished playing.
Use Timing to set the timing of the movie. Exact Frame will use one frame of the movie per frame of your animation. No frames will be dropped. If the movie and your animation use a different FPS (Frames Per Second) setting, the movie will play back at a faster or slower speed than the original speed. Exact Second matches each second of the movie against each second of your animation, thus ensuring that the movie will be played back at the original speed. If you choose Range, Cinema 4D will play the movie once over a specified frame range (Range Start and Range End) of your animation. Use this option if you do not want the texture to start playing immediately.
Loops[-2147483648..2147483647]
You can use Loops to repeat the movie a finite number of times. If you set Loops to 1, the movie will be repeated once.
Frame Start[-2147483648..2147483647]
Frame End[-2147483648..2147483647]
Frame Rate[-2147483648..2147483647]
Use these settings to define which part of a loaded movie or image sequence should be used with which frame rate. Use Frame Start and Frame End to define when (which frame) a sequence should begin and when it should end. If the same value is entered into both fields, only that frame of the animation will be used as a texture.
Start Offset[-2147483648..2147483647]
Here you can specify the number of frames that should be cut off from the start of the loaded image sequence or video. The start image of the animation is therefore shifted accordingly.
Detect Frames
If you click on Calculate, Cinema 4D will automatically enter the film's parameters into the corresponding fields. It is not necessary to find out in advance how long the film is and which frame rate it has. When rendering sequential images, this information will be ascertained based on the lowest and highest image number. A frame rate of 25fps will be assumed. Other rates have to be entered manually.
Example:
A video contains 600 frames (0 to 599) and has a frame rate of 15 fps. You can select the range that is played, e.g., from frame 70 to frame 119 (even backwards, if desired).
Here you can define if the embedded color profile of the loaded bitmap or video should be used or if you like to manually activate another color profile. If you activate the Auto setting, the color profile from the bitmap or video is automatically used.
Use this to manually adjust the gamma value of the loaded bitmap or video.
Common image adjustments.
Most non HDR textures require gamma correction during sampling. If your texture is SRGB compliant then you need to check the SRGB option.
This specifies the projection mode for the texture, of which can be one of the following:
- Spherical – Projects the image as if you were inside a sphere. Note this mode is for panoramic longitude/latitude maps, NOT for 'mirror ball' maps.
- Cylindrical – Projects the image as if you were inside a vertically aligned cylinder.
- Cubic Strip – Projects the image as if you were inside a cube, with each face of the cube laid out horizontally in a strip.
- Cubic Cross Sideways – Projects the image as if you were inside a cube, with each face of the cube laid out as an horizontal cross.
- Cubic Cross – Projects the image as if you were inside a cube, with each face of the cube laid out as a vertical cross.
|
|
|
|
|
|
| Spherical | Cylindrical | Cubic Strip | Cubic Cross Sideways | Cubic Cross |
This is the texture map that is used as for reflections.
Cinema 4D also allows you to use movies as textures. You can load a video or picture sequence in the same way as you would a bitmap image (by clicking the folder button). The Animation settings control how the movie will be played back.
Example 1: You want to play a video or frame sequence.
-
Load the movie.
-
Click the movie's name (Texture box) or preview picture.
-
Click the Animation tab.
- Click Calculate.
Result: the movie is played back once and is second-synchronized.
Example 2: You want to play a movie from frame 25 to frame 350 of your animation, forwards and backwards (ping-pong) twice.
-
Load the movie.
-
Click the movie's name (Texture box) or preview picture.
-
Click the Animation tab.
-
Click Calculate.
-
Set Mode to Ping-Pong.
-
Set Timing to Range.
-
Set Range Start to 25 and Range End to 350.
- Set Loops to 1 so that the movie will be played twice.
Result: the movie is played forwards and backwards, then backwards and forwards using frame 25 to frame 350 of your animation.
Mode
Mode sets the general playback mode: Simple will play the movie once from start to finish; Loop will play the movie from start to finish repeatedly; Ping-Pong will play the movie from start to finish to start repeatedly. With Loop, the texture remains on the last frame of the movie once it has finished playing.
Use Timing to set the timing of the movie. Exact Frame will use one frame of the movie per frame of your animation. No frames will be dropped. If the movie and your animation use a different FPS (Frames Per Second) setting, the movie will play back at a faster or slower speed than the original speed. Exact Second matches each second of the movie against each second of your animation, thus ensuring that the movie will be played back at the original speed. If you choose Range, Cinema 4D will play the movie once over a specified frame range (Range Start and Range End) of your animation. Use this option if you do not want the texture to start playing immediately.
Loops[-2147483648..2147483647]
You can use Loops to repeat the movie a finite number of times. If you set Loops to 1, the movie will be repeated once.
Frame Start[-2147483648..2147483647]
Frame End[-2147483648..2147483647]
Frame Rate[-2147483648..2147483647]
Use these settings to define which part of a loaded movie or image sequence should be used with which frame rate. Use Frame Start and Frame End to define when (which frame) a sequence should begin and when it should end. If the same value is entered into both fields, only that frame of the animation will be used as a texture.
Start Offset[-2147483648..2147483647]
Here you can specify the number of frames that should be cut off from the start of the loaded image sequence or video. The start image of the animation is therefore shifted accordingly.
Detect Frames
If you click on Calculate, Cinema 4D will automatically enter the film's parameters into the corresponding fields. It is not necessary to find out in advance how long the film is and which frame rate it has. When rendering sequential images, this information will be ascertained based on the lowest and highest image number. A frame rate of 25fps will be assumed. Other rates have to be entered manually.
Example:
A video contains 600 frames (0 to 599) and has a frame rate of 15 fps. You can select the range that is played, e.g., from frame 70 to frame 119 (even backwards, if desired).
Here you can define if the embedded color profile of the loaded bitmap or video should be used or if you like to manually activate another color profile. If you activate the Auto setting, the color profile from the bitmap or video is automatically used.
Use this to manually adjust the gamma value of the loaded bitmap or video.
Common image adjustments.
Most non HDR textures require gamma correction during sampling. If your texture is SRGB compliant then you need to check the SRGB option.
