Input not working in demos in Linux

durmieu

19-09-2007 16:53:09

Hi,

I want to report a problem I'm having with the demos. When I run the demos the windows just grabs the mouse (I can see the cursor), I can see the scene, and the fps, ogrelogo etc... but there is no response to the mouse nor keyboard. I'm using the packaged ubuntu gutsy ogre (ver. 1.4.3-1build1) but have the same problem with the latest cvs.

Any ideas why this?

Thanks,

durmieu

19-09-2007 17:42:42

addingmMouse->capture();
mKeyboard->capture();

solved it.

now I can run Simple scenes, only problem is if I switch to the test F4 (trimesh?) , which is what Im interested in, I can see a green terrain mesh for about half a second and then the program crashes:

MovableObjectFactory for type 'ODERagdoll' registered.
Mesh: Loading landscape.mesh.
Texture: grass.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Texture: soil_wall.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
Fallo de segmentación (core dumped)


any ideas?

Thanks

Note, runing ubuntu gutsy ogre 1.4.3, ode 0.8 and latest ogreode from cvs.

minpla

13-10-2007 09:05:49

Perhaps the problem is that not find the soil_wall.jpg. A problem that happened to me was that I don't have a complete "resources.cfg" file.

1. Look if you executes the Simples Scenes form pathOfOgreDir/Samples/Common/bin

2. Look if you add
# Recursos per al OgreOde
[OgreOde]
FileSystem=../../Media/ogreode

at the end of "resources.cfg" in pathOfOgreDir/Samples/Common/bin directory.

3. Look if you copy the contents of the folder pathOfOgreOdeDir/demos/Media to a directory named pathOfOgreDir/Samples/Media/ogreode/