Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

SCNMaterialPropertyMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class SceneKit MBS Mac64bit Plugin 19.1 Yes No No Yes, macOS only No
Function: A container for the color or texture of one of a material’s visual properties.
Notes:
A material has several visual properties that together determine its appearance under lighting and shading. SceneKit renders each pixel in the scene by combining the information from material properties with the locations, intensities, and colors of lights.
A material property’s contents can be either a color, which provides a uniform effect across the surface of a material, or a texture, which SceneKit maps across the surface of a material using texture coordinates provided by the geometry object the material is attached to. A texture, in turn, can come from any of several sources, such as an image object, a URL to an image file, a specially formatted image or set of images for use as a cube map, or even animated content provided by Core Animation, SpriteKit, or AVFoundation—for the full set of options, see the contents property.

see also
https://developer.apple.com/documentation/scenekit/scnmaterialproperty

Feedback, Comments & Corrections

Filter Modes

Constant Value Description
SCNFilterModeLinear 2 Texture filtering sample texels from the neighborhood of the coordinates being sampled and linearly interpolates their colors.
SCNFilterModeNearest 1 Texture filtering returns the color from only one texel, whose location is nearest to the coordinates being sampled.
SCNFilterModeNone 0 No texture filtering is applied.
Only valid for the mipFilter property, specifying that SceneKit should not use mip mapping.

Wrap Modes

Constant Value Description
SCNWrapModeClamp 1 Texture coordinates are clamped to the range from 0.0 to 1.0, inclusive.
Texture sampling in areas whose texture coordinates would fall outside this range produces texel colors from the nearest edge of the texture image.
SCNWrapModeClampToBorder 3 Texture sampling uses texture colors for coordinates in the range from 0.0 to 1.0 (inclusive) and the material property’s borderColor value otherwise.

Texture sampling in areas whose texture coordinates would fall outside this range uses the borderColor property instead of texel colors from the texture image.
SCNWrapModeMirror 4 Texture sampling of texture coordinates outside range from 0.0 to 1.0 should behave as if the range reverses before repeating.

Texture sampling in areas of the material whose texture coordinates would fall outside from 0.0 to 1.0 results in tiling both texture image and its mirror image across the surface using the material.
SCNWrapModeRepeat 2 Texture sampling uses only the fractional part of texture coordinates, passing through the range from 0.0 to (but not including) 1.0.

Texture sampling in areas of the material whose texture coordinates would fall outside from 0.0 to 1.0 results in tiling the texture image across the surface using the material.

This class has no sub classes.

Some properties using for this class:

Blog Entries


The items on this page are in the following plugins: MBS Mac64bit Plugin.


SCNMaterialMBS   -   SCNMatrix4MBS

The biggest plugin in space...




Links
MBS Xojo PDF Plugins