strange shadow!!!

Problems building or running the engine, queries about how to use features etc.
playerwing
Gnoblar
Posts: 20
Joined: Fri Nov 19, 2004 9:48 am

strange shadow!!!

Post by playerwing »

I use Mesh::buildEdgeList() method to create edge lists for make a stencil shadow, but I got a strange shadow!
( I use OGRE sample to test my mesh file )

Image

My video card: nVidia Geforce4 MX440
My directx version: 9.0c

Why? please help me.... :cry:
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4

Post by tuan kuranes »

Stencil shadow needs manifold mesh:

- Surface must be closed.
- Every edge is an edge to exactly two polygons.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

With 0.15.2 manifoldness isn't nessecary any more, but Ogre must somehow determine an outer hull, that is used for shadow calculation. So if it is the same model that caused the exception described here, Ogre wasn't able to do so.

If you don't already use 0.15.2 it will probably help to switch, otherwise I have no idea.
team-pantheon programmer
creators of Rastullahs Lockenpracht
playerwing
Gnoblar
Posts: 20
Joined: Fri Nov 19, 2004 9:48 am

Post by playerwing »

thank you! :)