Create Entity Problem


19-03-2006 04:41:03

Is there any reason that creating an entity after the render loop starts raises an error?

entity = sceneManager.createEntity('robot', 'robot.mesh')


22:18:03: Mesh: Loading robot.mesh.
22:18:03: Skeleton: Loading robot.skeleton
22:18:03: Texture: r2skin.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
22:18:03: An exception has been thrown!

Error #: 9
Function: Ogre/HardwareSkinningOneWeight
Description: Cannot load GL vertex program Ogre/HardwareSkinningOneWeight. Line -1:
File: ..\src\OgreGLGpuProgram.cpp
Line: 126
Stack unwinding: <<beginning of stack>>

If I preload that same entity before render loop starts, and load it again afterwards, everything is fine.

What is stranger? My code doesn't work with my computer with GeForce ti4200. However, it does work fine with my dual core amd with GeForce 6800XT!

Any clues anyone? Should I post this to the general forum?


14-04-2006 01:11:46

I encountered this same problem while doing Intermediate Tutorial 2 from the Ogre3d wiki, this time in C++. My graphics card is an NVIDIA Geforce 4800Ti. Running Linux 2.6.15 on Debian unstable. Ogre3d version is 1.0.6.

From glxinfo:
OpenGL version string: 1.5.5 NVIDIA 81.78


17-04-2006 10:38:15

Someone else on the main forum had this problem. Could be your graphics card doesn't support hardware skinning. Run and check the message at the bottom of the screen.

If it says "Software Skinning is Enabled" then you could try forcing Software skinning by editing Examples.material -> material "Examples/Robot" and remove the Hardware skinning technique??