IlBrillanteJack
17-02-2012 16:17:52
Sorry for this silly question, but I can't find the OgreOde log file
I expected to find it in the directory bin/release (or bin/debug) of Ogre (like the MyGUI one)
I use:
OS: Xp
IDE: VS2010
Thanks in advance for any help and sorry again (I'm new in OgreOde I use it since yesterday, so the log is important to understand my errors)
IlBrillanteJack
18-02-2012 14:51:52
I know this is a stupid question, but it is very important, is there a log of OgreOde that can help me understand my programming errors? An API doc or something
like that? Thanks, any help is welcome
dermont
19-02-2012 06:43:25
AFAIK for the OgreOde demos the Ogre.log file should be created in the same directory that you run the exe from.
Maybe you could describe the problems/errors you are encountering. Is it a problem with the ogreode demos or your own program? If it's your own program maybe you could post a simple self-contained example illustrating the problem.
IlBrillanteJack
19-02-2012 12:54:26
Thanks dermont
I'll try to be more precise as possible (and sorry for my english):
I used VS2010 + CMake to compile the OgreOde's libraries and to obtain the lib/dll files (all perfect, except for the 3 demos that gave unresolved linking errors).
I followed the pdf "OgreOde Walking Character" and I've structured my code in this way:
- Initialization of the world, ecc. in a function "setupPhysics()" called as first in "createScene()"
- In another function "loadMainChar()" I load the character mesh and after this use the code found into the pdf
The application crashes and I found the sospected row:
OgreOde::CapsuleGeometry* torsoGeom = new OgreOde::CapsuleGeometry(radius,size.y-4*radius,dollSpace);
I've read something in this forum about this problem, but I have not figured out how to solve. I tried to replace with:
OgreOde::CapsuleGeometry* torsoGeom = new OgreOde::CapsuleGeometry(radius,size.y-4*radius,0);
but it's the same.
2 Questions:
1)I have not initialized the CollisionListener, if I inherit OgreOde::CollisionListener and initialize the CollisionListener, the app into the main function gives an error, may depend on it?
2)I do not see the green nets, those around the models, I have to link something into the "resource.cfg" of my project?
Thanks again dermont for your time
dermont
19-02-2012 13:43:54
There is an example based on the OgreOde Walking Character wiki demo in the following link which may help.
viewtopic.php?f=7&t=14948
What are the unresolved linking errors with the 3 demos? It's probably better to resolve these first.
If you still can't resolve your problem upload your header/source file here so someone can take a look.
Edit:
Also make sure that your resources.cfg file points to the OgreOde media, replace "../../Media" with your own path.
...
[Bootstrap]
Zip=../../Media/packs/OgreCore.zip
[OgreOde]
FileSystem=../../Media
IlBrillanteJack
19-02-2012 18:31:43
Ok dermont, sorry for the delay, the resource file is ok (as you have suggested
).
Regarding the demos, I have the following messages:
Errore 2 error LNK1120: 1 esterni non risolti C:\dev\OgreOde\build\bin\Release\Demo_GranTurismOgre.exe
Errore 1 error LNK2019: riferimento al simbolo esterno _main non risolto nella funzione ___tmainCRTStartup C:\dev\OgreOde\build\demos\GranTurismOgre\MSVCRT.lib(crtexe.obj)
it's the same for all 3 demos
Basically the idea was to have a character walking on a terrain (irregular terrain) for my project, using OgreOde. Soon I put my code (maybe only the most important parts, otherwise it becomes difficult to read)
dermont
20-02-2012 07:36:20
Ok dermont, sorry for the delay, the resource file is ok (as you have suggested ).
Regarding the demos, I have the following messages:
Errore 2 error LNK1120: 1 esterni non risolti C:\dev\OgreOde\build\bin\Release\Demo_GranTurismOgre.exe
Errore 1 error LNK2019: riferimento al simbolo esterno _main non risolto nella funzione ___tmainCRTStartup C:\dev\OgreOde\build\demos\GranTurismOgre\MSVCRT.lib(crtexe.obj)
it's the same for all 3 demos
For the 3 demos try changing the Configuration Properties for the 3 projects Linker->System->Subsystem from Console to Windows. The CMake build looks like it needs quite a bit of work so you may have to manually copy across the Ogre/dependency dlls to your OgreOde bin/(Release\Debug) dirs.
Basically the idea was to have a character walking on a terrain (irregular terrain) for my project, using OgreOde. Soon I put my code (maybe only the most important parts, otherwise it becomes difficult to read)
Did you look at the link I posted?
IlBrillanteJack
20-02-2012 10:17:06
For the 3 demos try changing the Configuration Properties for the 3 projects Linker->System->Subsystem from Console to Windows.
dermont = genius
Now I read (well) the link (I read it yesterday but quickly), now I think about it and try to solve. I will update you on the situation.
Thanks again for your kindness and for your time.
IlBrillanteJack
21-02-2012 10:36:04
Ok dermont, I changed tactic, since the demo works, I took the code and I used it as a basis for a working project, I think I've solved all the problems for now.
Thanks for your help
P.S. I add "SOLVED" to the title