public Bootstrap(Viewer OV, IntPtr Handle, int width, int height) { this.OV = OV; this.Handle = Handle; this.width = width; this.height = height; }
public RefController(Viewer viewer) { this.viewer = viewer; device = viewer.Device; driver = device.VideoDriver; smgr = device.SceneManager; guienv = device.GUIEnvironment; }
public OpenViewerHost() { InitializeComponent(); viewer = new Viewer(); viewer.Height = 600; viewer.Width = 800; viewer.LoginMode = "manual"; viewer.ServerURI = "10.0.1.81:10001"; viewer.FirstName = "test"; viewer.LastName = "test"; viewer.Password = "******"; viewer.DrawSea = "true"; viewer.DrawShadow = "false"; viewer.DrawSky = "true"; viewer.DrawTerrain = "true"; viewer.IsStandUpIcon = true; viewer.CameraMinDistance = 0.1f; SetupConfig(); viewer.Adapter = new Adapter(); viewer.Adapter.OnOpenWindow += OnOpenWindow; viewer.Version = new Version(1, 0, 0, 0); string helpURL = m_config.Source.Configs["Startup"].Get("help_url", "http://3di-opensim.com/"); string locale = m_config.Source.Configs["Startup"].Get("locale", "jp"); string debugTab = m_config.Source.Configs["Startup"].Get("debug_tab", "false"); string cameraReverse = m_config.Source.Configs["Startup"].Get("reverse_camera_pitch", "false"); string seaQuality = m_config.Source.Configs["Shader"].Get("sea_quality", "low"); string skyQuality = m_config.Source.Configs["Shader"].Get("sky_quality", "low"); long teleportTimeout = m_config.Source.Configs["Startup"].GetLong("teleport_timeout", 20); // Read Debug config. Nini.Config.IConfig debug = m_config.Source.Configs["Debug"]; if (debug != null) { viewer.VoiceWaitTime = debug.GetInt("voice_wait_time", Viewer.DEFAULT_DEBUG_VOICE_WAIT_TIME); } viewer.HelpURL = helpURL; viewer.Locale = locale; viewer.IsVisibleDebutTab = (debugTab == "true" ? true : false); viewer.IsCameraPitchReverse = (cameraReverse == "true" ? true : false); #if !LINUX viewer.SetShaderQuality(OpenViewer.Managers.ShaderManager.ShaderType.Sea, seaQuality); viewer.SetShaderQuality(OpenViewer.Managers.ShaderManager.ShaderType.AdvancedSea, seaQuality); #endif viewer.SetShaderQuality(OpenViewer.Managers.ShaderManager.ShaderType.Sky, skyQuality); viewer.TeleportTimeout = teleportTimeout * 10000000; viewer.Startup(this.Handle); }
/// <summary> /// User's Camera /// </summary> /// <param name="psmgr">Scene Manager</param> public Camera(Viewer _viewer) : base(_viewer, -1) { // VOtarget = null; SNCamera = Reference.SceneManager.AddCameraSceneNode(Reference.SceneManager.RootSceneNode); SNCamera.Position = new Vector3D(0f, 235f, -44.70f); SNCamera.Target = new Vector3D(-273, -255.3f, 407.3f); SNCamera.FarValue = 12800; SNCamera.FOV = Reference.Viewer.CameraFOV; SNCamera.Name = "Camera"; LookAtCam[0] = Vector3.Zero; LookAtCam[1] = Vector3.Zero; LookAtCam[2] = Vector3.Zero; nowDistance = Reference.Viewer.CameraDistance; UpdateCameraPosition(); }
public OpenViewerCtl() { InitializeComponent(); InitializeVersion(); OV = new OpenViewer.Viewer(); OV.Adapter = new Adapter(); }
public IrrMeshThread(Viewer viewer, VObject _obj, string _directory) : base(viewer, -1) { obj = _obj; workDirectory = _directory; }
public RenderForm(Viewer viewer) { this.viewer = viewer; this.Cursor = null; }