Project Wish  
Project Wish
Project Wish
hardwired

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Help] How to use your own landscape?, Question
geoadel
post Oct 2 2006, 05:34 AM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 2-October 06
Member No.: 661



Well, first of all, the program works like a charm and the GUI, while not being as intuitive as I might wish, is really responsive and clean.

I am guessing from your maps - subfolder that the terrains consist of adjacent raw-heightfields. Are there any tools yet to produce your own heightfield?

I mean, I can export grayscale-heightmaps to raw and I might be able to crop and tile them but that seems to be very tidious to me and I hope, you did not have to generate the dwarf-heightfield like this dry.gif

Plus you seem to use some sort of color-map and bumpmap for the smaller details, is there any detail available how to create these?

So I extend my greetings and thank you for your impressive work so far!
I really like the light-editing :-)

P.S.:
On a sidenote, what format are the .mesh files? I am using Blender and I cannot export to .mesh blink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Matlush
post Oct 2 2006, 08:19 AM
Post #2


Power User
****

Group: Members
Posts: 86
Joined: 12-September 06
From: Poland, yay.
Member No.: 637



Blockland has a good possilibity to edit terrain ingame, and yeah, i would like to see a such system next.

About exporting:
http://www.ogre3d.org/index.php?option=com...parent=category
And then use:
http://www.ogre3d.org/index.php?option=com...parent=category
With this second, try editing export script in the first one to insta convert to .mesh file than .mesh.xml

Thanks for Jerky for that info.


--------------------
Wha-- ?...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Jerky
post Oct 2 2006, 12:04 PM
Post #3


Former PW Project Manager
**********

Group: PW Admin
Posts: 1,610
Joined: 11-January 05
From: Dallas, GA
Member No.: 62



Terrain exporting is a bit different. If you are looking to convert meshes, Matlush has given you the information you need.

DWARF uses a terrain scene manager that is an addon to Ogre3D called the Paging Landscape Scene Manager (or PLSM) which is made by a guy named Tuan Kuranes. He made it so that in order to get terrain working, you have to run a tool on it, which is called MapSplitter. Map splitter does more than just subdivide your terrain into many sub-tiles, and Yellow would be able to tell you more, but you can get the link to download mapsplitter from this thread in the PLSM forums:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=745

You can ask questions about how to run map splitter there if you like, but we can continue to help you out if needed. Let us know.


--------------------
Erik Briggs (Jerky)
Project Manager
My Blog
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
geoadel
post Oct 2 2006, 03:24 PM
Post #4


Newbie
*

Group: Members
Posts: 3
Joined: 2-October 06
Member No.: 661



The mesh-exporter does its magic easily - attaching a screenshot for your viewing pleasure and as a small encouragment for further development of DWARF biggrin.gif blink.gif
IPB Image
Imageshack - Bigger version

PLSM2 is giving me a bit of a headache though blink.gif
I would likely be better of asking in the official forum but in case someone encountered this problem before - I'll post the errormessage when running MapSplitter.exe (the version of the binary-demo from http://tuan.kuranes.free.fr/Ogre.html).
I installed MingW, CodeBlock and the dlls and put the binary-demo into
- OgreSDK
-- ogreaddons
--- paginglandscape (apparently you have to rename the default folder, otherwise it will give more error-messages, not finding Ogre and so on)

Still the following error remains:
CODE
22:15:31: Added resource location '../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
22:15:31: Creating resource group PLSM2
22:15:31: An exception has been thrown!

-----------------------------------
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>>
22:15:31: 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>>
22:15:31: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource maptool.cfg in resource group General or any other group..
File: ..\src\OgreResourceGroupManager.cpp
Line: 583
Stack unwinding: <<beginning of stack>>


If you have any quick solutions to this, I'd be happy to try them. Otherwise I'll be asking in the PLSM2-forum.

smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Yellow
post Oct 2 2006, 04:25 PM
Post #5


PW Programming Team Lead
*****

Group: PW Team Leader
Posts: 157
Joined: 17-April 06
Member No.: 592



You probably got these errors because the resource.cfg file isnt pointing to the correct dir's. Open it up and enter the correct paths, that should solve it.

Mapsplitter is a rather complicated tool, I'll try to give to a small overview of the configs it needs.

* mapsplitter.cfg - a list of all maps you want to split, should be in the same dir as mapsplitter.exe

* resources.cfg - list all of the directories you need in this file, so ogre can find them.

* yourterrain.cfg.gen - a config file that specifies how you want your maps split.

* yourterrain.cfg - a config file that tells ogre / plsm2 how the terrain should be rendered.

its best to look at the examples provided by Tuan, and edit them to fit your own needs.

good luck wink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
joshpurple
post Oct 2 2006, 04:54 PM
Post #6


PW Artist
**********

Group: PW Developer
Posts: 790
Joined: 3-July 06
Member No.: 613



Hi Geoadel! Cool that you are working on it smile.gif . Jerky and Matlush are spot on.

Just adding a note of hello and support, if you have questions, etc. I'll be glad to try and help to! biggrin.gif


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
geoadel
post Oct 3 2006, 06:55 AM
Post #7


Newbie
*

Group: Members
Posts: 3
Joined: 2-October 06
Member No.: 661



Okay, thanks for your help smile.gif
I am still trying - I'll shortly describe all the steps I did:

1. Downloaded the demo-pack and the datasrc-pack from tuan.kuranes.free.fr/Ogre.html
Unpacked it and tried to run it - Did not work, but I noticed it tried to find
Ogre (which I had not installed yet :-)

2. Went to www.Ogre3d.org and downloaded
the precompiled Ogre 1.2.3 SDK for Code::Blocks + MinGW C++ Toolbox

3. Looked at the installation instructions at Ogre-Wikie - Installation Instructions for Codeblocks and MinGW
- installed CodeBlocks (with the necessary dlls, MingW and Ogre3D-SDK

4. Tested this installation by compiling succesfully some fresnel-demo- Yay laugh.gif cool.gif

5. a) Unpacked the demo pack (see step 1) and datsrc-pack to OgreSDK\PLSM2 - after initial test with MapSplitter.exe I encountered the following error-message:
CODE
14:29:33: Creating resource group PLSM2
14:29:33: An exception has been thrown!
.......
Description: Cannot open requested directory ../../../../../ogreaddons/paginglandscape/Samples/Media/paginglandscape2.
.......


cool.gif Because of that I renamed the PLSM2-directory to paginglandscape and put it in /OgreSDK/ogreaddons/paginglandscape/

The error-message did not change though unsure.gif
By that time, I noticed Yellows post and thus changed the relative paths from
resources.cfg to absolute ones:
This is my new resources.cfg
QUOTE
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=/Programme/Spiele/SDK/OgreSDK/ogreaddons/paginglandscape/OgreCore.zip

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


The result sadly is still the same (sorry for posting the whole MapSplitter.log,
but I am not sure, I understand it fully):
QUOTE
14:44:39: Creating resource group General
14:44:39: Creating resource group Internal
14:44:39: Creating resource group Autodetect
14:44:39: Registering ResourceManager for type Material
14:44:39: Registering ResourceManager for type Mesh
14:44:39: Registering ResourceManager for type Skeleton
14:44:39: MovableObjectFactory for type 'ParticleSystem' registered.
14:44:39: Loading library OgrePlatform.dll
14:44:39: OverlayElementFactory for type Panel registered.
14:44:39: OverlayElementFactory for type BorderPanel registered.
14:44:39: OverlayElementFactory for type TextArea registered.
14:44:39: Registering ResourceManager for type Font
14:44:39: ArchiveFactory for archive type FileSystem registered.
14:44:39: ArchiveFactory for archive type Zip registered.
14:44:39: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov  9 2005
14:44:39: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
14:44:39: Registering ResourceManager for type HighLevelGpuProgram
14:44:39: Registering ResourceManager for type Compositor
14:44:39: MovableObjectFactory for type 'Entity' registered.
14:44:39: MovableObjectFactory for type 'Light' registered.
14:44:39: MovableObjectFactory for type 'BillboardSet' registered.
14:44:39: MovableObjectFactory for type 'ManualObject' registered.
14:44:39: MovableObjectFactory for type 'BillboardChain' registered.
14:44:39: MovableObjectFactory for type 'RibbonTrail' registered.
14:44:39: Loading library .\RenderSystem_Direct3D9
14:44:39: D3D9 : Direct3D9 Rendering Subsystem created.
14:44:39: D3D9: Driver Detection Starts
14:44:39: D3D9: Driver Detection Ends
14:44:39: Loading library .\RenderSystem_GL
14:44:39: OpenGL Rendering Subsystem created.
14:44:40: Loading library .\Plugin_CgProgramManager
14:44:40: Loading library .\Plugin_ParticleFX
14:44:40: Particle Emitter Type 'Point' registered
14:44:40: Particle Emitter Type 'Box' registered
14:44:40: Particle Emitter Type 'Ellipsoid' registered
14:44:40: Particle Emitter Type 'Cylinder' registered
14:44:40: Particle Emitter Type 'Ring' registered
14:44:40: Particle Emitter Type 'HollowEllipsoid' registered
14:44:40: Particle Affector Type 'LinearForce' registered
14:44:40: Particle Affector Type 'ColourFader' registered
14:44:40: Particle Affector Type 'ColourFader2' registered
14:44:40: Particle Affector Type 'ColourImage' registered
14:44:40: Particle Affector Type 'ColourInterpolator' registered
14:44:40: Particle Affector Type 'Scaler' registered
14:44:40: Particle Affector Type 'Rotator' registered
14:44:40: Particle Affector Type 'DirectionRandomiser' registered
14:44:40: Particle Affector Type 'DeflectorPlane' registered
14:44:40: Loading library .\Plugin_PagingLandScapeSceneManager2
14:44:40: *-*-* OGRE Initialising
14:44:40: *-*-* Version 1.2.2 (Dagon)
14:44:40: Creating resource group Bootstrap
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/ogreaddons/paginglandscape/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/fonts' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/materials/programs' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/materials/scripts' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/materials/textures' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/models' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/overlays' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/particle' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/gui' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
14:44:40: Added resource location '/Programme/Spiele/SDK/OgreSDK/Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
14:44:40: Creating resource group PLSM2
14:44:40: An exception has been thrown!

-----------------------------------
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>>
14:44:40: 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>>
14:44:40: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource maptool.cfg in resource group General or any other group..
File: ..\src\OgreResourceGroupManager.cpp
Line: 583
Stack unwinding: <<beginning of stack>>


As far as I can tell, the program still searches for a relative folder (five folders
above ogreaddons-folder - to me this does not make any sense)
../../../../../ogreaddons/paginglandscape/Samples/Media/paginglandscape2

Since I configured all the folders to absolute paths and I cannot find a cfg, that calls
this folder, I am really at a loss here - not to mention the loss of some hours trying to get it to work tongue.gif blink.gif

Anyway, you have been very nice to me and I hope you still have more advice for me (if someone has a working version, a copy of the paginglandscape folder might be helpful).

Thanks and cheers to you smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Yellow
post Oct 3 2006, 10:46 AM
Post #8


PW Programming Team Lead
*****

Group: PW Team Leader
Posts: 157
Joined: 17-April 06
Member No.: 592



Use relative paths, if your mapsplitter app is in c:/sdk/plsm2/release
and your media forlder is in c:/sdk/psm2/media

it should look something like this:

[PLSM2]
FileSystem= ../media/maps
FileSystem= ../media/paginglandscape2
FileSystem= ../media/paginglandscape2/materials
FileSystem= ../media/paginglandscape2/materials/scripts
FileSystem= ../media/paginglandscape2/materials/textures
FileSystem= ../media/paginglandscape2/materials/programs


note the [PLSM2] (PLSM2 default) tag above these entries. That means its a different group then [General] (ogre default).

might be that there is another .cfg file that points to these directories. Not sure how the new SDk is deployed. try to find something like PLSM2.cfg
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mirko27
post Dec 9 2006, 01:52 AM
Post #9


Newbie
*

Group: PW Developer
Posts: 7
Joined: 22-January 05
Member No.: 427



This problem is hardcoded into source code. Don`t know why Tuan did such a chocie, but these paths are put into code. I recompiled from source and substituted those path in code.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 28th March 2024 - 10:38 PM
Original skin by: b6gm6n | Conversion by: Chris Y
hardwired
  hardwired
hardwired hardwired
hardwired hardwired