i created a screenshot for you:

The shadow moves dynamically with the sun position. The odd thing is, that i can't setup depth- or vsm-shadowmapping with shader

Haha that was stupidcdleonard wrote: @lilljohan: I took another look at your log and it seems you load the Cg plugin AFTER parsing resource scripts. I guess that means cg programs declared in scripts won't work (all of them). Somehow I expected ogre to complain loudly about something like that. Can you please try loading all plugins at the start?
What do you mean by "Caelum's ambient light system"? You mean CaelumSystem::setManageAmbientLight? That's generally a good idea; ambient(1, 1, 1) at all times will probably look bad. Also; stars should not be affected by lighting in any way.Caphalor wrote:Hi, I use Ogre 1.6 RC1 and the latest Caelum from SVN. The Caelum Demo works fine, but I don't manage do integrate Caelum in my game properly.
I don't see a starfield or a moon, all in all in the night the Skydome ist just black (maybe an ambient light problem?). If I use the HDR compositor from the Ogre samples (which works fine with a static skybox), I get another error, but ironically I can "see" stars and moon here:
I use the same code to init Caelum like the demo, with infinite FarClipDistance and AmbientLight(1,1,1), I also tried without Ambient light....
EDIT: Ok I see stars now using Caelum's Ambient light system, but there's still the problem with HDR.
Code: Select all
10:23:28: OGRE EXCEPTION(-1:UnsupportedException): Can't load point starfield material: Pass 0: Vertex program Caelum/StarPointVP cannot be used - not supported.
in PointStarfield at .\src\PointStarfield.cpp (line 53)
10:23:28: Caelum: Failed to initialize starfield: OGRE EXCEPTION(-1:UnsupportedException): Can't load point starfield material: Pass 0: Vertex program Caelum/StarPointVP cannot be used - not supported.
in PointStarfield at .\src\PointStarfield.cpp (line 53)
10:23:28: WARNING: material Caelum/FlatCloudLayer/Material/149521984 has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.
10:23:28: OGRE EXCEPTION(-1:UnsupportedException): Can't load flat cloud layer material: Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.
in FlatCloudLayer at .\src\FlatCloudLayer.cpp (line 44)
10:23:28: Caelum: Failed to initialize clouds: OGRE EXCEPTION(-1:UnsupportedException): Can't load flat cloud layer material: Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.
in FlatCloudLayer at .\src\FlatCloudLayer.cpp (line 44)
Code: Select all
Error 8 fatal error LNK1169: one or more multiply defined symbols found d:\My Documents\Projects\Ogre3D\WorldEditor\WorldEditor\Bin\Debug\WorldEditor.exe 1
Error 5 error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z) already defined in msvcprtd.lib(MSVCP80D.dll) qtmaind.lib
Error 7 error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z) already defined in msvcprtd.lib(MSVCP80D.dll) qtmaind.lib
Error 6 error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) qtmaind.lib
The compiler says that there are two locations where std::string is defined. "... already defined in msvcprtd.lib(MSVCP80D.dll)". This problem shouldn´t be Caelum related.Penut wrote:anybody has any idea why they are occuring? The problem can't be just qtmaind.lib...I've been able to run the program up until I tried adding Caelum to it
Well all the files that I am using have #ifdefs check and I have tried including Ogre, QT and Caelum in all the possible orders and the error is still there. Any suggestions as to in what order I should include them?xadhoom wrote:The compiler says that there are two locations where std::string is defined. "... already defined in msvcprtd.lib(MSVCP80D.dll)". This problem shouldn´t be Caelum related.Penut wrote:anybody has any idea why they are occuring? The problem can't be just qtmaind.lib...I've been able to run the program up until I tried adding Caelum to it
It means that the compiler does not know which of the both string implementation should be used. Maybe he complains because Ogre includes strings, too.
Normally this is solved with "#ifdefs" in the header files and right ordered "#include"´s in your project.
yes thanks i did that and i no longer get the error but i get one sayingNodrev wrote: Just add caelum's include directory to your include path. I assume you are using msvs, so tools/options/Project and solution/vc++ directories and add the path there.
well go ahead and make itcdleonard wrote:Somebody should write a good tutorial for compiling and linking C++ dlls.
Any way of doing this without PSSM? (i have my reasons..)Caphalor wrote:The new PSSM camera setup supported by Ogre 1.6 works fine with Caelum (which uses a directional light). Have a look at PlayPen, it's implemented there.