Hello Drew,
Drew wrote:
> Hello thanks for a speedy reply,
>
> I call osginit but not in my class, do i have to do it there as well?
>
> if i dont use my class to to make my scene and just add something like
> scene->addChild(makeSphere(2,2)) instead it works and displays my sphere...
does your main by any chance look similar to this:
int main(int argc, char *argv[])
{
World w;
NodePtr scene;
osgInit(argc, argv);
scene->addChild(w.getRoot());
}
In that case, the constructor of World would create an OpenSG object
before osgInit is called, which does not work. As Patrik already said,
what you are want to do is not very exotic and normally works. It looks
very much like you are creating OpenSG objects before osgInit has had a
chance to run. If that is not the case, can you post more of your code,
so we have a chance to see what goes wrong ?
Hope it helps,
Carsten
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users