point attenuation - no influence using DirectX9?

Problems building or running the engine, queries about how to use features etc.
Post Reply
CADfox68
Gnoblar
Posts: 1
Joined: Wed Jun 18, 2014 12:46 pm

point attenuation - no influence using DirectX9?

Post by CADfox68 »

I am new to Ogre and this forum... I have spent quite a lot of time on a strange problem and hope that someone can give me a hint.

The problem is: I try to display points using a texture which I want to become smaller by distance. Therefore I am using point attenuation like this:

Code: Select all

	  PassTexture->setPointAttenuation(true, 0.1f, 0.9f, 0.1f);
	  PassTexture->setPointSize(0.5f);
	  PassTexture->setPointMinSize(0.1f); 
	  PassTexture->setPointMaxSize(0.5f);
and

Code: Select all

	  PassTexture->setPointSpritesEnabled(true);
	  PassTexture->setCullingMode(Ogre::CULL_NONE);
	  PassTexture->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA);
	  PassTexture->setLightingEnabled(false);
	  PassTexture->setDepthCheckEnabled(false);
When I render using OpenGL, all works as aspected. However, using DirectX, it seems that PointAttenuation is ignored. All points are of the same size.
I guess I have made a newbie-bug... any ideas would be appreciated very much!
Post Reply