Forums

Full Version: OpenGL 3.3 renderer rewrite
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
I did the initial integration of my GL3.3 renderer code into VDrift. It can be enabled by using the -gl3 argument, although right now all it does is render 2d UI sprites... incorrectly (unless your card doesn't support GL3.3, then it falls back to the GL1/2 renderer). Let me know if there are any build problems from me forgetting to check something in....
Code:
scons: Building targets ...
    CPP build/ai.o
In file included from src/gl3v/rendertextureentry.h:5,
                 from src/gl3v/rendermodelext.h:6,
                 from include/rendermodelext_drawable.h:4,
                 from include/drawable.h:7,
                 from include/drawable_container.h:4,
                 from include/scenenode.h:4,
                 from include/ai.h:6,
                 from src/ai.cpp:1:
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::SamplerParameteri(GLuint, GLenum, GLint)’:
src/gl3v/glwrapper.h:97: error: ‘glSamplerParameteri’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::SamplerParameterf(GLuint, GLenum, GLfloat)’:
src/gl3v/glwrapper.h:98: error: ‘glSamplerParameterf’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::SamplerParameterfv(GLuint, GLenum, const GLfloat*)’:
src/gl3v/glwrapper.h:99: error: ‘glSamplerParameterfv’ was not declared in this scope
In file included from src/gl3v/rendertextureentry.h:5,
                 from src/gl3v/rendermodelext.h:6,
                 from include/rendermodelext_drawable.h:4,
                 from include/drawable.h:7,
                 from include/drawable_container.h:4,
                 from include/scenenode.h:4,
                 from include/ai.h:6,
                 from src/ai.cpp:1:
src/gl3v/glwrapper.h: In member function ‘GLuint GLWrapper::GenSampler()’:
src/gl3v/glwrapper.h:118: error: ‘glGenSamplers’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::DeleteSampler(GLuint)’:
src/gl3v/glwrapper.h:119: error: ‘glDeleteSamplers’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::BindSampler(GLuint, GLuint)’:
src/gl3v/glwrapper.h:120: error: ‘glBindSampler’ was not declared in this scope
src/gl3v/glwrapper.h: In member function ‘void GLWrapper::unbindSampler(GLuint)’:
src/gl3v/glwrapper.h:121: error: ‘glBindSampler’ was not declared in this scope
scons: *** [build/ai.o] Error 1
scons: building terminated because of errors.
My first guess: GLEW 1.5.4 is required for OpenGL 3.3 support. Run "glewinfo" to check your glew version.
graphics_gl3v.cpp is missing?

GLEW for win32 has to be updated. Is it OK to update to 1.5.7?
Seems to be broken under windows :roll:
Yep, I forgot to check in graphics_gl3v.cpp. Doh. It's in there now.
Hi all!
Compiling in revision 3035 I got this message:

Code:
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [build/rendermodelext_drawable.o] Source `src/rendermodelext_drawable.cpp' not found, needed by target `build/rendermodelext_drawable.o'.
scons: building terminated because of errors.
Quote:`src/rendermodelext_drawable.cpp' not found
I've updated the Sconscript file, should compile now.
Yes, it compile. Thanks!
NaN Wrote:I've updated the Sconscript file, should compile now.

I forgot to check in the file. Fixed in R3037, also undid some of the changes you made in 3035 to rendermodelext_drawable.h (which I assume you made to get it to compile with the missing cpp file). Why did you remove the "virtual" tag from drawEnabled?
i have libcurl installed but get:

Code:
You do not have the curl/curl.h headers installed. Exiting.

upon trying to compile.
When you do 'locate curl.h' does it show up in /usr/include/curl/curl.h? You may need to install dev packages.
Quote:Why did you remove the "virtual" tag from drawEnabled?
Assumed there would be no classes derived from RenderModelExternalDrawable. Else might be a good idea to make the destructor virtual too.
joevenzon Wrote:When you do 'locate curl.h' does it show up in /usr/include/curl/curl.h? You may need to install dev packages.

Code:
/usr/share/doc/python-pycurl/html/pycurl.html

hmm.. ubuntu doesn't appear to have dev packages for libcurl.

i may need to compile libcurl myself?
portets Wrote:hmm.. ubuntu doesn't appear to have dev packages for libcurl.

Ubuntu package name is libcurl4-gnutls-dev Smile
Pages: 1 2 3 4 5