Re: [osg-users] Exporting HeightFields in OSG

2013-04-28 Thread Trajce Nikolov NICK
Hi Martin, these are just hints. Have a look at /** Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.*/ virtual void accept(PrimitiveFunctor& pf) const; in ShapeDrawable Maybe there is a way to traverse all the primitives, and

Re: [osg-users] META_OBJECT

2013-04-28 Thread rocco martino
Hi all, Those methods are defined by the "META_Object" macro ( osg/Object header ) Not completely sure because I do not have a great experience with osgCompute, but I used the "find" utility and can't find META_OBJECT (all capitals) in the osgCompute trunk dir Regards, Martino 2013/4/29 Thoma

Re: [osg-users] META_OBJECT

2013-04-28 Thread Thomas Hogarth
hi Posting what META_OBJECT defines will help, but the clue is here /home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute/include/osgOpenCL/osgOpenCLContext:23:4: error: cannot declare parameter ?? to be of abstract type ?osgOpenCL::osgOpenCLContext? /home/sajjad/Downloads/OpenSceneGraph

Re: [osg-users] Exporting HeightFields in OSG

2013-04-28 Thread Martin Záleta
Hi, Sadly, exporting a HeightField geometry into .flt likewise produces just an almost empty file. I kinda suppose it's because the geometry in HeightFields isn't represented by polygonal meshes, so OSG can't really do anything to export this data straight away other that maybe except save thos

Re: [osg-users] META_OBJECT

2013-04-28 Thread Paul Martz
Ah. I see now that you're asking about how to use a macro that is defined in a project external to OSG. Sorry for my confusion. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensceneg

Re: [osg-users] META_OBJECT

2013-04-28 Thread Sajjadul Islam
Hi again, I should have posted the whole compilation error in the previous post. Here it goes: Code: sajjad@sajjad-G74Sx:~/Downloads/OpenSceneGraph/osgCompute/osgCompute$ make [ 15%] Built target osgCompute [ 25%] Built target osgCuda [ 32%] Built target osgCudaUtil [ 55%] Built target osgdb_s

Re: [osg-users] META_OBJECT

2013-04-28 Thread Sajjadul Islam
Hi, If you take a look into the Resource of osgCompute you will also find that they have declared META_OBJECT as all caps and they have the declared the copy constructor in the private scope and they are not defined in the source, i find this strange though.But It compiled fine. Now i am exte

Re: [osg-users] META_OBJECT

2013-04-28 Thread Paul Martz
I'm not sure what "META_OBJECT" (all caps) is, or where it's defined. Did you intend to use "META_Object" from include/osg/Object instead? One other possible issue I noted: Assuming you intended to use META_Object, I believe you are required to implement the copy constructor, and I don't see that

Re: [osg-users] Exporting HeightFields in OSG

2013-04-28 Thread Trajce Nikolov NICK
Hi Martin, try exporting to OpenFlight (there are various 3d content creation tools like LightWave, 3D Max, Creator ) that support this format. I am not sure the obj plugin has exporting function although I think I have seen some submissions (from Cedric I think) for the obj format. The extension

[osg-users] osgSim::LighPoint radius

2013-04-28 Thread Trajce Nikolov NICK
Hi Community, I have faced a problem with the _radius from LighPoint. The showcase is to control all of the LightPoint attributes in run tim (dynamiclly change intensity, color ...these work just fine). However the radius can be changed on LightPoint re-creation,only and its can not be changed in

[osg-users] META_OBJECT

2013-04-28 Thread Sajjadul Islam
Hi forum, I am extending a osg::Object as follows: Code: class LIBRARY_EXPORT osgOpenCLContext : public osg::Object { public: osgOpenCLContext(); META_OBJECT(osgOpenCL,osgOpenCLContext); b