problem with shodows

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
ali_lak
Gnoblar
Posts: 13
Joined: Sun Oct 02, 2016 1:34 pm

problem with shodows

Post by ali_lak »

hi,
i'm using this code to show an entity with shodows. (That's a Mogre code but it's like Ogre)

Code: Select all

            Entity mTree2Entity = mSceneMgr.CreateEntity("Tree2", "obj__tree2.mesh");
            SceneNode mTree2Node = mSceneMgr.RootSceneNode.CreateChildSceneNode("Tree2");
            mTree2Entity.SetMaterialName("tree2_tga");
            mTree2Entity.CastShadows = true;
            mTree2Node.SetPosition(4700f, 0f, 1500f);
            mTree2Node.Scale(new Vector3(5000, 5000, 5000));
            mTree2Node.AttachObject(mTree2Entity);
but as you can see in the attached image it's not rendered truly.
some part (high part) of the tree is good but some part (lower part) is bad ! :?
also the shodow is bad that's consist of rectangles! :shock: :shock:

thank you very much for your answers!
(Note:I'm so sorry for my bad English!)
Attachments
the rendered window
the rendered window
Post Reply