Class Scene3D
3D scene type that extends the base Scene with 3D-specific functionality.
Contains world, camera, and 3D rendering capabilities.
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public abstract class Scene3D : Scene, IDisposable
Properties
|
Edit this page
View Source
AnimatedModels
Declaration
protected IReadOnlyList<AnimatedModelInstance> AnimatedModels { get; }
Property Value
|
Edit this page
View Source
Cubemap
Optional cubemap sky. Drawn instead of Skybox when set. The game owns it.
Declaration
protected CubemapSky? Cubemap { get; }
Property Value
|
Edit this page
View Source
MainCamera
Declaration
protected Camera3D? MainCamera { get; }
Property Value
| Type |
Description |
| Camera3D? |
|
|
Edit this page
View Source
Skybox
Optional five-face sky. The game owns it; this scene only draws it.
Declaration
protected Skybox? Skybox { get; }
Property Value
|
Edit this page
View Source
WorldModel
Declaration
protected Model? WorldModel { get; }
Property Value
Methods
|
Edit this page
View Source
AddAnimatedModel(AnimatedModelInstance)
Declaration
public void AddAnimatedModel(AnimatedModelInstance instance)
Parameters
|
Edit this page
View Source
ClearAnimatedModels()
Declaration
public void ClearAnimatedModels()
|
Edit this page
View Source
ComputeBoundingBox()
Union AABB over every renderable piece of geometry the scene owns —
world model plus every valid animated-model instance. Returns null
when the scene has nothing the editor's auto-framing camera could
anchor to (empty scene, all geometry unloaded); callers use that
null to fall back to a sensible default rather than frame
zero-extent geometry. Story 4.4 entrypoint for the editor
viewport's bounding-sphere camera placement.
Declaration
public BoundingBox? ComputeBoundingBox()
Returns
| Type |
Description |
| BoundingBox? |
|
|
Edit this page
View Source
RemoveAnimatedModel(AnimatedModelInstance)
Declaration
public bool RemoveAnimatedModel(AnimatedModelInstance instance)
Parameters
Returns
|
Edit this page
View Source
Render(int, int)
Declaration
public override void Render(int width, int height)
Parameters
| Type |
Name |
Description |
| int |
width |
|
| int |
height |
|
Overrides
|
Edit this page
View Source
SetCubemapSky(CubemapSky?)
Attach a cubemap sky. When it is ready, Render(int, int) draws it
instead of Skybox. The caller still owns and must dispose it.
Declaration
public void SetCubemapSky(CubemapSky? sky)
Parameters
|
Edit this page
View Source
SetMainCamera(Camera3D)
Declaration
public void SetMainCamera(Camera3D camera)
Parameters
| Type |
Name |
Description |
| Camera3D |
camera |
|
|
Edit this page
View Source
SetSkybox(Skybox?)
Attach a skybox the scene will draw first inside BeginMode3D.
The caller still owns and must dispose it. Swap day/night by
replacing faces on the same instance or passing a new one.
Declaration
public void SetSkybox(Skybox? skybox)
Parameters
| Type |
Name |
Description |
| Skybox |
skybox |
|
|
Edit this page
View Source
SetWorldModel(Model)
Declaration
public void SetWorldModel(Model model)
Parameters
| Type |
Name |
Description |
| Model |
model |
|
|
Edit this page
View Source
Unload()
Declaration
public override void Unload()
Overrides
|
Edit this page
View Source
Update(double)
Declaration
public override void Update(double deltaTime)
Parameters
| Type |
Name |
Description |
| double |
deltaTime |
|
Overrides
Implements