KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Models > Sections > Attributes > Material
Materials

Materials

Surfaces of real objects have different color and reflective properties. Metal is shiny, unpolished wood is not. To model different types of surfaces every object in DInsight models have Material property.

A DInsight Material consist of three colors in RGB format and one float number - shininess. The three colors are 

Ambient color - component of ambient light, which the surface reflects. Ambient light is the light, which scattered in the environment.

Diffuse color - component of diffuse light, which the surface reflects. Diffuse color comes from particular direction, most often from a light source but scattered in all directions equally. Diffuse light reflects with most intensity when it comes squarely down on the surface. 

Specular color is the color which comes from particular direction and is reflected in a preferred direction, thus creating spotlights.

Each color in DInsight implementation is represented by three numbers of float type in range 0.0 to 1.0  for Red, Green and Blue components. 

Shininess of the material represented by single float number in range 0.0 to 128.0. The higher the value is, the smaller and brighter are highlights on the surface.

To model materials with a specific pattern on the surface like wood or brick textures can be used.    

In 3D Debugger material properties can be modified using Material editor

In KernelCAD control properties of the material can be modified using IMaterial interface.