[SOLVED]Newbie: Editing tutorials, new mesh, no shadows

wiso

25-04-2011 18:27:49

Hello Everyone,
I sincerely apologize for this basic question. I am not positive where my process is going wrong. I have a feeling its more generally about OGRE and not MOGRE, but since I am using MOGRE (following the excellent examples from the Tutorial Framework for Visual C# 2010), I figured I would start here.

I have gone through the tutorials... a lot of fun. Now I was just trying to make some edits testing the workflow to model a mesh and introduce it into a scene. I am just editing the second tutorial with my new mesh. The issue is that my mesh is shaded by the lights, but it does not cast shadows. All of the other meshes included in the sample project work as expected. I modelled my mesh in Rhino3d/Grasshopper, then imported into Maya, and then used OgreMax mesh export to get the .mesh file. It shows up fine in the scene, just does not cast shadows (as in the tutorial, the entity's cast shadow attribute is set to true).

I had read that using the Command Line tools (OgreMeshUpgrade.exe) would format the mesh so that it would be able to cast shadows. Working with this however yielded some errors:

19:04:51: Creating resource group General
19:04:51: Creating resource group Internal
19:04:51: Creating resource group Autodetect
19:04:51: Registering ResourceManager for type Material
19:04:51: Registering ResourceManager for type Skeleton
19:04:51: Registering ResourceManager for type Mesh
19:04:51: OGRE EXCEPTION(7:InternalErrorException): Cannot find serializer implementation for current version [MeshSerializer_v1.41] in MeshSerializer::importMesh at ..\src\OgreMeshSerializer.cpp (line 115)
19:04:51: Unregistering ResourceManager for type Mesh
19:04:51: Unregistering ResourceManager for type Skeleton
19:04:51: Unregistering ResourceManager for type Material


Do I need a different version of the MeshUpgrader to work with the version of OGRE bundled with MOGRE? Again, apologies for such basic questions...hopefully I can contribute after some weeks of development!

Thanks!

wiso

25-04-2011 18:51:27

Ok, after looking at all the stuff I downloaded, I finally found the OgreMeshUpdater.exe bundled with Mogre171VS2010Libs.7z. Now the mesh which I am using casts shadows as expected.