I was using G3D9 beta 2 for some time now and I wanted to update my
code to the current Svn version.
But I am having some problems to make it work as it was doing under
beta2.
In my GLSL code I am using some cg stuff (like half2 and pack_2half())
which was working fine under beta2
but when I am using the current SVN version I am getting a compiler
error.
I am also getting more compiler errors because I forgot to add
#version 130 at the beginning
but that obviously my fault ;)
I already try to compare the b2 sources with the current svn sources
but I couldn't
find the reason why the GLSL compiler works so different know?
Cheers
Sebastian
that it could be a driver problem was also my first idea. But
the problem is, that I am not getting the error when I link my
program against G3D9 b2 (which I just compiled from source again
just to make sure ;)).
Do you have any other idea why the new G3D acts so differently??
Cheers
Sebastian
On Dec 16, 3:31 pm, Morgan McGuire <mor...@cs.williams.edu> wrote:
> The compiler is in your driver, so we have no control over it.
>
> As far as I know, half2, etc. are now reserved words and illegal to use.
> They are not currently supported as precision by any existing GLSL. You
> can do:
>
> #define half2 vec2
>
> etc. to avoid changing your code, and can put a standard set of Cg defines
> in a header and #include it to avoid putting this in every file.
>
> -m
>
> Prof. Morgan McGuire
> Computer Science Department
> Williams Collegehttp://cs.williams.edu/~morgan
>
> On Fri, Dec 16, 2011 at 9:11 AM, sherholz
> <sebastian.herh...@googlemail.com>wrote:
I also checked that. But both version (G3D9b2) and the current Svn
version are using GLSL 3.3.0
here is the output of the log files:
G3D9b2:
*
*
This driver will NOT support G3D 9.00:
GLSL version 3.30 yes (GLSL version on this driver
is 3.30)
GPU Supports OpenGL 3.3 or later (OpenGL version on this driver is
3.3)
GL_ARB_seamless_cube_map (yes)
GL_ARB_sample_shading NO - Required for G3D 9.0!
*
*
G3D {
Link version = 90002
Compile version = "G3D 9.00 beta 2"
G3D9DATA = "C:\\G3D9Svn\\data-files"
}
GPU {
Chipset = "GeForce GTX 295/PCI/SSE2"
Vendor = "NVIDIA Corporation"
Driver = "8.17.12.8562"
OpenGL version = "3.3.0"
Textures = 32
Texture coordinates = 8
Texture units = 4
GL_MAX_TEXTURE_SIZE = 8192
GL_MAX_CUBE_MAP_TEXTURE_SIZE = 8192
GL_MAX_COLOR_ATTACHMENTS = 8
}
G3D9Svn:
*
*
This driver will NOT support G3D 9.00:
GLSL version 3.30 yes (GLSL version on this driver
is 3.30)
GPU Supports OpenGL 3.3 or later (OpenGL version on this driver is
3.3)
GL_ARB_seamless_cube_map (yes)
GL_ARB_sample_shading NO - Required for G3D 9.0!
*
*
G3D {
Link version = 90003
Compile version = "G3D 9.00 beta 3"
G3D9DATA = "C:\\G3D9Svn\\data-files"
}
GPU {
Chipset = "GeForce GTX 295/PCI/SSE2"
Vendor = "NVIDIA Corporation"
Driver = "8.17.12.8562"
OpenGL version = "3.3.0"
Textures = 32
Texture coordinates = 8
Texture units = 4
GL_MAX_TEXTURE_SIZE = 8192
GL_MAX_CUBE_MAP_TEXTURE_SIZE = 8192
GL_MAX_COLOR_ATTACHMENTS = 8
}
I was able to activate the cg functions again by adding the
#pragma optionNV(strict off)
to the shaders. The compile still gives me errors when I forgot to add
#version 130 at the beginning
but that is my fault.
It would be still interesting to know what changed the behavior of the
compiler in the new version.
Another question I have is: where is the best place to report bugs?
here or at the sourceforge bug tracker.
For example in the Svn version the camera booksmarks are not working
anymore.
Everytime I create or select any camera from the list the system
crashes.
there seems to be a Nullpointer problem at:
Widget.cpp
void WidgetManager::fireEvent(const GEvent& event) {
if (GEventType(event.type).isGuiEvent()) {
GuiContainer* parent = event.gui.control->m_parent;
if (parent != NULL) {
if (parent->onChildControlEvent(event)) {
// The event was suppressed by the GUI hierarchy
return;
}
}
}
m_window->fireEvent(event);
}
event.gui.control is NULL.
so maybe the gui element wasn't setup correctly.
Cheers
Sebastian