Exemplo n.º 1
0
        public SimpleScene(DeviceManager devicemanager, Camera.CameraV2 cam)
        {
            _dev_manager = devicemanager;
            _camera = cam;

            InitScene();
        }
Exemplo n.º 2
0
        public MeshRender(String object_file, DeviceManager dev_manager, Camera.Camera cam)
        {
            _cam = cam;
            _dev_manager = dev_manager;
            _device = _dev_manager.Device;
            _object_file_path = object_file;
            _mesh_parser = new Lexer();

            Scaling = 1f;
            Position = Vector3.Zero;

            OnRestore();
        }
Exemplo n.º 3
0
        public Scene(DeviceManager device_manager, Camera.Camera camera)
        {
            _dev_manager = device_manager;
            //String objfile = @"C:\Users\karli\Documents\Visual Studio 2010\Projects\DirectXSamples\MeshFromOBJ10\media\cup.obj";
            String objfile = @"C:\Users\karli\Desktop\mmeshes\testcube.obj";
            String obj_blue = @"C:\Users\karli\Desktop\mmeshes\blue.obj";
            String obj_red = @"C:\Users\karli\Desktop\mmeshes\red.obj";
            //String objfile = @"C:\logicxklu\Projekte\F&E\150-Kis\8-Unterlagen\MeshObj\media\plane_green.obj";
            _mesh_render = new MeshRender(objfile, device_manager, camera);
            _blue_render = new MeshRender(obj_blue, device_manager, camera);
            _red_render = new MeshRender(obj_red, device_manager, camera);

            _blue_render.Scaling = 0.5f;
            _blue_render.Position = new Vector3(1.5f, 0.5f, 0.5f);

            _red_render.Scaling = 0.10f;
            _red_render.Position = new Vector3(-2f, -0.5f, 0f);

            InitScene();
        }