Hello,
my simple app crashes when the camera is too close to a complex (25.000 poly) mesh with stencil shadow turned on.
The mesh cast and receive shadow corretly, but when the camera is too close to it (not in the shadow volume) the apps crashes.
It'a know bug of 1.0.0 or it's a problem with my mesh?
thanks
Alessandro
Ogre 1.0.0 Shadow : camera cause crash
-
alelink
- Halfling
- Posts: 54
- Joined: Sun May 16, 2004 11:59 am
- Location: Italy
- Contact:
-
Crashy
- Google Summer of Code Student

- Posts: 1005
- Joined: Wed Jan 08, 2003 9:15 pm
- Location: Lyon, France
- x 49
- Contact:
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
-
alelink
- Halfling
- Posts: 54
- Joined: Sun May 16, 2004 11:59 am
- Location: Italy
- Contact:
Hello Sinbad, thanks for reply at this post.
My mesh is'n an heavy tassellated uniform mesh,
but it's a building made by more parts and the total number of poly is 45.000...
So how can I do? I must split it in more meshes and attach all of them to the same scenenode?
So there's a limit to the number of "casting shadow" edges?
thanks
My mesh is'n an heavy tassellated uniform mesh,
but it's a building made by more parts and the total number of poly is 45.000...
So how can I do? I must split it in more meshes and attach all of them to the same scenenode?
So there's a limit to the number of "casting shadow" edges?
thanks
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
Definitely split things up - this will help with more than just shadows. There is a limit on the number of vertices (not polys) you can address (65,000) and we don't support 32-bit indexes (the solution to that) with stencil shadows, because it would complicate the shadow code more, and when you get to that level of geometry, stencil shadows are very inefficient since they are CPU-bound.
So split everything up, which will also have the advantage that you'll have less geometry generating shadow volumes each frame.
So split everything up, which will also have the advantage that you'll have less geometry generating shadow volumes each frame.
-
alelink
- Halfling
- Posts: 54
- Joined: Sun May 16, 2004 11:59 am
- Location: Italy
- Contact:
- BlasterN
- Gnome
- Posts: 378
- Joined: Thu Mar 24, 2005 1:07 am
- Location: Spain
- Contact:
Sinbad there is a way to render model's shadow with a specific LOD ??
( show LOD 0 & the shadow of LOD 3 for example )
maybe that helps to increase fps
( show LOD 0 & the shadow of LOD 3 for example )
maybe that helps to increase fps
Works:
MapToMesh | Bengine B9 @ www.sourceforge.net/projects/maptoogremesh/
3DWorldStudio exporter@ www.blastern.info
MapToMesh | Bengine B9 @ www.sourceforge.net/projects/maptoogremesh/
3DWorldStudio exporter@ www.blastern.info
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
