Missing SplitPointList type in PSSMShadowCameraSetup class Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
r0ut
Halfling
Posts: 44
Joined: Mon Feb 22, 2021 6:25 pm
x 2

Missing SplitPointList type in PSSMShadowCameraSetup class

Post by r0ut »

Ogre Version: 1.12 (using C# wrapper)

The SplitPointList type is missing in PSSMShadowCameraSetup class. Seems like SWIG is skipping it

Code: Select all

public class PSSMShadowCameraSetup : LiSPSMShadowCameraSetup
{
    ...
    public SWIGTYPE_p_std__vectorT_float_t getSplitPoints();
    ...
}
r0ut
Halfling
Posts: 44
Joined: Mon Feb 22, 2021 6:25 pm
x 2

Re: Missing SplitPointList type in PSSMShadowCameraSetup class

Post by r0ut »

Fixed adding the following line to Ogre.i (located at OgreMain\include folder):

Code: Select all

%template(SplitPointList) std::vector<Ogre::Real>;
It should be right after %include "OgreShadowCameraSetupPSSM.h" like this:

Code: Select all

SHARED_PTR(PSSMShadowCameraSetup);
%include "OgreShadowCameraSetupPSSM.h" 
	%template(SplitPointList) std::vector<Ogre::Real>;
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Missing SplitPointList type in PSSMShadowCameraSetup class

Post by paroj »

ideally you would create a pull-request on github with these changes applied. See:
https://docs.github.com/en/github/colla ... with-forks
r0ut
Halfling
Posts: 44
Joined: Mon Feb 22, 2021 6:25 pm
x 2

Re: Missing SplitPointList type in PSSMShadowCameraSetup class

Post by r0ut »

Thank you for remembering! I will do as soon as I reach home
Post Reply