Installing GOOF

ochensati2

20-12-2006 07:03:39

OK, I just got GOOF up and working (mostly) so here are my noob mistakes so everyone else doesn't have to make the same ones.

1. Follow the installation WIKI exactly put everything in its place.

2. You need to add
OgrePagingLandScapeAxisAlignedBoxSceneQuery.cpp and its header to the Plugin_PagingLandScapeSceneManager2 project. This will make that project compiles.

3. There is an error in the GOOFPagingLandscapeEditorPlugin. You need to find the lines in GOOFPagingLandscapeEditorPlugin.cpp (ln 806) and that specify rsq_firstterrain and change them to



mRayQuery->setQueryMask(Ogre::SceneManager::WORLD_GEOMETRY_TYPE_MASK);
mRayQuery->setWorldFragmentType(Ogre::SceneQuery::WFT_SINGLE_INTERSECTION);


also at Ln 830, do the same

This seems to work

4. My complier(VC++ 2005) had a hard time with all the dependancies. I just had to search until I got them all into the IDE

5. If you start it up and get a blank screen, you have committeed one of two errors.
a. You are not starting the program from ogrenew/samples/common/bin
b. you have not changed the resource.cfg file or the Plugins_plsm2.cfg files
c. You did not copy the samples file from ogreaddons/GOOF to ogrenew

I found that hitting alt-tab when the screen was blank and then looking for the lost resource cleared everything up right away.

6. When the program starts all you see is a nice sunset, Took me a moment to figure out that right clicking the screen and looking up and then
moving forward would allow me to get over the top of the landscape. I then could right click and look down and the landscape.


I still have two errors that I cannot seem to overcome. The first is a GOOf error that I am trying to track which is that when I try to paint the texture on the landscape, the program crashes completely, nothing in ogre.log to look at. The second error makes the first more difficult. When I try to compile GOOFPagingLandscapeEditorPlugin for debug I get the error
LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc71-mt-gd-1_33_1.lib'

I got this error with the release, but I got my lib and include files correct and the error cleared up, but only for the release configuration. I made sure that the dependancies were correct for the debug properiets, but I still get the same error. I compiled BOOST with the VC8_0 option, so
I am a little stumped by this one.

Last error is just to check if this is by design, when i move around the editorwith the mouse keys, rectangular parts of the landscape disappear and reappear. This seems to happen most when the parts are partially covered by a mountain or at the edge of the screen. Is this a known bug in the paging manager?

Thank you for your help.

Falagard

20-12-2006 14:08:01

I'm going to paste this into the wiki ;-)

Regarding the error, I don't remember seeing this one specifically. Try checking the release vs debug link settings, directories, etc, and check the list of .lib files linked in the debug and compare against release. It's possible that boost::filesystem automatically adds #pragma directives to add the appropriate .lib file and you may just need the path in the additional directories.

Painting was working when GOOF was checked into CVS, so something (probably minor) has changed in the PLM2 since then. If you debug and step through you might be able to find what's going on.

ochensati2

20-12-2006 17:19:08

OK, got it. Still getting used to the IDE. (Last time I used c++ was a text editor and gcc). The linker error is fixed by clicking on the properties tab, the linker, then input. The boost file is listed there under the additional dependancies, once I had deleted that file, boost correctly listed the library it wanted. Now I can use the debugger to fix the painting problem :lol:

Falagard

20-12-2006 19:07:14

Thanks for the solution :-)

bibiteinfo

31-12-2006 18:04:34

I had a hard time the first time to install Boost.

I had the same error LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc71-mt-gd-1_33_1.lib'.

Running bjam.exe in DEV_ROOT/Boost was not working, I don't know if it's the special french character (é) in the path that make it wrong, but when I put Boost in C:\, it work perfectly, after that I just need to change the path in the linker to make boost work properly.

ohms

02-01-2007 05:31:26

Hi, everyone.

I have been looking through every suggestions about installing GOOF but still getting these errors.

http://www.cp.eng.chula.ac.th/~g47ntp/Files/build_log.txt

My development enviroment is VS 2005 express edition. I've just downloaded latest version of both ogre and GOOF from CVS lastday. Can anyone tell me what's wrong with this?

bibiteinfo

02-01-2007 15:17:20

You need to download the 1.2.0 version of Ogre first, the head one is Eihort (1.3.0).

parwis

09-01-2007 22:28:23

Hi all.
I made everything with instruction but i still have problem with Plugin_PagingLandScapeSceneManager2. When i try to build it, i get this errors:
------ Build started: Project: Plugin_PagingLandScapeSceneManager2, Configuration: Release Win32 ------
Linking...
Creating library ..\bin\Release/Plugin_PagingLandScapeSceneManager2.lib and object ..\bin\Release/Plugin_PagingLandScapeSceneManager2.exp
OgrePagingLandScapeSceneManager.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::PagingLandScapeMeshDecalFactory::destroyInstance(class
Ogre::MovableObject *)" (?destroyInstance@PagingLandScapeMeshDecalFactory@Ogre@@UAEXPAVMovableObject@2@@Z)
OgrePagingLandScapeSceneManager.obj : error LNK2001: unresolved
external symbol "public: virtual class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const & __thiscall
Ogre::PagingLandScapeMeshDecalFactory::getType(void)const
" (?getType@PagingLandScapeMeshDecalFactory@Ogre@@UBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
OgrePagingLandScapeSceneManager.obj : error LNK2001: unresolved external symbol "protected: virtual class Ogre::MovableObject * __thiscall Ogre::PagingLandScapeMeshDecalFactory::createInstanceImpl(class
std::basic_string<char,struct std::char_traits<char>,class (...)*)" (?createInstanceImpl@PagingLandScapeMeshDecalFactory@
..\bin\Release/Plugin_PagingLandScapeSceneManager2.dll : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\Dev_root\ogrenew\PlugIns\PagingLandScape2\obj\Release\BuildLog.htm"
Plugin_PagingLandScapeSceneManager2 - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========


My Ogre version is 1.2.1, (i tried in 1.2.0 but with same result) and i have all dependencis.

Any ideas?

sklug

10-01-2007 03:51:16

You need to add OgrePagingLandScapeMeshDecal.cpp (and .h if you wish) to the project. Not sure why that hasn't made it in there, as I believe I put it in the patch. Hrm.


sklug

parwis

10-01-2007 20:39:41

Thanks!!
I added those two files now works fine :)

parwis

13-01-2007 13:06:31

Now i got another problem with Goof Editor, when i run the demo the tarrain is invisible. I tried with few different maps but with the same result.

I found this warnings in Ogre.log:

13:46:25: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
13:46:25: Warning: material PLSplattingShaderLitDecompress.1.0.TempMap has no supportable Techniques on this hardware, it will be rendered blank.
13:46:25: Warning: material PLSplattingShaderLitDecompress.1.1.TempMap has no supportable Techniques on this hardware, it will be rendered blank.
13:46:26: Warning: material PLSplattingShaderLitDecompress.0.0.TempMap has no supportable Techniques on this hardware, it will be rendered blank.
13:46:26: Warning: material PLSplattingShaderLitDecompress.0.1.TempMap has no supportable Techniques on this hardware, it will be rendered blank.



I tried to diable vertexCompression and vertexMorphing in .cfg file but editor demo automatically enables it. Any idea how to fix it?

ochensati2

13-01-2007 14:55:33

I could only get it work in release mode. also the camera starts even with the landscape so you have to go up a little to see the landscape

bibiteinfo

13-01-2007 22:28:21

It's a bit bizarre because the CVS version is known to be working only in debug mode ... did you make sure that the dependencies of the debug mode where linked with the debug DLL's? To know that the DLL is debug, it finish with _d.

parwis

14-01-2007 19:48:32

I builded it in debug mode and with the same result.

KidParanoja

16-02-2007 14:17:24

hi,

has someone of you got this working with code::block or devc++.
because i didn´t. i followed the instruction step by step, for boost i used the commands for myngw, but nothing.
if anyone has an idea...

thanks


i have another question:


Paging Scene Manager


1. Copy ogreaddons/paginglandscape/Tools Samples and Plugins folders to DEV_ROOT/ogrenew folder


Note: No need to download datasrcs.zip or compile and run mapslitter as per the Paging Scene Manager instructions unless you want to.
[edit]
GOOF


1. Copy ogreaddons/GOOF/Samples into ogrenew
2. Copy ogreaddons/GOOF/GOOF into DEV_ROOT/

Note: A config file called Resources_GOOF.cfg will be copied into the ogrenew/samples/common/bin/debug and release folders. Backup the existing Resources.cfg file and overwrite with Resources_GOOF.cfg. If you have resource paths for an existing project that you need to keep, make changes to the new Resources.cfg.


is this right? because as i understand it this would replace the existing Tools, Samples etc. folders.

or do i have to copy the ogreaddons/paginglandscape/Tools into the [DevRoot]/ogrenew/ogreaddons/paginglandscape/Tools folder???

Sorry, maybe its because of my english skills but i don´t understand it.

NHunter

18-02-2007 13:48:43

i guys,
i have a problem compiling boost,i too follow wiki step by step,but boost return me a lot of error,looks like even i have instaled VisualStudio 2005 boost trying to find Visual Studio Net 2003,as appear on error screen while compile.

errors like
"C:\Archivos de programa\microsoft Visual Studio .net 2003\vc7\bin\vcvars32.bat" and another searchs on the same branch of the .net 2003 directorys, that logically dont exist,because i run vsvrs32 from "\Microsoft Visual Studio 8\Common7\tools\" for example.

is this version only for .net 2003? maybe a configuration file where i change to the valid path?

thanks! ....and sorry for my english XD

bibiteinfo

18-02-2007 17:39:19

It works under VS 2005. But you have to make modifications that are written in the wiki for the VS8 (2005) version. The problem you are having is that you try to install boost with a folder that has space in it. Install boost in C:\Boost and it will work fine.

NHunter

18-02-2007 18:47:55

edit: solved,thanks

thanks bibiteinfo,

but i think thats not the problem,i have Boost in C:\GOOF\Boost , son i havent folders with space,and as i read post before mine,i try too in c:\boost and gave same errors,so i think this is not the problem...

the changes for vc8 in wiki:
"If running Visual Studio 2005, use the same command above except with -sTOOLS=vc-8_0 instead"
i already did (i follow wiki step by step by step...by step XDDD)

enviroment variables looks fine too,everything in ogre compiles and works (i refer the ogre 1.2.3,not the source CVS 1.2.1 in c:\GOOF).

so im a little lost...