Myrddin Landscape Plugin SDK

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
Post Reply
User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Myrddin Landscape Plugin SDK

Post by myrddinson »

Hi, i open this new topic for Myrddin Landscape Plugin because i have released MLP SDK (LGPL license) on Sourceforge:

http://myrddinplugin.sourceforge.net/

Please read the release notes below:

////////////////////////////////////////////////////////////////////////////
//
// Myrddin Landscape Plugin C++/C# LGPL SDK 0.93 for MOgre/Ogre
//
// Copyright (C) 2009 Jacques Quidu
//
////////////////////////////////////////////////////////////////////////////


-------------------------------------
What's this
-------------------------------------

Myrddin Landscape Plugin (MLP) is a Ogre Scene Manager which can be used either with MOgre or Ogre applications.

MLP organizes terrain in pages and tiles to produce small or large realistic landscapes which can be seamless or not.

Here is a summary of plugin features:

· terrain splatting (up to 8 layers per page, 4 layers max per pass)
· slope/ground auto-splatting (optional)
· normal/parallax mapping
· integrated light map (color added to ambient color)
· integrated color map (color modulated with diffuse color)
· specular lighting (per layer specular color or specular color map and/or specular color mask)
· emissive lighting (per layer emissive color or emissive color map)
· support for point/directional/spot light(s)
· integrated fog
· integrated shadows
· LOD mipmapping and geomorphing
· paging (seamless or not, streaming)
· water plane(s) (refraction/reflection, sky and sun reflection, deep sea fog)
· dynamic sky (fullscreen sky quad, realtime atmospheric lighting computation, procedural clouds, night sky box, moon billboard, sun glow)
· dynamic fog (realtime atmospheric haze)
· HDR/Bloom post-processing compositors
· smooth interpolation from full effects to low effects at far range using material lods
· runtime-built splatting/water/dynamic sky/haze materials
· extended splatting materials (custom materials that can be mixed with plugin splatting materials in order to add custom splatting effects: for instance LandscapeSplatting/DepthShadowMap/Integrated)
· vs_3_0/arbvp1 and ps_3_0/arbfp1 shader support
· editing features : heightmap, color map, light map and splatting map painting, external heightmap import and mosaic generator
. plugin interface commands (using SetOption/GetOption SceneManager commands)
. QuickGUI wrapper (SetOption/GetOption commands binding with GUI controls, layout serialization and standard controls helper methods)


MLP SDK provides also terrain sample data and demo sources (for both Ogre and MOgre) in order to test at once plugin:
please note that editing paint brushes are available only in MOgre demo, not in Ogre demo
(but of course you can use them in your own app or modify Ogre demo)


-------------------------------------
Home page
-------------------------------------
http://myrddinplugin.sourceforge.net


-------------------------------------
How to Install and Compile MLP
-------------------------------------
Please read "MLP User doc.html"

SDK files for v0.93:

MLPSDK093Sources.rar (SDK sources + install batches + user doc)
MLPSDKDatas090.rar (SDK plugin+demo resources: this file has not changed since v0.90)
MLPSDK093PrecompiledDemoVC9.rar (precompiled MOgre demo)

Please use MLPInstallForOgre16X or MLPInstallForMOgre16X if you install plugin for Ogre/Mogre 160+
and use MLPInstallForOgre14X or MLPInstallForMOgre14X if you install plugin for Ogre/Mogre version 146 up to 149

-------------------------------------
What's the MLP version
-------------------------------------
It's the 0.93 LGPL release.

This release has been tested with MOGre/Ogre 1.4.6 up to 1.6.2.

This version includes only HLSL shaders:
GLSL shaders will be available only in 1.0 version.


-------------------------------------
What has changed since 0.92
-------------------------------------

- fixed auto ground/slope splatting: now shaders compilation do not fail if it is disabled
- fixed terrain resources path formatting bug: "SaveAll" command will not fail now if path is relative
- added command "RenderTargetPrimaryName" (in order to be able to change primary render target)
- updated user doc: see new command "RenderTargetPrimaryName" and "SourcePathName" as well as description on PageMaterials/Material xml elements
(especially useful if you want to import splatting masks from external source)

-------------------------------------
What's still to be done for completing
1.0 LGPL release
-------------------------------------

- GLSL shaders
- some GetOption plugin commands
- SDK install wizard

-------------------------------------
What's still to be done for completing
1.0 Commercial release
-------------------------------------

- GLSL shaders
- some GetOption plugin commands
- SDK install wizard
- commercial website

-------------------------------------
What's the license
-------------------------------------

LGPL (see License.html) for all C++ sources but QuickGUI and Ogre demo sources.
Ogre and MOgre demo sources can be used free: these files are not covered by LGPL license.

shaders.zpk binary file can be used free in any application - commercial or not - as long as it is not modified:
this file is a container for the encrypted shaders which are protected by the copyright:
it means that you will need to provide this file and precompiled Plugin_ZPK.dll (this SDK release includes PLugin_ZPK sources) with your application in order to use encrypted shaders in a personal or commercial application.

Keep in mind that even if you can extract shaders sources from shaders.zpk and modify them,
shaders sources are protected and so you cannot distribute modified shaders sources freely:
you will need to purchase commercial license for that which will give you free, unlimited and unrestricted usage for commercial or personal applications (commercial license for MLP should be around 100 euros: unlimited and unrestricted usage for any number of personal or commercial applications)

As plugin has optional support for QuickGUI, SDK sources package includes also QuickGUI 0.97 modified sources for MLP.

-------------------------------------
Who is responsible
-------------------------------------
Copyright (c) 2009 Jacques Quidu


-------------------------------------
Acknowledgements
-------------------------------------

--Ogre team
They provided the amazing Object-oriented Graphics Rendering Engine (OGRE).

--MOgre team
They provided the amazing C++/CLI wrapper for OGre (MOGRE).

MLP uses also QuickGUI (optional - slightly modified sources), OIS and tinyxml (slightly modified sources).


Great thanks to all the opensource community.
Last edited by myrddinson on Sun Jul 19, 2009 3:09 pm, edited 1 time in total.
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

And here are some screenshots
Enjoy ;)

Image
Image
Image
Image
Image
Image
Image
Image
Image
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

User avatar
AshMcConnell
Silver Sponsor
Silver Sponsor
Posts: 605
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland
x 15
Contact:

Re: Myrddin Landscape Plugin SDK

Post by AshMcConnell »

Some amazing shots there - congrats!

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

Hi, i have just uploaded on sourceforge http://myrddinplugin.sourceforge.net the precompiled demo for SDK v0.93:

MLPSDK093PrecompiledDemoVC9.rar

This will allow you to test plugin without compiling from sources ;)

please read the release notes for archive MLPSDK093PrecompiledDemoVC9.rar below:

////////////////////////////////////////////////////////////////////////////
//
// Myrddin Landscape Plugin Demo
//
// Copyright (C) 2009 Jacques Quidu
//
////////////////////////////////////////////////////////////////////////////


-------------------------------------
What's this
-------------------------------------

This is precompiled MOgre demo for Myrddin Landscape Plugin:
you will need to download MLPSDKDatas090.rar (see sourceforge home page below) too to run the demo.


-------------------------------------
Home page
-------------------------------------

http://myrddinplugin.sourceforge.net



-------------------------------------
How to Install
-------------------------------------

Extract both this archive and MLPSDKDatas090.rar in the same directory.


-------------------------------------
How to run the demo
-------------------------------------

To run the demo, launch .\bin\release\game.exe.
Last edited by myrddinson on Mon Jul 20, 2009 10:09 am, edited 1 time in total.
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

compvis
Gremlin
Posts: 165
Joined: Wed Sep 10, 2008 6:14 am

Re: Myrddin Landscape Plugin SDK

Post by compvis »

i can't see MLPSDK090Datas.rar. Pls upload it

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

Actually it is MLPSDKDatas090.rar and you can find this file in version v0.90: this file has not changed since v0.90 so i did not uploaded it again for later versions.
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

compvis
Gremlin
Posts: 165
Joined: Wed Sep 10, 2008 6:14 am

Re: Myrddin Landscape Plugin SDK

Post by compvis »

hi,

you export full version of Myrddin Landscape Plugin or i have to buy with full version ?

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

you can download Myrddin Landscape Plugin SDK (LGPL license) from Sourceforge which includes all sources but the shaders - that is plugin C++ sources (LGPL) and Ogre/MOgre Demo sources (free): you can use this SDK either for commercial or personal usage as long as you include unmodified file shaders.zpk (encrypted shaders) within your application. If you need to modify the shaders, you will need to buy the commercial license (which should be at a reasonable price - around 100 euros) in order to be able to distribute a commercial application with the modified shaders.
Please read license terms in SDK release notes.
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

compvis
Gremlin
Posts: 165
Joined: Wed Sep 10, 2008 6:14 am

Re: Myrddin Landscape Plugin SDK

Post by compvis »

thank you so much !

compvis
Gremlin
Posts: 165
Joined: Wed Sep 10, 2008 6:14 am

Re: Myrddin Landscape Plugin SDK

Post by compvis »

I compile Myrddin Landscape Plugin SDK and i have a lots of errors:

Code: Select all

3>------ Rebuild All started: Project: Plugin_LandscapeSceneManager, Configuration: Release Win32 ------
3>Deleting intermediate and output files for project 'Plugin_LandscapeSceneManager', configuration 'Release|Win32'
3>Compiling...
3>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
3>tinyxmlparser.cpp
3>tinyxmlerror.cpp
3>tinyxml.cpp
3>OgreTerrainWater.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreTerrainWater.cpp(595) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\src\OgreTerrainWater.cpp(629) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\src\OgreTerrainWater.cpp(1187) : error C2039: 'getWorldPosition' : is not a member of 'Ogre::Node'
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreNode.h(54) : see declaration of 'Ogre::Node'
3>..\src\OgreTerrainWater.cpp(1187) : error C2228: left of '.y' must have class/struct/union
3>..\src\OgreTerrainWater.cpp(1279) : error C2039: 'getWorldPosition' : is not a member of 'Ogre::Node'
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreNode.h(54) : see declaration of 'Ogre::Node'
3>..\src\OgreTerrainWater.cpp(1279) : error C2228: left of '.y' must have class/struct/union
3>OgreTerrainSceneManager.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreTerrainSceneManager.cpp(620) : error C2065: 'mSkyBoxDrawFirst' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(629) : error C2065: 'mSkyPlaneDrawFirst' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(644) : error C2065: 'mSkyDomeDrawFirst' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(1444) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(1451) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2330) : error C2660: 'Ogre::DefaultShadowCameraSetup::getShadowCamera' : function does not take 5 arguments
3>..\src\OgreTerrainSceneManager.cpp(2423) : error C2660: 'Ogre::ShadowCameraSetup::getShadowCamera' : function does not take 5 arguments
3>..\src\OgreTerrainSceneManager.cpp(2425) : error C2660: 'Ogre::ShadowCameraSetup::getShadowCamera' : function does not take 5 arguments
3>..\src\OgreTerrainSceneManager.cpp(2460) : error C2660: 'Ogre::SceneManager::fireShadowTexturesPreCaster' : function does not take 2 arguments
3>..\src\OgreTerrainSceneManager.cpp(2632) : error C2653: 'ShadowListenerList' : is not a class or namespace name
3>..\src\OgreTerrainSceneManager.cpp(2632) : error C2065: 'reverse_iterator' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2632) : error C2146: syntax error : missing ';' before identifier 'ri'
3>..\src\OgreTerrainSceneManager.cpp(2632) : error C2065: 'ri' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2632) : error C2065: 'mShadowListeners' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2632) : error C2228: left of '.rbegin' must have class/struct/union
3>        type is ''unknown-type''
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2065: 'ri' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2065: 'mShadowListeners' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2228: left of '.rend' must have class/struct/union
3>        type is ''unknown-type''
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2143: syntax error : missing ')' before '++'
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2059: syntax error : ';'
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2065: 'ri' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2633) : error C2059: syntax error : ')'
3>..\src\OgreTerrainSceneManager.cpp(2634) : error C2143: syntax error : missing ';' before '{'
3>..\src\OgreTerrainSceneManager.cpp(2635) : error C2065: 'ri' : undeclared identifier
3>..\src\OgreTerrainSceneManager.cpp(2635) : error C2227: left of '->sortLightsAffectingFrustum' must point to class/struct/union/generic type
3>        type is ''unknown-type''
3>..\src\OgreTerrainSceneManager.cpp(2637) : error C2043: illegal break
3>..\src\OgreTerrainSceneManager.cpp(2709) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2712) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2728) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2731) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2797) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2797) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2801) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2801) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2821) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2821) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2825) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(2825) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint32', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4638) : warning C4267: 'argument' : conversion from 'size_t' to 'Ogre::ushort', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4638) : warning C4267: 'argument' : conversion from 'size_t' to 'Ogre::ushort', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4647) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4652) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4657) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4667) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(4686) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(5078) : error C2228: left of '.getLight' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(5078) : error C2228: left of '.getCastShadows' must have class/struct/union
3>..\src\OgreTerrainSceneManager.cpp(5212) : error C2039: 'getWorldPosition' : is not a member of 'Ogre::Renderable'
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreRenderable.h(58) : see declaration of 'Ogre::Renderable'
3>..\src\OgreTerrainSceneManager.cpp(5319) : error C2228: left of '.setCurrentRenderable' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(5321) : error C2228: left of '.setWorldMatrices' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(5347) : error C2039: 'getNormaliseNormals' : is not a member of 'Ogre::Renderable'
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreRenderable.h(58) : see declaration of 'Ogre::Renderable'
3>..\src\OgreTerrainSceneManager.cpp(5365) : error C2039: 'getClipPlanes' : is not a member of 'Ogre::Renderable'
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreRenderable.h(58) : see declaration of 'Ogre::Renderable'
3>..\src\OgreTerrainSceneManager.cpp(5443) : error C2228: left of '.setTextureProjector' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(5451) : error C2228: left of '.setTextureProjector' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(5509) : error C2228: left of '.setCurrentLightList' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(5561) : error C2228: left of '.setCurrentLightList' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(6322) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6329) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6365) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(6366) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(6367) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainSceneManager.cpp(6491) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6493) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6498) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6531) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6533) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6540) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6542) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6558) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainSceneManager.cpp(6993) : error C2228: left of '.getTime' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(6996) : error C2228: left of '.getTime_0_X' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(6999) : error C2228: left of '.getCosTime_0_X' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7002) : error C2228: left of '.getSinTime_0_X' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7005) : error C2228: left of '.getTanTime_0_X' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7008) : error C2228: left of '.getTime_0_1' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7011) : error C2228: left of '.getCosTime_0_1' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7014) : error C2228: left of '.getSinTime_0_1' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7017) : error C2228: left of '.getTanTime_0_1' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7020) : error C2228: left of '.getTime_0_2Pi' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7023) : error C2228: left of '.getCosTime_0_2Pi' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7026) : error C2228: left of '.getSinTime_0_2Pi' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7029) : error C2228: left of '.getTanTime_0_2Pi' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreTerrainSceneManager.cpp(7163) : error C2039: 'format' : is not a member of 'Ogre::CompositionTechnique::TextureDefinition'
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreCompositionTechnique.h(46) : see declaration of 'Ogre::CompositionTechnique::TextureDefinition'
3>..\src\OgreTerrainSceneManager.cpp(7192) : error C2660: 'Ogre::CompositorInstance::getTextureInstanceName' : function does not take 1 arguments
3>..\src\OgreTerrainSceneManager.cpp(7322) : error C2660: 'Ogre::CompositorInstance::getTextureInstanceName' : function does not take 1 arguments
3>OgreTerrainRenderable.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreTerrainRenderable.cpp(137) : warning C4018: '>' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(190) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(192) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(365) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(365) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(365) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(365) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(400) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(410) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(522) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(540) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(542) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(645) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(667) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(805) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(822) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(824) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(827) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(828) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(829) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(831) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(832) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(833) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(934) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(999) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1005) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1015) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1016) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1021) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1045) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1046) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1047) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1051) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1052) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1053) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1061) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1062) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1063) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1067) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1068) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1069) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1079) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1080) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1081) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1085) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1086) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1087) : warning C4267: '=' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1112) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1113) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1115) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(1115) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainRenderable.cpp(1224) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainRenderable.cpp(1225) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>OgreTerrainPageSource.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreTerrainPageSource.cpp(101) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainPageSource.cpp(195) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainPageSource.cpp(202) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainPageSource.cpp(231) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainPageSource.cpp(232) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainPageSource.cpp(253) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreTerrainPageSource.cpp(254) : warning C4018: '<' : signed/unsigned mismatch
3>OgreTerrainPage.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreTerrainPage.cpp(124) : warning C4018: '<' : signed/unsigned mismatch
3>OgreTerrainEditElem.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreTerrainEditElem.cpp(91) : warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainEditElem.cpp(96) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreTerrainEditElem.cpp(198) : warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned short', possible loss of data
3>..\src\OgreTerrainEditElem.cpp(218) : warning C4018: '<' : signed/unsigned mismatch
3>OgreSplattingMaterial.cpp
3>..\src\OgreSplattingMaterial.cpp(43) : fatal error C1083: Cannot open include file: 'OgreMaterialScriptCompiler.h': No such file or directory
3>OgreRectangle2DTess.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreRectangle2DTess.cpp(83) : error C2228: left of '.getCurrentRenderTarget' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreRectangle2DTess.cpp(83) : error C2228: left of '.getCurrentRenderTarget' must have class/struct/union
3>        type is 'Ogre::AutoParamDataSource *'
3>        did you intend to use '->' instead?
3>..\src\OgreRectangle2DTess.cpp(83) : error C2227: left of '->requiresTextureFlipping' must point to class/struct/union/generic type
3>..\src\OgreRectangle2DTess.cpp(96) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreRectangle2DTess.cpp(97) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreRectangle2DTess.cpp(128) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreRectangle2DTess.cpp(129) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreRectangle2DTess.cpp(131) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint16', possible loss of data
3>..\src\OgreRectangle2DTess.cpp(132) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint16', possible loss of data
3>..\src\OgreRectangle2DTess.cpp(133) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint16', possible loss of data
3>..\src\OgreRectangle2DTess.cpp(135) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint16', possible loss of data
3>..\src\OgreRectangle2DTess.cpp(136) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint16', possible loss of data
3>..\src\OgreRectangle2DTess.cpp(137) : warning C4267: '=' : conversion from 'size_t' to 'Ogre::uint16', possible loss of data
3>OgreOctreeSceneQuery.cpp
3>OgreOctreeSceneManagerDll.cpp
3>c:\documents and settings\le khanh thanh\desktop\myrddinilandscape\mlpsdk093sources\myrddinsdks\lgpl\pluginsvs2008\plugins\landscapescenemanager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>OgreOctreeSceneManager.cpp
3>OgreOctreePlugin.cpp
3>c:\documents and settings\le khanh thanh\desktop\myrddinilandscape\mlpsdk093sources\myrddinsdks\lgpl\pluginsvs2008\plugins\landscapescenemanager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>OgreOctreeNode.cpp
3>OgreOctreeCamera.cpp
3>OgreOctree.cpp
3>OgreMathFilter.cpp
3>OgreHeightmapTerrainPageSource.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreHeightmapTerrainPageSource.cpp(201) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(222) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(248) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(682) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(730) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(779) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(842) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1315) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1319) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1328) : error C2259: 'Ogre::TerrainRenderable' : cannot instantiate abstract class
3>        due to following members:
3>        'void Ogre::MovableObject::visitRenderables(Ogre::Renderable::Visitor *,bool)' : is abstract
3>        d:\klink projects\klink engine without ogre\klink core without ogre\inc\OgreMovableObject.h(484) : see declaration of 'Ogre::MovableObject::visitRenderables'
3>..\src\OgreHeightmapTerrainPageSource.cpp(1332) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(1332) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(1651) : warning C4018: '>=' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1652) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(1653) : warning C4018: '>=' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1654) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreHeightmapTerrainPageSource.cpp(1786) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1790) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1807) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreHeightmapTerrainPageSource.cpp(1811) : warning C4018: '<' : signed/unsigned mismatch
3>Compiling...
3>OgreGUIManager.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>..\src\OgreGUIManager.cpp(271) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreGUIManager.cpp(1314) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreGUIManager.cpp(1321) : warning C4018: '<' : signed/unsigned mismatch
3>..\src\OgreGUIManager.cpp(1376) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreGUIManager.cpp(1376) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\src\OgreGUIManager.cpp(1734) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\src\OgreGUIManager.cpp(1758) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\src\OgreGUIManager.cpp(2294) : warning C4018: '<' : signed/unsigned mismatch
3>OgreAtmosphericLightScattering.cpp
3>c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\include\OgreTerrainSceneManager.h(813) : error C2440: 'return' : cannot convert from 'Ogre::AutoParamDataSource *const *__w64 ' to 'const Ogre::AutoParamDataSource *'
3>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
3>Project : warning PRJ0018 : The following environment variables were not found:
3>$(OGRE_SRC)
3>Build log was saved at "file://c:\Documents and Settings\Le Khanh Thanh\Desktop\Myrddinilandscape\MLPSDK093Sources\MyrddinSDKs\LGPL\PluginsVS2008\Plugins\LandscapeSceneManager\obj\Release\BuildLog.htm"
3>Plugin_LandscapeSceneManager - 72 error(s), 139 warning(s)

KoudyDevCZ
Gnoblar
Posts: 4
Joined: Wed Jul 15, 2009 11:07 am
Location: Hradec Králové, Czech Republic

Re: Myrddin Landscape Plugin SDK

Post by KoudyDevCZ »

Hi,
How to make new landscape data?

User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Myrddin Landscape Plugin SDK

Post by Herb »

Hey KoudyDevCZ,

Here's how I'm doing it. Download the free version of L3DT. Make a new map, in particular you want the height field (height map). Make it 2048x2048 if you want it the same size as the demo scene. Export the height field map to a RAW format. Now, to get the map in tiles you need to use the scene manager's "ToolGenerateMosaic" option. You'll find info on it in the Myrddin documentation. But, if you look at the source for the MOgre example, there's a commented out line in GameMain.cs

sceneMgr.SetOption("ToolGenerateMosaic", "F:\\Trunk\\MyrddinEngine\\Datas\\Terrain\\landsample\\landsample.raw F:\\Trunk\\MyrddinEngine\\Datas\\Terrain\\landsample landsample_hm.raw 8 true 0.6 3");

Uncomment this and modify the value. Double check what key stroke will execute it or change it to what you want. The above statement for example is taking the landsample.raw file and making an 8x8 set of pages. Again, look at the documentation for more info. The output will be all those tiles you need for paging. Then make your new xml config file for the new landscape or just tweak a few lines from the demo scene one (landsample.xml)

L3DT is a pretty cool tool if you haven't used it and Myrddin works great with the RAW output. Hope that helps!

- Herb

User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Myrddin Landscape Plugin SDK

Post by Herb »

Myrddinson -

I've successfully converted my game over to Myrddin. Everything looks great and now that I figured out how to get new terrain in, I'm adding more scenes (zones) to the game. However, I've found one issue with level tear downs. Each "level" involves a new scene manager, so the Myrddin scene manager can be brought up and down many times throughout the game. I'm finding large memory leaks when I tear down a Myrddin scene. I took all my other components out, but I'm still having this issue. For a test, I just have the landsample terrain with only a free flying camera, but the issue is still there. Is there a certain way I should be deleting the scene manager? Right now I'm doing the following for my simple test scene exit function:

// remove input listeners
mInputMgr->removeKeyListener("levelKeyListener");
mInputMgr->removeMouseListener("levelMouseListener");

// remove the viewport
mRenderWin->removeAllViewports();

// destroy Myrddin scene manager
mRoot->destroySceneManager(mSceneMgr);

Any ideas for me? The parent class maintains the pointers to the root, render window, and input manager, so those are reused for each level. Again, I appreciate all the work you've put into this. :) If more info would help to figure this out, let me know.

Thanks,
Herb

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

Hi,

to compvis: ensure you have installed the right sdk for the version of Ogre you use - use MLPInstallForOgre14x for 1.4.6 up to 1.4.9 and MLPInstallForOgre16x for 1.6.0+ because sources are slightly different. And do not try to compile directly from sdk sources: use MLPInstallForOgre... batch commands to properly install sdk (please read MLP User Doc).

to Herb: thanks first for replying to KoudyDevCZ. About these memory leak issues, you can try to clear the scene before removing the viewports. And what objects exactly are concerned by the memory leaks ?
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: Myrddin Landscape Plugin SDK

Post by Herb »

Myrddinson - Well, clearing doesn't work since if I clear it and then call root->destroySceneManager it errors, and if I don't call that root method that scene manager will still be reference in root which causes the next level load to error. I guess the big issue is this:

My main menu state (which does not use Myrddin scene manager) uses about 46MB of memory. I've reloaded that state over and over to verify for memory leaks and it stays to around 46MB. When I load the Myrddin level state, the game is uses 75MB initially (depends on how much I walk around with the page loading), but when I leave the level and come back to the menu state, I'm at 62MB instead of around 46MB at the main menu. Each time I reload a Myrddin level and come back to the main menu the amount of memory used grows, which is the real problem.

I'm wondering if something isn't getting called in the destructor of Myrddin or something? Thoughts on that?

Thanks,
Herb

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

Hi, well i will investigate this memory leak when i can spare time on it.
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

i guess it is because there are still memory whom allocating policy has not been properly ported from 1.4.x to 1.6.x which can lead to memory leak issues: i will check for that.
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: Myrddin Landscape Plugin SDK

Post by DanielSefton »

I think it would be far easier to manage if you committed it to SourceForge's SVN. That way you can track changes, and users will be able to get any fixes much faster without waiting for a new version. Just a suggestion. :wink:

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

yes i was thinking too about creating a SVN repository - because only the shaders are protected: coming soon...
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

User avatar
oskEE
Gnoblar
Posts: 14
Joined: Tue Mar 31, 2009 1:31 pm
Location: Prague, Czech Republic
Contact:

Re: Myrddin Landscape Plugin SDK

Post by oskEE »

Hi guys

At first, many thanks to myrddinson for the work you have done. I think you have created more than a viable alternative to the current terrain rendering options in Ogre.
Currently I'm in the process of integrating MLP into my project. I've compiled MLP without problems, however I have problems running my application with it. During the setWorldGeometry() call, I get a debug assertion fail, for the reason of TerrainSceneManager::mRTPrimary being NULL. It seems that the mRTPrimary has to be explicitly set, possibly via the TerrainSceneManager::setRTPrimaryName() method :?: . However, I've been following the way to initialize MLP as in the accompanying demo application (or at least I think so :) ) and I can't find any such call in the demo code. Could anybody help me how to solve this?

Thanks,
oskEE

EDIT: Nvm, I've already solved it. The setRTPrimaryName() did the work.
Core 2 Duo @ 1.86 GHz / GeForce 8800GT 512 MB / Windows 7 (64bit)

Razumihin
Kobold
Posts: 26
Joined: Thu Jul 30, 2009 11:35 am

Re: Myrddin Landscape Plugin SDK

Post by Razumihin »

Hi!

I'm trying to integrate Myrddin and Hydrax to my project and I would need to get Ogre::MaterialPtr pointer to the terrain material to get hydrax working correctly by setting hydrax->getMaterialManager()->addDepthTechnique(). Is this possible somehow?

User avatar
myrddinson
Greenskin
Posts: 125
Joined: Mon Mar 31, 2008 1:16 pm
Location: France
x 5

Re: Myrddin Landscape Plugin SDK

Post by myrddinson »

Hi,

to oskee: yes you need to call setRTPrimaryName or the new plugin interface command SetOption("RenderTargetPrimaryName",nameRT) if your primary render target is not the ogre default one.

to Razumihin: actually plugin deals natively with LOD rendering using lod techniques for terrain rendering for primary render target or water render target(s) so i do not understand why you need to tell hydrax something: please what does exactly do hydrax->getMaterialManager()->addDepthTechnique() ? And there is not one terrain material but possibly up to one terrain material per terrain tile depending on the splatting definition per tile - these materials are generated by splatting material manager when appropriate. Actually for the built-in water render targets, i use low detail techniques for terrain rendering because water distortion does not make sense to deal with high detail techniques so what you should need is a way to tell plugin that you use custom water render targets - in order plugin to use the right low detail techniques on your water render targets: so i will add a plugin interface method in order to tell plugin about custom water render targets. In the meantime terrain should be rendered like on the primary render target on your water render targets so it should work fine.

And thanks guys for using MLP ;)
Myrddinson
http://myrddinplugin.sourceforge.net/

Intel Core I7 CPU, Geforce GTX 260M 1GB

Razumihin
Kobold
Posts: 26
Joined: Thu Jul 30, 2009 11:35 am

Re: Myrddin Landscape Plugin SDK

Post by Razumihin »

Hi, thanks for the answer. As I understand, adding materials to Hydrax's depthtechnique is the way that hydrax knows how to render underwater areas correctly. If i do not tell hydrax about the terrain material it's waterplane surface is completely transparent and i cannot change the visibility parameters.

And another question came up also: I would like to add splatting materials depending on the height of my landscape, can this be done nicely somehow? This might be a RTFM issue, but I don't think it hurts to ask :)

User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: Myrddin Landscape Plugin SDK

Post by DanielSefton »

Razumihin wrote:And another question came up also: I would like to add splatting materials depending on the height of my landscape, can this be done nicely somehow? This might be a RTFM issue, but I don't think it hurts to ask :)
Just turn on AutoSplatting in the config (it should be enabled anyway) :P

User avatar
oskEE
Gnoblar
Posts: 14
Joined: Tue Mar 31, 2009 1:31 pm
Location: Prague, Czech Republic
Contact:

Re: Myrddin Landscape Plugin SDK

Post by oskEE »

Thanks for the answer, myrddinson...I think using MLP is the least we can do :wink:
I have an another question though...when I launch my app with MLP plugged in, I get a completely white terrain. No splatting, no shading, just plain white. The strange thing is that reflections and refractions work quite well (so I get a rocky reflection of a white mountain, for instance). I'm using the same dataset & config file as in the demo; I hassled for some time with the config file and the code itself (of my app), but for no effect. I think that by painting something completely white, Ogre signalizes that something in the shading stage is incorrect; I just can't figure out, what should that be. Please help :)

UPDATE: Maybe it will be better, if I show a depiction of the situation. Now that I'm looking on the reflections/refractions, I can discern that no splatting at all is applied, the terrain is just shaded, but coloured white, I think.
Attachments
mlp.jpg
mlp.jpg (197.42 KiB) Viewed 20215 times
Last edited by oskEE on Sun Aug 02, 2009 4:34 pm, edited 1 time in total.
Core 2 Duo @ 1.86 GHz / GeForce 8800GT 512 MB / Windows 7 (64bit)

Post Reply