Rayfront 1.0 User Manual

Contact | Sitemap | Search

Function Mixture Type


A mixfunc is a mixture defined by a function. The foreground and background modifiers are blended into each other according to the value of the mixing function. If the value is one, then only the foreground modifier will take effect, if it is zero, only the background modifier.

The foreground and background mofidiers are assigned per object in the object list of the material assignment dialog.

[Mixfunc Parameters Dialog]

Function File:
This pop-up list offers all function files known to the system for selection. If a file is active, then the variables in that file can be selected for one or several of the vector coordinates. Otherwise, the coordinates must be entered as expressions.
Start the text editor that was configured in the project preferences to edit the function file.
Create a new function file, and start the text editor to edit it.

Mixing Coefficient
The value that defines the relative weight of the foreground and background modifier. This can either be selected from the variables in a function file as selected above, or it may be entered as an expression. An expression can contain numeric values, operators and all functions and variables known to the material. If an expression is not valid, then the entry field will have a red background, and the message bar at the bottom of the dialog will show a diagnostic message.

Real Arguments
Rayfront will check the selected function file to decide how many real arguments the material definition should supply. If this number is greater than the mandatory arguments specifying the basic properties, then the expected number of entry fields in the list is made available. Supplying those arguments is optional, but failing to do so may result in runtime errors when the selected function relies on a specific argument which is not set.

The Transformation page of the dialog can be used to transform the vector, possibly to bring it in alignment with the geometry of the surface the mixture modifies.


User Manual Overview
     The Simulation Control Center
         Project Variation Settings
             Modifier Types
                 Mixture Types

Next: Mixdata, Mixpict
Copyright © 2004-2020 schorsch.com