Render

Rendering is the process of generating a more realistic looking 3D model. In Mobius, this can be achieved using the colour attribute, Render functions and/or the 3D Viewer Setting.

See 3D Viewer Setting


Colour Attribute

Users can assign different colours to entities using reserved attribute vertices@rgb.

  1. Obtain the list of vertices of the entity using function query.Get.
  2. Create attribute name rgb for the vertices, assigning an attribute value that is a list of 3 numbers, that are equivalent to the desired colour code values divided by 255. The colour code is a list of 3 numbers that represents red, green and blue in the RGB colour wheel respectively.


Example

The desired colour has the following code: 131, 131, 131 on a RGB colour picker. Divide each number by 255 and input it in Mobius in the form of a list [0.7, 0.7, 0.7].

Colour Code on the RGB Colour Picker
Figure: Colour Code on the RGB Colour Picker
Colour attribute in Mobius
Figure: Colour attribute in Mobius


Render Functions

Users will have to create reserved attribute polygons@material first before using the Render functions.

Glass

Users can make adjustments to the material’s opacity value. Glass Example

Basic Material

Similar to Glass. However, it provides the option to change colour. Basic Material Example

results matching ""

    No results matching ""