OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

problems with osg-3.4.0 port to osg-3.6.0


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Herman Varma
Guest





PostPosted: Wed Sep 12, 2018 2:26 pm    Post subject:
problems with osg-3.4.0 port to osg-3.6.0
Reply with quote

Is this the right forum to request help for porting code from openscenegraph-3.4.0 to openscenegraph-3.6.0???

------------------
Post generated by Mail2Forum
Back to top
Trajce Nikolov NICK
Guest





PostPosted: Wed Sep 12, 2018 5:26 pm    Post subject:
problems with osg-3.4.0 port to osg-3.6.0
Reply with quote

Hi,

Yes, it is. You can start with posting questions and you can also find professional paid osg consultancy here on this forum/user list. Either way the community is well responsive


Good luck,


On Wed, 12 Sep 2018, 16:24 Herman Varma, < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:

Is this the right forum to request help for porting code from openscenegraph-3.4.0 to openscenegraph-3.6.0???

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Chris Hanson
Guest





PostPosted: Wed Sep 12, 2018 9:47 pm    Post subject:
problems with osg-3.4.0 port to osg-3.6.0
Reply with quote

Yup. As Nick said, we try to help you at no charge as much as we can. If it's something you really need someone else to do for you, there are a variety of folks (including Nick and myself) who can do paid consulting for you.

Ask away.


On Wed, Sep 12, 2018 at 6:24 PM Trajce Nikolov NICK < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi,

Yes, it is. You can start with posting questions and you can also find professional paid osg consultancy here on this forum/user list. Either way the community is well responsive


Good luck,


On Wed, 12 Sep 2018, 16:24 Herman Varma, < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:

Is this the right forum to request help for porting code from openscenegraph-3.4.0 to openscenegraph-3.6.0???

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
Post generated by Mail2Forum
Back to top
hvarma (Herman Varma)
Newbie


Joined: 12 Sep 2018
Posts: 11

PostPosted: Thu Sep 13, 2018 1:31 am    Post subject:
Problems porting from osg-3.4.0 to osg-3.6.0
Reply with quote

Hello I am having trouble porting Ben Discoe’s VTP software from openSceneGraph-3.4.0 to osg-3.6.2

The problem lies in replacing the META_object with a macro in shadowTechnique.h as depicted below.

Can someone point out where the problem is.

/** CSimpleInterimShadowTechnique provides an implementation of a depth map shadow tuned to the needs of VTP.*/

class CSimpleInterimShadowTechnique : public osgShadow::ShadowTechnique
{
public:

// working ********************** in opemSceneGraph-3.4.0
// CSimpleInterimShadowTechnique();
// CSimpleInterimShadowTechnique(const
// CSimpleInterimShadowTechnique& es, const osg::CopyOp&
// copyop=osg::CopyOp::SHALLOW_COPY);
// META_Object(osgShadow, CSimpleInterimShadowTechnique);
//***********************************************************

// not working *********************in opemSceneGraph-3.6.2
CSimpleInterimShadowTechnique();
CSimpleInterimShadowTechnique(const CSimpleInterimShadowTechnique& es, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);

virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const CSimpleInterimShadowTechnique*>(obj) != NULL; } \
virtual const char* libraryName() const { return "osgShadow"; }\
virtual const char* className() const { return "CSimpleInterimShadowTechnique"; }


//**************************************************************


In the new implementation I am getting a C2259 error

2>c:\vtp_vsc\terrainsdk\vtlib\vtosg\nodeosg.cpp(1026): error C2259: 'CSimpleInterimShadowTechnique': cannot instantiate abstract class

2>c:\vtp_vsc\terrainsdk\vtlib\vtosg\nodeosg.cpp(1026): note: due to following members:

2>c:\vtp_vsc\terrainsdk\vtlib\vtosg\nodeosg.cpp(1026): note: 'osg::Object *osg::Object::cloneType(void) const': is abstract

2>c:\apis\openscenegraph-3.6.2\build\include\osg\object(80): note: see declaration of 'osg::Object::cloneType'

2>c:\vtp_vsc\terrainsdk\vtlib\vtosg\nodeosg.cpp(1026): note: 'osg::Object *osg::Object::clone(const osg::CopyOp &) const': is abstract

2>c:\apis\openscenegraph-3.6.2\build\include\osg\object(84): note: see declaration of 'osg::Object::clone'

2>c:\vtp_vsc\terrainsdk\vtlib\vtosg\nodeosg.cpp(1026): note: 'void osgShadow::ShadowTechnique::resizeGLObjectBuffers(unsigned int)': is abstract

2>c:\apis\openscenegraph-3.6.2\build\include\osgshadow\shadowtechnique(66): note: see declaration of 'osgShadow::ShadowTechnique::resizeGLObjectBuffers'
2>c:\vtp_vsc\terrainsdk\vtlib\vtosg\nodeosg.cpp(1026): note: 'void osgShadow::ShadowTechnique::releaseGLObjects(osg::State *) const': is abstract
2>c:\apis\openscenegraph-3.6.2\build\include\osgshadow\shadowtechnique(71): note: see declaration of 'osgShadow::ShadowTechnique::releaseGLObjects'

The error manifests is in the vtShadow section of nodeOSG.cpp

//////////////////////////////////////////////////////////////////////
// vtShadow
//

vtShadow::vtShadow(const int ShadowTextureUnit, int LightNumber) :
m_ShadowTextureUnit(ShadowTextureUnit), m_LightNumber(LightNumber)
{
setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
setCastsShadowTraversalMask(CastsShadowTraversalMask);

#if VTLISPSM
osg::ref_ptr<CLightSpacePerspectiveShadowTechnique> pShadowTechnique = new CLightSpacePerspectiveShadowTechnique;
// No need to set the BaseTextureUnit as the default of zero is OK for us
// But the ShadowTextureUnit might be different (default 1)
pShadowTechnique->setShadowTextureUnit(m_ShadowTextureUnit);
pShadowTechnique->setLightNumber(m_LightNumber);
#else

//errorC2259 cannot instantiate abstract class in openSceneGraph-3.6.2
//working in osg-3.4.0

osg::ref_ptr<CSimpleInterimShadowTechnique> pShadowTechnique = new

#endif

#if !VTLISPSM
#if VTDEBUGSHADOWS
// add some instrumentation
pShadowTechnique->m_pParent = this;
#endif

pShadowTechnique->SetLightNumber(LightNumber);
pShadowTechnique->SetShadowTextureUnit(m_ShadowTextureUnit);
pShadowTechnique->SetShadowSphereRadius(50.0);
#endif
setShadowTechnique(pShadowTechnique.get());

SetOsgNode(this);
}

Help would be appreciated


Thank you!

Cheers,

Herman Varma
Head of Cartographic Research
Bedford Institute of Oceanography
Back to top
View user's profile Send private message Send e-mail
Chris Hanson
Guest





PostPosted: Thu Sep 13, 2018 5:58 pm    Post subject:
problems with osg-3.4.0 port to osg-3.6.0
Reply with quote

Did you ask Ben himself?

He's moving to Hawaii just now, but might be able to comment. I can ping him if you don't get an answer here.


On Thu, Sep 13, 2018 at 7:48 AM Herman Varma < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hello I am having trouble porting  Ben Discoe’s VTP software from openSceneGraph-3.4.0 to osg-3.6.2

The problem lies in replacing the META_object with a macro in shadowTechnique.h as depicted below.

Can someone point out where the problem is.

/** CSimpleInterimShadowTechnique provides an implementation of a depth map shadow tuned to the needs of VTP.*/

class CSimpleInterimShadowTechnique : public osgShadow::ShadowTechnique
{
public:

//  working **********************  in opemSceneGraph-3.4.0
//     CSimpleInterimShadowTechnique();
//     CSimpleInterimShadowTechnique(const 
//     CSimpleInterimShadowTechnique& es, const osg::CopyOp&
//      copyop=osg::CopyOp::SHALLOW_COPY);
//     META_Object(osgShadow, CSimpleInterimShadowTechnique);
//***********************************************************

// not working *********************in opemSceneGraph-3.6.2
       CSimpleInterimShadowTechnique();
       CSimpleInterimShadowTechnique(const CSimpleInterimShadowTechnique& es, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);

       virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast<const CSimpleInterimShadowTechnique*>(obj) != NULL; }
       virtual const char* libraryName() const { return "osgShadow"; }
       virtual const char* className() const { return "CSimpleInterimShadowTechnique"; }


//**************************************************************


In the new implementation I am getting a C2259 error

2>c:vtp_vscterrainsdkvtlibvtosgnodeosg.cpp(1026): error C2259: 'CSimpleInterimShadowTechnique': cannot instantiate abstract class

2>c:vtp_vscterrainsdkvtlibvtosgnodeosg.cpp(1026): note: due to following members:

2>c:vtp_vscterrainsdkvtlibvtosgnodeosg.cpp(1026): note: 'osg::Object *osg::Object::cloneType(void) const': is abstract

2>c:apisopenscenegraph-3.6.2buildincludeosgobject(80): note: see declaration of 'osg::Object::cloneType'

2>c:vtp_vscterrainsdkvtlibvtosgnodeosg.cpp(1026): note: 'osg::Object *osg::Object::clone(const osg::CopyOp &) const': is abstract

2>c:apisopenscenegraph-3.6.2buildincludeosgobject(84): note: see declaration of 'osg::Object::clone'

2>c:vtp_vscterrainsdkvtlibvtosgnodeosg.cpp(1026): note: 'void osgShadow::ShadowTechnique::resizeGLObjectBuffers(unsigned int)': is abstract

2>c:apisopenscenegraph-3.6.2buildincludeosgshadowshadowtechnique(66): note: see declaration of 'osgShadow::ShadowTechnique::resizeGLObjectBuffers'
2>c:vtp_vscterrainsdkvtlibvtosgnodeosg.cpp(1026): note: 'void osgShadow::ShadowTechnique::releaseGLObjects(osg::State *) const': is abstract
2>c:apisopenscenegraph-3.6.2buildincludeosgshadowshadowtechnique(71): note: see declaration of 'osgShadow::ShadowTechnique::releaseGLObjects'

The  error manifests is in the vtShadow section of nodeOSG.cpp

//////////////////////////////////////////////////////////////////////
// vtShadow
//

vtShadow::vtShadow(const int ShadowTextureUnit, int LightNumber) :
       m_ShadowTextureUnit(ShadowTextureUnit), m_LightNumber(LightNumber)
{
       setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
       setCastsShadowTraversalMask(CastsShadowTraversalMask);

#if VTLISPSM
       osg::ref_ptr<CLightSpacePerspectiveShadowTechnique> pShadowTechnique = new CLightSpacePerspectiveShadowTechnique;
       // No need to set the BaseTextureUnit as the default of zero is OK for us
       // But the ShadowTextureUnit might be different (default 1)
       pShadowTechnique->setShadowTextureUnit(m_ShadowTextureUnit);
       pShadowTechnique->setLightNumber(m_LightNumber);
#else

//errorC2259 cannot instantiate abstract class in openSceneGraph-3.6.2
//working in osg-3.4.0

  osg::ref_ptr<CSimpleInterimShadowTechnique> pShadowTechnique = new

#endif

#if !VTLISPSM
#if VTDEBUGSHADOWS
       // add some instrumentation
       pShadowTechnique->m_pParent = this;
#endif

       pShadowTechnique->SetLightNumber(LightNumber);
       pShadowTechnique->SetShadowTextureUnit(m_ShadowTextureUnit);
       pShadowTechnique->SetShadowSphereRadius(50.0);
#endif
       setShadowTechnique(pShadowTechnique.get());

       SetOsgNode(this);
}

Help would be appreciated


Thank you!

Cheers,

Herman Varma
Head of Cartographic Research
Bedford Institute of Oceanography

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74733#74733





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Problems with dae plugin John Richardson Plugins [osgPlugins] 0 Thu Apr 11, 2019 5:00 pm View latest post
No new posts [PARTIALLY SOLVED] Problems with dae ... Nikkitta Plugins [osgPlugins] 4 Mon Apr 08, 2019 3:51 pm View latest post
No new posts Particular Build Problems with OSG. Zachary1234 Build system [build] 5 Wed Mar 27, 2019 7:12 am View latest post
No new posts Precipitation problems bclay General 4 Wed Dec 19, 2018 9:50 pm View latest post
No new posts Problems with forum. poweruserm@live.com.au General 1 Sun Oct 28, 2018 11:45 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP