Platforms to show: All Mac Windows Linux Cross-Platform
Back to SCNLevelOfDetailMBS class.
SCNLevelOfDetailMBS.levelOfDetailWithGeometryAndScreenSpaceRadius(geo as SCNGeometryMBS, screenSpaceRadius as Double) as SCNLevelOfDetailMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | SceneKit | MBS Mac64bit Plugin | 19.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
geometry: The geometry to render for this level of detail.
radius: The maximum radius (in pixels) of the geometry’s bounding sphere for this level of detail to appear.
Returns a level-of-detail object. You associate levels of detail with a SCNGeometry object using its levelsOfDetail property.
When rendering a geometry with associated levels of detail, SceneKit calculates the radius in pixels of the circle covered by a geometry’s bounding sphere, then renders the geometry for the SCNLevelOfDetail object with the largest radius parameter smaller than that circle.
If you pass nil for the geometry parameter, SceneKit renders no geometry for the level of detail. Creating a level-of-detail object with no geometry allows you to skip rendering costs entirely for an object when it would appear very far away or very small.
SCNLevelOfDetailMBS.levelOfDetailWithGeometryAndWorldSpaceDistance(geo as SCNGeometryMBS, worldSpaceDistance as Double) as SCNLevelOfDetailMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | SceneKit | MBS Mac64bit Plugin | 19.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
geometry: The geometry to render for this level of detail, or nil if SceneKit should render no geometry at this level of detail.
distance: The minimum distance from the current point of view for this level of detail to appear.
Returns a level-of-detail object. You associate levels of detail with a SCNGeometry object using its levelsOfDetail property.
When rendering a geometry with associated levels of detail, SceneKit calculates the distance from the current point of view to the geometry’s parent node, then renders the geometry for the SCNLevelOfDetail object with the smallest distance parameter greater than that distance.
If you pass nil for the geometry parameter, SceneKit renders no geometry for the level of detail. Creating a level-of-detail object with no geometry allows you to skip rendering costs entirely for an object when it would appear very far away or very small.
The items on this page are in the following plugins: MBS Mac64bit Plugin.