The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message



Forums
OpenGL 3.3 renderer rewrite - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4)
+--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9)
+--- Thread: OpenGL 3.3 renderer rewrite (/showthread.php?tid=1421)

Pages: 1 2 3 4 5


OpenGL 3.3 renderer rewrite - joevenzon - 01-06-2011

I'm planning on rewriting the rendering engine from scratch using OpenGL 3.3. The main reason for rewriting the rendering engine is to make it easier to support multiple types of texture maps and materials (instead of this "miscmap" nonsense), multiple UV sets, precomputed tangent space for cheaper normal mapping, and so on. The reason for using OpenGL 3.3 is because it's fairly well supported now (Geforce 8 and up or equivalent), the API is nice and clean, and I want to play with the new features. For cards that don't support OpenGL 3.3, they'd get the crap-graphics-no-shaders fallback mode. Thoughts? Complaints? Outrage?


- abs1nth - 01-06-2011

sadly mac os x currently only supports opengl 2.1 plus many extensions from opengl 3.x:

http://developer.apple.com/graphicsimaging/opengl/capabilities/


- joevenzon - 01-07-2011

Windows only supports OpenGL 1, but you can get around the lack of OS support with GLEW. I wonder if it's the same thing with OSX. Do you have an OpenGL 3 compatible card to test with? Running "glewinfo | grep VERSION" should show what GLEW detects.


- portets - 01-07-2011

what was wrong with my post?

i don't see a reason for why it was deleted. Sad


- thelusiv - 01-07-2011

I never saw it portets, I certainly didn't delete it. When did you post? In this thread? Are you sure it was successful?


- portets - 01-07-2011

yeah, i'm positive it was successful. i refreshed the page and it was there after i posted. i think it was a few hours after abs1nth said:

Quote:sadly mac os x currently only supports opengl 2.1 plus many extensions from opengl 3.x:

i then mentioned that i think gl 3.3 would be a good idea and that it's features vs compatibility seems well balanced for what we want.

i also asked something about the renderer being abstracted enough to support leaving 2.1 in place, allowing vdrift to go to gl 2.1 mode when it detects an incompatible card. that way, people that have 2.1 but not 3.3 support could see shading in it's current form. and the 2.1 mode would also probably be less supported, allowing the 3.3 renderer to gain more development attention.


- fudje - 01-08-2011

Requiring GL3 features effects would really suck for anyone using opensource drivers on Linux or BSD (and this includes anyone with ATi R500 or earlier chipset, because they're not supported by Catalyst any more)... There's a pretty high chance that a sizeable chunk of the GL3/4 specs will never be included in Mesa3D because of patent issues.


- charlieg - 01-08-2011

If you want to re-write the renderer (again? didn't this happen somewhat recently?) then you may as well adopt Ogre or another decent graphics engine. Then you don't have to worry so much about opengl versions.

Certainly it comes with advanced support for materials.


- NaN - 01-09-2011

Quote:Requiring GL3 features effects would really suck for anyone using opensource drivers
Are open source drivers able to run current shader path?

Quote:There's a pretty high chance that a sizeable chunk of the GL3/4 specs will never be included in Mesa3D because of patent issues.
There's a pretty high chance that Mesa3D won't be able to run any sufficient complex 3d game at playable frame rates. Given that 3d speed is not even a priority for the developers: "From a high-level RedHat point-of-view we aren't interesting in gaming level drivers. ..."

Quote:re-write the renderer (again? didn't this happen somewhat recently?)
As long as nobody gets hurt and we get rid of some of the restrictions of the current one, why not?

Quote:you may as well adopt Ogre or another decent graphics engine.
There is an Ogre implementation already: http://vdrift.net/Forum/viewtopic.php?t=1316

It would be cool if we had some minimal graphics interface to allow for multiple renderer implementations(GL3, GL2, ...). Something like being able to upload some vertex attributes, textures and pick a shader/rendering layer.


- fudje - 01-09-2011

NaN Wrote:Are open source drivers able to run current shader path?

No, but pretty much only because of the use of floating point textures.

Quote:There's a pretty high chance that Mesa3D won't be able to run any sufficient complex 3d game at playable frame rates. Given that 3d speed is not even a priority for the developers: "From a high-level RedHat point-of-view we aren't interesting in gaming level drivers. ..."

Neither are the AMD Linux Catalyst guys, who are effectively adapting workstation graphics drivers to run on consumer hardware. As it happens, on my (IGP) Radeon 4200, fglrx is barely faster than recent mesa3d versions when vdrift is run without shaders at this point. It's 'unplayable' on either with the shaders enabled (setting aside the shader path issues that mostly result in rendering errors). I haven't tested with nouveau, but I hear reports from some other games that it's less RAM (don't know about VRAM) intensive than the nVidia binary blob and gives higher frame rates in some situations.

My concern is only that persons with graphics cards that aren't so old and can handle sufficient shader complexity to make vdrift look like it's a new game rather than one programmed in the mid 90s, but aren't supported by any vendor-supplied closed source driver, might be being excluded. This includes anyone with an Intel IGP, and a not insignificant number of Radeon users.


- abs1nth - 01-10-2011

Quote:Windows only supports OpenGL 1

this is a completely different situation. windows only ships with OpenGL 1.1. headers and only supports 1.1. (software rendering?) unless nvidia/ati/intel video drivers are installed.

on mac os x there are proper headers but there is no way to get around the 2.1+extensions limitation by installing anything.


- abs1nth - 01-10-2011

Quote:fglrx is barely faster than recent mesa3d versions when vdrift is run without shaders at this point

this article found out that fglrx is multiple times faster than mesa3d for any game other than vdrift and they suspect that vdrift is hitting a bug in fglrx:


http://www.phoronix.com/scan.php?page=article&item=amd_driver_q111&num=1


- joevenzon - 01-10-2011

I run ubuntu 10.04 with my ati radeon 4850 and the fglrx drivers and get a much higher framerate than my old nvidia 7900gt. Where the 7900 would get 30 FPS I'm usually over 100 FPS.


- joevenzon - 01-10-2011

portets Wrote:i also asked something about the renderer being abstracted enough to support leaving 2.1 in place, allowing vdrift to go to gl 2.1 mode when it detects an incompatible card. that way, people that have 2.1 but not 3.3 support could see shading in it's current form. and the 2.1 mode would also probably be less supported, allowing the 3.3 renderer to gain more development attention.

Yeah, I was thinking about doing that. It wouldn't be too hard to leave the 2.1+ code in place as is. It sounds like people definitely want that.


- joevenzon - 01-11-2011

abs1nth Wrote:this article found out that fglrx is multiple times faster than mesa3d for any game other than vdrift and they suspect that vdrift is hitting a bug in fglrx:
http://www.phoronix.com/scan.php?page=article&item=amd_driver_q111&num=1

It's definitely not a bug in fglrx. I think his test results are in error; I sent him an e-mail. There's a similar weird result for his NVIDIA testing:
http://www.phoronix.com/scan.php?page=article&item=nvidia_nouveau_q111&num=4