CSGSphereSource render issues

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
saintnick
Halfling
Posts: 51
Joined: Tue Nov 27, 2018 1:41 am
x 5

CSGSphereSource render issues

Post by saintnick »

Ogre Version: 1.12 :?:
Operating System: Windows 10 :?:
Render System: OpenGL :?:

I am trying to create a simple scene that only includes a sphere from the volume component.

Code: Select all

	Ogre::Volume::CSGSphereSource sphere(192, Vector3(0, 0, 0));
	Ogre::Volume::Source *src(&sphere);

	Ogre::Volume::ChunkParameters parameters;
	parameters.sceneManager = scnMgr;
	parameters.src = src;
	parameters.baseError = (Real)1.8;

	Ogre::Volume::Chunk *volumeRoot = OGRE_NEW Volume::Chunk();
	SceneNode *mVolumeRootNode = scnMgr->getRootSceneNode()->createChildSceneNode("VolumeParent");
	volumeRoot->load(mVolumeRootNode, Vector3::ZERO, Vector3(192), 5, &parameters);
Only a small portion of the sphere is rendered and looks like a rounded triangle. A lot more of these would indeed form a sphere.
User avatar
saintnick
Halfling
Posts: 51
Joined: Tue Nov 27, 2018 1:41 am
x 5

Re: CSGSphereSource render issues

Post by saintnick »

Here is a picture of what it is rendering.

http://www.mediafire.com/file/3zta36vf3 ... e.png/file
Post Reply