id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	guest	host
475	3D acceleration support for VBox guests	sandervl73		This ticket is used to track development of 3d acceleration support. \r\n\r\nI have committed my initial OpenGL guest support to the public SVN tree:\r\n * http://www.virtualbox.org/browser/trunk/src/VBox/HostServices/SharedOpenGL \r\n * http://www.virtualbox.org/browser/trunk/src/VBox/Additions/WINNT/Graphics/OpenGL\r\n\r\nCurrent status:\r\n * communication framework between guest and host is present\r\n * simple OpenGL samples are functional; they display their rendered output in an external window on the host for testing purposes)\r\n * supported are only Windows guests combined with a Windows host\r\n * not all OpenGL commands are implemented; most simple ones are\r\n\r\nPlans:\r\n * Linux host and guest OpenGL support\r\n * Add OpenGL extensions as reported by the host OS\r\n * Direct3D emulation using OpenGL\r\n\r\nWe are looking for external developers with an interest to help us out to complete this work. \r\n\r\nInstallation instructions:\r\n\r\nTo enable it you must add the following registry keys:\r\n{{{\r\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\OpenGLDrivers\\VBoxOGL]\r\n"Version"=dword:00000002\r\n"DriverVersion"=dword:00000001\r\n"Flags"=dword:00000001\r\n"Dll"="VBoxOGL.dll" \r\n}}}\r\nYou need to build the latest additions from SVN as the OpenGL ICD mechanism needs a change in the display driver.\r\n\r\nVBoxOGL.dll needs to be present in \\Windows\\System32.\r\n\r\nTEMPORARY requirement: to enable OpenGL you must change src\\VBox\\Main\\VMMDevInterface.cpp at line 606.\r\n\r\nYou can also directly link the OpenGL test cases with VBoxOGL.lib to test them directly.\r\n * replace $(PATH_SDK_W2K3DDKX86_LIB)/opengl32.lib with $(PATH_LIB)/VBoxOGL.lib in the makefile of the test cases\r\n * add VBOX_WITH_WGL_EXPORTS to VBoxOGL_DEFS in the VBoxOGL makefile\r\n\r\nEnabling logging can be of invaluable help while debugging problems.\r\n * export the VBOX_LOG variable and set it to -all+shared_opengl+dev_vmm_backdoor\r\n * build the debug version of VBox\r\n\r\nThe full debug version of VBox adds quite a bit of overhead and might assert from time to time. For OpenGL debugging you only need to use the debug binaries of the hardware Devices (VBoxDD*.*). You can simply copy them into the directory with the full release version. (both must be at the same SVN level of course)	defect	closed	major	3D support	VirtualBox 1.4.0	fixed			other	other
