Assertion failed

nath31337

12-12-2008 01:46:47

Hey,

I can copy my program on any computer at school and it runs perfectly, but when i run it at home or at somebody else home, it crashed at startup saying that



It seems that i might be missing some files that are present on school computers.

Heres the log

20:34:39: *** Initializing OIS ***
20:34:39: Caelum: Initialising Caelum system...
20:34:39: Caelum: Creating required internal resource group 'Caelum'
20:34:39: Creating resource group Caelum
20:34:39: Caelum: Creating caelum sub-components.
20:34:39: Texture: EarthClearSky2.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
20:34:39: Texture: AtmosphereDepth.png: Loading 1 faces(PF_R8G8B8,32x1x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x1x1.
20:34:39: Caelum: Creating CaelumSphericDome sphere mesh resource...
20:34:39: Caelum: generateSphericDome DONE
20:34:39: Texture: sun_disc.png: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
20:34:39: D3D9 : Loading 2D Texture, image name : 'moon_disc.dds' with 5 mip map levels
20:34:39: WARNING: material Caelum/FlatCloudLayer/Material/118529056 has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.

20:34:39: 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)
20:34:39: 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)
20:34:39: Caelum: DONE initializing
20:34:39: WARNING: material Caelum/PrecipitationMaterial has no supportable Techniques and will be blank. Explanation:
Pass 0: Fragment program Caelum/PrecipitationFP cannot be used - not supported.

20:34:39: WARNING: material Caelum/PrecipitationMaterial has no supportable Techniques and will be blank. Explanation:
Pass 0: Fragment program Caelum/PrecipitationFP cannot be used - not supported.

20:34:39: CompositorChain: Compositor Caelum/PrecipitationCompositor has no supported techniques.

nath31337

13-12-2008 17:05:00

anybody have an idea? please

Fish

13-12-2008 23:01:51

anybody have an idea? please

Here is a clue:

20:34:39: WARNING: material Caelum/FlatCloudLayer/Material/118529056 has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.

20:34:39: OGRE EXCEPTION(-1:UnsupportedException): Can't load flat cloud layer material: Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.

It appears that the video cards do not support the Vertex Programs used by Caelum. The video cards need to support PixelShader 2.0. Here is a nice reference to quickly see which cards support what technology: http://www.techpowerup.com/gpudb/

nath31337

14-12-2008 02:24:53

Thx for the reply fish, but i have a x800 pro, it seems that it should support it.

nath31337

14-12-2008 02:54:40

but ive seen in precipitation.material somthing like

fragment_program Caelum/PrecipitationFP cg
{
source Precipitation.cg
entry_point MainFP
profiles ps_3_0 fp40 arbfp1

default_params
{
}
}


which looks like pixel shader 3.0, so that would make sense.

But then, how could i make it run on ps2.0 so i can send it to other people?

nath31337

15-12-2008 15:35:45

when i run from openGL i can see the rain and the clouds, so i can run it witout ps2.0 ?

nath31337

18-12-2008 00:53:16

anybody have an idea? please

Here is a clue:

20:34:39: WARNING: material Caelum/FlatCloudLayer/Material/118529056 has no supportable Techniques and will be blank. Explanation:
Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.

20:34:39: OGRE EXCEPTION(-1:UnsupportedException): Can't load flat cloud layer material: Pass 0: Vertex program CaelumLayeredCloudsVP cannot be used - not supported.

It appears that the video cards do not support the Vertex Programs used by Caelum. The video cards need to support PixelShader 2.0. Here is a nice reference to quickly see which cards support what technology: http://www.techpowerup.com/gpudb/


i would like to know if there is a way to run caelum on PixelShader 2.0

Fish

20-12-2008 04:00:35

It seems to work fine on the X300 card in my laptop, which only supports PS2.0 and less. Have you tried compiling the Caelum sample code? Does that work as expected with the X800Pro? Also, make sure you have the latest video card drivers installed.

nath31337

26-12-2008 18:43:54

It seems to work fine on the X300 card in my laptop, which only supports PS2.0 and less. Have you tried compiling the Caelum sample code? Does that work as expected with the X800Pro? Also, make sure you have the latest video card drivers installed.

Caelum used to work on my x800pro but now since i updated and recompiled it gives me a strange error which there is no source at that specific location, i cant find where that directory come from.

Fish

26-12-2008 23:28:23

Hmmm...it smells of stale resources.

cdleonard

27-12-2008 20:53:47

On pixel shader 2.0: Large parts of Caelum will work; all you need to do is change the profile. Other shaders could be simplified and made to work with 2.0 shadres. I'm not exactly sure what parts do work correctly and haven't really looked into this. I don't have any low-level cards around but I guess I can try with Ogre 1.6 hardware profiles.

You can try to change the shader profiles but parts will probably break.

@nath31337: That Ogre exception you got seems to from the driver refusing one of the shaders in the demo. Did you change profiles to 2.0?

nath31337

27-12-2008 23:06:05

On pixel shader 2.0: Large parts of Caelum will work; all you need to do is change the profile. Other shaders could be simplified and made to work with 2.0 shadres. I'm not exactly sure what parts do work correctly and haven't really looked into this. I don't have any low-level cards around but I guess I can try with Ogre 1.6 hardware profiles.

You can try to change the shader profiles but parts will probably break.

@nath31337: That Ogre exception you got seems to from the driver refusing one of the shaders in the demo. Did you change profiles to 2.0?


well i guess to change profile to 2.0 we have to look in all the materials and change all the "profiles ps_3_0" to "profiles ps_2_0".

so i did that but it didnt change anything to my demo neither my game.

Ive tried to show my friends my project on their laptop and computers but i couldnt because of the error at the 1st post, it only worked on a macbook :(

your help is appreciated.

nath31337

16-01-2009 04:44:58

i still didnt find how to change the profile of caelum to pixel shader 2.o instead of 3.0. can anyone help me