Replace generator by api to use it with osgStupeflix