Open xlla opened 2 years ago
after add those two blank implement functions, more errors occur:
/Users/xlla/git/gz-rendering/optix/include/gz/rendering/optix/OptixLightManager.hh:42:61: note: passing argument to parameter '_light' here public: virtual void AddPointLight(OptixPointLightPtr _light); ^ /Users/xlla/git/gz-rendering/optix/src/OptixLight.cc:243:16: error: no member named 'data' in 'ignition::rendering::v7::OptixPointLight' return this->data.common; ~~~~ ^ /Users/xlla/git/gz-rendering/optix/src/OptixLight.cc:249:16: error: no member named 'data' in 'ignition::rendering::v7::OptixPointLight' return this->data.common; ~~~~ ^ /Users/xlla/git/gz-rendering/optix/src/OptixLight.cc:253:37: error: out-of-line definition of 'SharedThis' does not match any declaration in 'ignition::rendering::v7::OptixPointLight' OptixPointLightPtr OptixPointLight::SharedThis() ^~~~~~~~~~
In file included from /Users/xlla/git/gz-rendering/optix/src/OptixRenderEngine.cc:26: In file included from /Users/xlla/git/gz-rendering/optix/include/ignition/rendering/optix/OptixRenderEngine.hh:18: /Users/xlla/git/gz-rendering/optix/include/gz/rendering/optix/OptixRenderEngine.hh:77:31: warning: 'InitImpl' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] protected: virtual bool InitImpl(); ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseRenderEngine.hh:115:31: note: overridden virtual function is here protected: virtual bool InitImpl() = 0; ^ /Users/xlla/git/gz-rendering/optix/src/OptixRenderEngine.cc:111:34: error: allocating an object of abstract class type 'ignition::rendering::v7::OptixScene' auto scene = OptixScenePtr(new OptixScene(_id, _name)); ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:267:39: note: unimplemented pure virtual method 'CreateCOMVisualImpl' in 'OptixScene' protected: virtual COMVisualPtr CreateCOMVisualImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:274:43: note: unimplemented pure virtual method 'CreateInertiaVisualImpl' in 'OptixScene' protected: virtual InertiaVisualPtr CreateInertiaVisualImpl( ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:281:41: note: unimplemented pure virtual method 'CreateJointVisualImpl' in 'OptixScene' protected: virtual JointVisualPtr CreateJointVisualImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:288:41: note: unimplemented pure virtual method 'CreateLightVisualImpl' in 'OptixScene' protected: virtual LightVisualPtr CreateLightVisualImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:748:37: note: unimplemented pure virtual method 'CreateCapsuleImpl' in 'OptixScene' protected: virtual CapsulePtr CreateCapsuleImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:762:36: note: unimplemented pure virtual method 'CreateMarkerImpl' in 'OptixScene' protected: virtual MarkerPtr CreateMarkerImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:769:41: note: unimplemented pure virtual method 'CreateLidarVisualImpl' in 'OptixScene' protected: virtual LidarVisualPtr CreateLidarVisualImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:777:39: note: unimplemented pure virtual method 'CreateHeightmapImpl' in 'OptixScene' protected: virtual HeightmapPtr CreateHeightmapImpl(unsigned int _id, ^ /Users/xlla/git/gz-rendering/include/gz/rendering/base/BaseScene.hh:785:37: note: unimplemented pure virtual method 'CreateWireBoxImpl' in 'OptixScene' protected: virtual WireBoxPtr CreateWireBoxImpl(unsigned int _id, ^ 52 warnings generated.
The optix implementation hasn't been kept in sync with the ogre
and ogre2
implementations. It will likely need some work to bring up-to-date. Any pull requests in this direction would be greatly appreciated.
Environment
Description
Steps to reproduce
Output