Error...

6 views
Skip to first unread message

CAD

unread,
Jul 31, 2008, 7:21:41 AM7/31/08
to Wildcat CAD
else if (message == "export")
{
//Export the part
WCConverterSTL converter;
converter.Export(this->_feature);//(this->_part);
}

At this point the linking error comes, when i comment this part and
compile and run application it gets running.
But when i click on new button it gives error in shader_manager.cpp at
first line of function.

Can you help me out this to solve this linking and shader error.

Dan Heeks

unread,
Aug 28, 2008, 1:30:33 PM8/28/08
to Wildcat CAD
Is this still an error?

Graham Hemingway

unread,
Aug 28, 2008, 6:17:51 PM8/28/08
to wildc...@googlegroups.com
I bet that this is because I had not included the file for STL export into the project.  I believe that I fixed this (otherwise you would have been getting an error!)


On Thu, Aug 28, 2008 at 12:30 PM, Dan Heeks <danh...@googlemail.com> wrote:

Is this still an error?




--
Graham Hemingway
cell: (615) 294-7133

CAD

unread,
Sep 10, 2008, 12:30:55 AM9/10/08
to Wildcat CAD
Now its compiling very fine but i am gettin error at the last line of
the below given code.
application start normally but when i am creating new file it will
give exception.

WCBackgroundLayer::WCBackgroundLayer(WCScene
*scene) : ::WCLayer(scene, "Background"),
_perfLevel(PerformanceLow), _vertexBuffer(0), _colorBuffer(0),
_altVertexBuffer(NULL), _altColorBuffer(NULL),
_llColor(BACKGROUNDLAYER_BOTTOM_COLOR),
_lrColor(BACKGROUNDLAYER_BOTTOM_COLOR),
_ulColor(BACKGROUNDLAYER_TOP_COLOR),
_urColor(BACKGROUNDLAYER_TOP_COLOR) {
//Set performance level
if(WCAdapter::HasGLARBVertexBufferObject()) {
//Set the higher performance level
this->_perfLevel = PerformanceMedium;
//If there are VBOs, create them
glGenBuffers(1, &this->_vertexBuffer);




On Aug 29, 3:17 am, "Graham Hemingway" <graham.heming...@gmail.com>
wrote:
> I bet that this is because I had not included the file for STL export into
> the project.  I believe that I fixed this (otherwise you would have been
> getting an error!)
>

Graham Hemingway

unread,
Sep 10, 2008, 9:53:05 AM9/10/08
to wildc...@googlegroups.com
Can you please post what type of video card and OS you are running Wildcat on.
And is it crashing on the glGenBuffers line?  If possible could you run in debug mode in VC and attach the debug output to your forum post.

Thanks,
   Graham

Dan Heeks

unread,
Sep 11, 2008, 8:11:35 AM9/11/08
to Wildcat CAD
Graham,

Should the HasGLARBVertexBufferObject be changed to
HasGLEXTFramebufferObject?

Dan.

Graham Hemingway

unread,
Sep 11, 2008, 9:45:34 AM9/11/08
to wildc...@googlegroups.com
I am not certain what is causing this error.  WCBackgroundLayer does not use a FBO at all, it only uses VBOs.  I would much prefer to check for VBOs unless there is an error with doing that.  I just looked back in adapter.h and adapter.cpp and I don't see any obvious errors with HasGLARBVertexBufferObject.  Dan, do you get this error?

G

Dan Heeks

unread,
Sep 11, 2008, 11:32:52 AM9/11/08
to Wildcat CAD
No, it's fine for me. HasGLARBVertexBufferObject is returning true and
glGenBuffers is not NULL.

But it must be that glGenBuffers is NULL for him.
Can we change the test to if(glGenBuffers != NULL) ?

Dan.

Graham Hemingway

unread,
Sep 11, 2008, 3:19:47 PM9/11/08
to wildc...@googlegroups.com
Dan, it is still unclear to me what is causing the crash.  Here is an idea...
In WCAdapter::WCAdapter where all of the extensions are checked we can do a little follow up check.  Something like this (29 corresponds to vbo extension):

if (!glGenBuffers) this->_extensions[29] = false;

This would then cover the case where the extension is being reported by GL as available, but glGenBuffers is not being set.  Taking this approach we can continue to code everywhere else just testing for WCAdapter::HasGLARBVertexBufferObject().

What do you think?

G

Dan Heeks

unread,
Sep 12, 2008, 1:02:55 PM9/12/08
to Wildcat CAD
Yes, this is a good idea. Shall I leave it to you? Otherwise, point me
to the OpenGL specification for those extension flags.
Dan.
Reply all
Reply to author
Forward
0 new messages