PLSM demo and OgreSDK

kneeride

04-12-2006 09:14:02

I have a simple question. Do I need the OgreSDK to run the PLSM demo?

tuan kuranes

04-12-2006 12:25:24

to run binary demo, no.

kneeride

04-12-2006 13:22:59

Ok thanks. I'm just a little confused because I've had to change my resources.cfg that was provided in the demo. Changes I've had to make are as follows:
- All the fonts, program, scripts directories are provided in the root
- OgreCore.zip was also in the root

I'm a little concerned because DeferredShadingMedia did not exist as well as cubemap.zip, cubemapsJS.zip and the other .zip files. I've commented them out (hoping I don't need them).

My new config file:


# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=./OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=../../Media
FileSystem=./fonts
FileSystem=./programs
FileSystem=./scripts
FileSystem=./textures
FileSystem=./models
FileSystem=./overlays
FileSystem=./particle
FileSystem=./gui
#FileSystem=./DeferredShadingMedia
#Zip=../../Media/packs/cubemap.zip
#Zip=../../Media/packs/cubemapsJS.zip
#Zip=../../Media/packs/dragon.zip
#Zip=../../Media/packs/fresneldemo.zip
#Zip=../../Media/packs/ogretestmap.zip
#Zip=../../Media/packs/skybox.zip


Actually textures are in 2 locations. Not sure which the correct one is:
- ./textures
- ./Samples/Media/paginglandscape2/materials/textures

I'm stumped at the moment because I'm getting the following error when running MapSplitter (I've no idea where ogreaddons comes from):


-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: FileSystemArchive::changeDirectory
Description: Cannot open requested directory ../../../../../ogreaddons/paginglandscape/Samples/Media/paginglandscape2.
File: ..\src\OgreFileSystem.cpp
Line: 141
Stack unwinding: <<beginning of stack>>
00:12:57: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: FileSystemArchive::changeDirectory
Description: Cannot open requested directory ../../../paginglandscape/Samples/Media/paginglandscape2.
File: ..\src\OgreFileSystem.cpp
Line: 141
Stack unwinding: <<beginning of stack>>
00:12:57: An exception has been thrown!

tuan kuranes

04-12-2006 13:41:24

ok, i'll check binary demo cfgs, thanks for report and solution.

I'm stumped at the moment because I'm getting the following error when running MapSplitter

Demos tries those two directory to find the required media, but only if didn't find it in the resource.cfg.
Here's what should be a good version




# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=fonts
FileSystem=materials/programs
FileSystem=materials/scripts
FileSystem=materials/textures
FileSystem=models
FileSystem=overlays
FileSystem=particle
FileSystem=gui


[PLSM2]
FileSystem=Samples\Media\paginglandscape2

FileSystem=Samples\Media\paginglandscape2/fonts
FileSystem=Samples\Media\paginglandscape2/models
FileSystem=Samples\Media\paginglandscape2/overlays
FileSystem=Samples\Media\paginglandscape2/materials
FileSystem=Samples\Media\paginglandscape2/materials/scripts
FileSystem=Samples\Media\paginglandscape2/materials/textures
FileSystem=Samples\Media\paginglandscape2/materials/programs

FileSystem=Samples\Media\paginglandscape2/datasrcs
FileSystem=Samples\Media\paginglandscape2/terrains

kneeride

04-12-2006 14:15:01

Thanks Tuan!!

I had to make some changes to your config file in order to get it to work with the demo 'out of the box.' The MapSplitter seemed to work fine.


# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=fonts
FileSystem=programs
FileSystem=scripts
FileSystem=textures
FileSystem=models
FileSystem=overlays
FileSystem=particle
FileSystem=gui

[PLSM2]
FileSystem=Samples\Media\paginglandscape2

##does not exit: FileSystem=Samples\Media\paginglandscape2/fonts
FileSystem=Samples\Media\paginglandscape2/models
FileSystem=Samples\Media\paginglandscape2/overlays
FileSystem=Samples\Media\paginglandscape2/materials
FileSystem=Samples\Media\paginglandscape2/materials/scripts
FileSystem=Samples\Media\paginglandscape2/materials/textures
FileSystem=Samples\Media\paginglandscape2/materials/programs

FileSystem=Samples\Media\paginglandscape2/datasrcs
FileSystem=Samples\Media\paginglandscape2/terrains


I used the same paths for resources_plsm2.cfg. I however get a NewWorld2 error. Is this a terrain that is not provided with the demo? (I do have the latest datasrcs)

The paginglandscape2.cfg file has the following line:
NewWorld2=NewWorld2

Strange thing is i still get the same error when I comment out this line :S


Error #: 7
Function: PagingLandScapeOptions::loadMap
Description: Cannot locate a Config File defining the map named NewWorld2.
File: ..\src\OgrePagingLandScapeOptions.cpp
Line: 476

kneeride

04-12-2006 14:23:05

Ok, fixed...

Changed DefaultMap to Alpes and removed NewWorld2 references.


DefaultMap=Alpes

European_Alpes=Alpes
Terrain_Scene_Manager_Terrain=TsmTerrain
#hf=hf_129_3

#NewWorld2=NewWorld2

# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
puget_sound=ps_height_1k
grand_canyon=gcanyon_height_4k2k
terragen_genrated=terragen16bits


# resource group name where to find map definition
GroupName=PLSM2

# Try forbidden textureformat combinations
TextureFormatDebug=no