• Advertisement
Sign in to follow this  

[OGRE] manualobject vs stencil shadows

This topic is 2933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, this is an ogre project :) I'm trying to have a manualobject cast stencil shadows. the manual states that if you want this, you have to define the indices and I have done that :) now the problem is that the shadows aren't working at they should :( the shadows are totaly wrong and whenever I move the camera, the are following me (they look like some kind of overlay). some code about what I do :
ManualObject* manual = mSceneMgr->createManualObject("manual");
		manual->begin("CubeMTL", RenderOperation::OT_TRIANGLE_LIST );
		std::vector<OBJTriangle>::iterator it = TriangleList.begin();
		int ind = 0;
		for (;it!=TriangleList.end();++it)
			OBJTriangle current = (*it);
			for (int i = 0;i<3;++i)
				int blabla = ind*3 + i;
		SceneNode* mm = SceneMgr->getRootSceneNode()->createChildSceneNode("manualobj",Vector3(0,0,0));
as you can see, I'm parsing an obj file (School assignment). I know for sure that the indices are correct, c'se I don't really need them (when in comment, the model stays the same) and when I change them (cf. int blabla = ind*3 - i;), the model is drawn wrong... So, what I'm I doing wrong/forgetting ?? cheers

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement