Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class Scene3D

    3D scene type that extends the base Scene with 3D-specific functionality. Contains world, camera, and 3D rendering capabilities.

    Inheritance
    object
    Scene
    Scene3D
    EditorPreviewScene3D
    Implements
    IDisposable
    Inherited Members
    Scene.IsLoaded
    Scene.HidesOsCursor
    Scene.Host
    Scene.CommandHandler
    Scene.SceneLoader
    Scene.SceneFileElements
    Scene.SceneData
    Scene.SceneInputContext
    Scene.DynamicBindings
    Scene.HierarchyManager
    Scene.ResolveHost()
    Scene.GetSceneFilePath()
    Scene.Load()
    Scene.Dispose()
    Scene.ConfigureInputBindings()
    Scene.OnLoad()
    Scene.OnUnload()
    Scene.ResolveBindingSource(BindingSource, object)
    Scene.UpdateBindings()
    Scene.AddBinding(DynamicBinding)
    Scene.SetSceneData(SceneData)
    Scene.GetElement<T>(string)
    Scene.GetElementOrNull<T>(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PopcorningGuineaPig.Engine.Scenes
    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
    Type Description
    IReadOnlyList<AnimatedModelInstance>
    | 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
    Type Description
    CubemapSky
    | 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
    Type Description
    Skybox
    | Edit this page View Source

    WorldModel

    Declaration
    protected Model? WorldModel { get; }
    Property Value
    Type Description
    Model?

    Methods

    | Edit this page View Source

    AddAnimatedModel(AnimatedModelInstance)

    Declaration
    public void AddAnimatedModel(AnimatedModelInstance instance)
    Parameters
    Type Name Description
    AnimatedModelInstance instance
    | 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
    Type Name Description
    AnimatedModelInstance instance
    Returns
    Type Description
    bool
    | 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
    Scene.Render(int, int)
    | 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
    Type Name Description
    CubemapSky sky
    | 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
    Scene.Unload()
    | Edit this page View Source

    Update(double)

    Declaration
    public override void Update(double deltaTime)
    Parameters
    Type Name Description
    double deltaTime
    Overrides
    Scene.Update(double)

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.