Jump to content

OpenSceneGraph problems

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Regen

Regen

    Newbie

  • Members
  • Pip
  • 1 posts
Hi! I have just started to check out OpenSceneGraph as my employer asked me to. I am using Ms Visual Studio and C++.
I have no previous experience of osg (or any 3dgraphic programming) i decided to do the first basic tutorial (Basic geometry) on openscenegraph official homepage. ( not allowed to post the link )

It all looks easy enough but when i try to run the code, it can compile and link but and row 42: "pyramidFaceOne->push_back(0);" I get a memory failure of some kind. It breaks and I get the failuremessage:
"Unhandled exception at 0x7c812a5b (kernel32.dll) in test.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f3f4.."

I have googled the problem over and over, without result, so please, can anyone tell me what i do wrong so i can continue to learn this.

And yes, i have copied the code right off the page.....

//Wannabe-programmer from sweden.

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
Could you at least post the code, or a link to the tutorial or code?