Best way to get PLSM2

troopa

10-03-2006 09:32:06

I have discovered ogre 2 weeks ago and i would like to use the PLSM2 plugin, I tried first the Ogre SDK then the source and now I tried to get the CVS HEAD sourcee.

For the last one, I don't know if it's going to work but for the two other way, it didn't works because of many problem with dll, dependencies, etc,...

So, my question is "What is the best way to get Ogre and the PLSM2 and making works together?". I am on XP SP2 with MS .NET 7.1 !!!

Thanks to answer me !

tuan kuranes

10-03-2006 09:44:46

Easiest is to use plsm2 SDK source + Ogre SDK vc7.1 + Ogre SDK dependency for vc7.1

Make sure you don't use anything coming from plsm2 binary Demo, as they're not intended to be use as "SDK"

Hardest is to use CVS HEAD + OGRE CVS HEAD.

troopa

10-03-2006 10:36:11

well i'm going to test the easiest way !!

when you say hardest, it's because the CVS HEAD is unstable, or because it's quite difficult to get the source from the cvs and to compile with MS .NET.


Thanks for you quick answers :)

troopa

10-03-2006 13:19:13

I build the PLSM2 and when I launch it, I got this error message :


.....
13:55:53: Win32Input8: Initializing mouse input in immediate mode.
13:55:53: Win32Input8: Mouse input in immediate mode initialized.
13:55:53: Texture: hf129_3.HSP.0.0.png: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
13:55:53: Texture: hf129_3.Base.0.0.png: Loading 1 faces(PF_B8G8R8,512x512x1) with 7 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
13:55:53: Texture: Detail3.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
13:55:53: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: DecompressVertexLighted/VP
Description: Cannot load GL vertex program DecompressVertexLighted/VP. Line 1458:
Error, line 38: invalid source register.
.
File: d:\ogredev\azathoth\rendersystems\gl\src\ogreglgpuprogram.cpp
Line: 126
Stack unwinding: <<beginning of stack>>
13:56:08: *-*-* OGRE Shutdown
13:56:08: Unregistering ResourceManager for type Font
13:56:08: Unregistering ResourceManager for type Skeleto
.....


It seems to come from the gpu program, don't say me the creepy video card i have doesn't support the shader , please say to me this is nothing i can't solve !! I remember now that i have the same problem with the binary demo.

It's quite weird because I manage to launch the other Ogre sample. however i have to set "VertexProgramMorph" option to no.

I work on windows XP, with VC++ .NET 7.1 and my video card is an "Intel 82945G Express Chipset Family".

thanks helping me

tuan kuranes

10-03-2006 13:32:12

Intel video card are not meant for shaders. They incorreclty reports shader support therefore break autodetection from application, like here. so yes, "creepy video card" there.

You'll have to manually disable VertexCompression in config file.

troopa

10-03-2006 13:44:30

i changed to "no" this two option :


VertexCompression=no
VertexProgramMorph=no


but nothing better. Anyway, the default value is "no" as it is said in the wiki.

I don't know what to do. Did I have to modifiy the source code to not load this shader program.

tuan kuranes

10-03-2006 13:48:04

you did this changes in HF map config file and still same results ?

Anyway, change the default map in paginglandscape and disable hf map, as it is intended as a shader demonstration.

Others maps shoud work.

troopa

10-03-2006 14:03:05

oh sorry i modify the wrong file (paginglandscape2.cfg), i modify the terrain config file and "IT'S WORK" ..... but As i was editing my message, a error message agress me :


....
14:39:34: Texture: Detail3.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:39:34: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
14:40:17: Removed resource location ../../Media/paginglandscape2/terrains/hf129_3
14:40:17: Added resource location '../../Media/paginglandscape2/terrains/alpes' of type 'FileSystem' to resource group 'PLSM2'
14:40:17: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: GLHardwareVertexBuffer::GLHardwareVertexBuffer
Description: Cannot create GL vertex buffer.
File: d:\ogredev\azathoth\rendersystems\gl\src\ogreglhardwarevertexbuffer.cpp
Line: 43
Stack unwinding: <<beginning of stack>>
14:40:34: *-*-* OGRE Shutdown
14:40:34: Unregistering ResourceManager for type Font
14:40:34: Unregistering ResourceManager for type Skeleton
14:40:34: Unregistering ResourceManag
....


again a video card problem i think. I think it's time to discuss with my boss about the graphics power of my Dell optiplex....

tuan kuranes

10-03-2006 14:11:40

Did you tried directx instead of opengl ?
(which those cards doesn't support)

troopa

10-03-2006 14:41:49

you right !! it's work better .

go to the next level !

thanks a lot!

OvermindDL1

10-03-2006 17:30:57

*Shudder* bad grammar... entire topic... eesh...

Either way:
Hardest is to use CVS HEAD + OGRE CVS HEAD.
Personally, I find this the easier method, but then again, I need latest features in dagon. :)

EDIT: Spelling...

HexiDave

10-03-2006 17:52:02

*Shudder* bad grammer... entire topic... eesh...

Either way:
Hardest is to use CVS HEAD + OGRE CVS HEAD.
Personally, I find this the easier method, but then again, I need latest features in dagon. :)


Bonus points for calling them on grammar and spelling the word wrong. :D

Anyways, I'm gonna go out on a limb and say that Dagon (release canditate soon) would be a good way to go anyways, it's just that CVS can act stupid on occasion. Look into getting WinCVS and things should go much easier. There is also TortoiseCVS, but that has somewhat annoying context menu options when you right click on any folder.

OvermindDL1

11-03-2006 02:14:10

Why thank you. :)
My grammar tends to be correct, but my spelling could be better, my fingers just start typing too fast and start doing their own things. Usually have Firefox's spell-check extension on but it is not updated for the latest version (at least on last check, I need to check again).

Personally I use TortoiseCVS. CVS still does not have a nice interface, prefer SVN. Why don't they use SVN, not like there are not any converters...

Falagard

11-03-2006 02:19:51

I'd just avoid commenting on grammar or spelling altogether unless it's unreadable.

troopa

13-03-2006 07:25:36


Personally, I find this the easier method, but then again, I need latest features in dagon. :)


not when you are behind a proxy!! winCVS don't want to work correctly. On my opinion I prefer SVN but this is a hard work to pass from CVS to SVN (and I believe sourceforge don't have SVN server yet).

Is there a place where i can see the new feature of the Dagon version.