Skip to content

Example #43

Answered by hjoykim
iulianiuga asked this question in Q&A
Oct 10, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

hello
TrackballController must inherit ControlContainer.
Try it like this

using OpenTK.Windowing.Common;
using OpenTK.WinForms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using THREE;
using Color = THREE.Color;
namespace SingleFormsDemo
{
    public class THREEAppInstance : ControlsContainer
    {
        public GLRenderer renderer;
        public Camera camera;
        public Scene scene;
        public TrackballControls controls;
        public GLControl glControl;

        public THREEAppInstance()
        {
            renderer = new GLRenderer();
            camera = new PerspectiveCamera();
            scene = …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@iulianiuga
Comment options

Comment options

You must be logged in to vote
1 reply
@iulianiuga
Comment options

Answer selected by hjoykim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants