hello all.
I'm Ogre newbie
So, I read and try basic tutorial 3 with Ogre 1.9 RC1.
i run Terrain sample. but I can't find BasicTutorial3Terrain_00000000.dat file in OGRE_HOME/media directory.
it created in OGRE_HOME/bin/debug.
so I read saveAllTerrains code, and it depend on resource group.
but I can't understand when and how set OGRE_HOME/bin/debug directory into resource group.
so pelase tell me how it determine save directory.
thank you.
basic tutorial 3, saveAllTerrains make dat file not in media
- natsumesou
- Gnoblar
- Posts: 2
- Joined: Tue Oct 22, 2013 6:31 pm
- Location: Tokyo/Japan
-
- OGRE Expert User
- Posts: 1119
- Joined: Sat Jan 01, 2011 7:57 pm
- x 216
Re: basic tutorial 3, saveAllTerrains make dat file not in m
It's a bug (the function you want to look at is Root::createFileStream).
The problem is, that unless the resource groups are marked as "not read only" (which they aren't), they won't be considered for saving the terrain data. And if it doesn't find any resource group, it will dump the file to the current directory (in your case, the directory of the SampleBrowser executable, ie OGRE_HOME/bin/debug).
I recently pushed a fix for this here: https://bitbucket.org/sinbad/ogre/commi ... 3824c54115 which should be included in RC2. Starting from this commit, it will be saved to your personal folder, where the logs and ogre.cfg are as well (on linux, ~/.ogre, not sure on windows or mac)
The problem is, that unless the resource groups are marked as "not read only" (which they aren't), they won't be considered for saving the terrain data. And if it doesn't find any resource group, it will dump the file to the current directory (in your case, the directory of the SampleBrowser executable, ie OGRE_HOME/bin/debug).
I recently pushed a fix for this here: https://bitbucket.org/sinbad/ogre/commi ... 3824c54115 which should be included in RC2. Starting from this commit, it will be saved to your personal folder, where the logs and ogre.cfg are as well (on linux, ~/.ogre, not sure on windows or mac)
- natsumesou
- Gnoblar
- Posts: 2
- Joined: Tue Oct 22, 2013 6:31 pm
- Location: Tokyo/Japan
Re: basic tutorial 3, saveAllTerrains make dat file not in m
oh, thank you.
I'm lookng forward to publish RC2.
I'm lookng forward to publish RC2.