Why does the Torus from Tut5 look so different after import?

katzenjoghurt

07-09-2007 21:24:02

Upper pic: Ogre Engine
Lower pic: 3D Max (obviously ;) )



I'm playing around with the lights all the time... look in the ogre.log for errors. What did I do wrong? Where is the shinyness gone?

Here the shader program and the material file oFusion generated:


//////////////////////////////////////
// tutorial_BumpMap_ps.source//
//////////////////////////////////////

//float4 specular: register(c2);
//float Ka: register(c3);
//float Kd: register(c4);
//float Ks: register(c5);
//float specular_power: register(c6);
//float bumpiness: register(c7);
//float4 ambient: register(c0);
//float4 diffuse: register(c1);
//sampler base_map: register(s0);
//sampler bump_map: register(s1);
struct PS_INPUT_STRUCT
{
float2 bump_map: TEXCOORD0;
float3 light_vector: TEXCOORD1;
float3 half_angle: TEXCOORD2;
};

struct PS_OUTPUT_STRUCT
{
float4 color0: COLOR0;
};

//**---------------------------------------------------------
//** Function: main
//** Description: Declare the main entry point for the shader
//** Input: PS_INPUT_STRUCT, derived from the output of
//** the associated vertex shader
//** Returns: PS_OUTPUT_STRUCT
//**---------------------------------------------------------
PS_OUTPUT_STRUCT main( PS_INPUT_STRUCT psInStruct,
uniform float4 specular,
uniform float Ka,
uniform float Kd,
uniform float Ks,
uniform float specular_power,
uniform float bumpiness,
uniform float4 ambient,
uniform float4 diffuse,
uniform sampler base_map,
uniform sampler bump_map)
{
PS_OUTPUT_STRUCT psOutStruct; //** Declare the output struct

//**------------------------------------------------------
//** Retreive the base color and bump components from the
//** respective textures, based on the passed bump coords.
//**------------------------------------------------------
float3 base = tex2D( base_map, psInStruct.bump_map );
float3 bump = tex2D( bump_map, psInStruct.bump_map );

//**----------------------------------------------------
//** Normalize the passed vectors from the vertex shader
//**----------------------------------------------------
float3 normalized_light_vector = normalize( psInStruct.light_vector );
float3 normalized_half_angle = normalize( psInStruct.half_angle );

//**--------------------------------------------------------
//** "Smooth out" the bump based on the bumpiness parameter.
//** This is simply a linear interpolation between a "flat"
//** normal and a "bumped" normal. Note that this "flat"
//** normal is based on the texture space coordinate basis.
//**--------------------------------------------------------
float3 smooth = { 0.5f, 0.5f, 1.0f };
bump = lerp( smooth, bump, bumpiness );
bump = normalize( ( bump * 2.0f ) - 1.0f );

//**---------------------------------------------------------
//** These dot products are used for the lighting model
//** equations. The surface normal dotted with the light
//** vector is denoted by n_dot_l. The normal vector
//** dotted with the half angle vector is denoted by n_dot_h.
//**---------------------------------------------------------
float4 n_dot_l = dot( bump, normalized_light_vector );
float4 n_dot_h = dot( bump, normalized_half_angle );

//**--------------------------------------
//** Calculate the resulting pixel color,
//** based on our lighting model.
//** Ambient + Diffuse + Specular
//**--------------------------------------
psOutStruct.color0.rgb =
( base * ambient * Ka ) +
( base * diffuse * Kd * max( 0.0f, n_dot_l ) ) +
( specular * Ks * pow( max( 0.0f, n_dot_h ), specular_power ) );
psOutStruct.color0.a = 1.0f; //** Set the alpha component manually

return psOutStruct; //** Return the resulting output struct
}





///////////////////////////////////////
// tutorial_BumpMap_vs.source //
///////////////////////////////////////

//float4x4 view_proj_matrix: register(c0);
//float4 light_position: register(c8);
//float4 eye_position: register(c9);
//float4x4 inv_view_matrix;
struct VS_INPUT_STRUCT
{
float4 position: POSITION;
float3 normal: NORMAL;
float2 texcoord0: TEXCOORD0;
float3 tangent: TEXCOORD1;
};

struct VS_OUTPUT_STRUCT
{
float4 position: POSITION;
float2 bump_map: TEXCOORD0;
float3 light_vector: TEXCOORD1;
float3 half_angle: TEXCOORD2;
};

//**---------------------------------------------------------
//** Function: main
//** Description: Declare the main entry point for the shader
//** Input: VS_INPUT_STRUCT, derived from the stream
//** mapping parameters defined in the workspace
//** Returns: VS_OUTPUT_STRUCT
//**---------------------------------------------------------
VS_OUTPUT_STRUCT main( VS_INPUT_STRUCT vsInStruct,
uniform float4x4 view_proj_matrix,
uniform float4 light_position,
uniform float4 eye_position,
uniform float4x4 inv_view_matrix )
{
VS_OUTPUT_STRUCT vsOutStruct; //** Declare the output struct

//**-----------------------------------------------------------
//** Calculate the pixel position using the perspective matrix.
//**-----------------------------------------------------------
vsOutStruct.position = mul( view_proj_matrix, vsInStruct.position );

//**----------------------------------------------
//** Pass the bump and base texture coords through
//**----------------------------------------------
vsOutStruct.bump_map = vsInStruct.texcoord0;

//**----------------------------------------------
//** Calculate the Binormal vector
//**----------------------------------------------
float3 binormal = cross(vsInStruct.tangent, vsInStruct.normal);

//**--------------------------------------------
//** Calculate the light vector in object space,
//** and then transform it into texture space.
//**--------------------------------------------
float3 temp_light_position = mul( inv_view_matrix, light_position );
float3 temp_light_vector = temp_light_position - vsInStruct.position;
vsOutStruct.light_vector.x = dot( temp_light_vector, vsInStruct.tangent );
vsOutStruct.light_vector.y = dot( temp_light_vector, binormal );
vsOutStruct.light_vector.z = dot( temp_light_vector, vsInStruct.normal );

//**-------------------------------------------
//** Calculate the view vector in object space,
//** and then transform it into texture space.
//**-------------------------------------------
float3 temp_eye_position = mul( inv_view_matrix, eye_position );
float3 temp_view_vector = temp_eye_position - vsInStruct.position;
float3 temp_view_vector2;
temp_view_vector2.x = dot( temp_view_vector, vsInStruct.tangent );
temp_view_vector2.y = dot( temp_view_vector, binormal );
temp_view_vector2.z = dot( temp_view_vector, vsInStruct.normal );

//**-------------------------
//** Calculate the half angle
//**-------------------------
vsOutStruct.half_angle = vsOutStruct.light_vector + temp_view_vector2;

return vsOutStruct; //** Return the resulting output struct
}




... and the material file ...



material Krapfen6
{
technique
{
pass
{
ambient 0.588235 0.588235 0.588235 1
diffuse 0.588235 0.588235 0.588235 1
specular 0 0 0 1 10

vertex_program_ref tutorial_BumpMap_vs
{
param_named_auto view_proj_matrix worldviewproj_matrix
param_named_auto light_position light_position_object_space 0
param_named_auto eye_position camera_position_object_space
param_named_auto inv_view_matrix inverse_worldview_matrix
}

fragment_program_ref tutorial_BumpMap_ps
{
param_named_auto specular light_specular_colour 0
param_named Ka float 0.3
param_named Kd float 1
param_named Ks float 1
param_named specular_power float 64
param_named bumpiness float 1
param_named_auto ambient ambient_light_colour
param_named_auto diffuse light_diffuse_colour 0
}

texture_unit
{
texture_alias Map #1
texture Fieldstone.tga
}

texture_unit
{
texture_alias Map #2
texture FieldstoneBumpDOT3.tga
}
}

}

}

Lioric

08-09-2007 19:02:53

Are you using the same render system in your application?

katzenjoghurt

08-09-2007 19:34:49

Hi Lioric! :D
Ahh... a helping hand!

Hm... I use Direct3D. In Ogre and in 3D max.
Just switched to OpenGL in my Ogre App to look if anything changes and it looks different again there...



But ... I forgot to generate the tangent vectors in the right one.
Else than that they are the same.
Strangely Direct3D didn't care about.
They both look the same there...

katzenjoghurt

12-09-2007 21:01:23

Still noone with an idea? :cry:

Does the exported torus from the Tutorial package look the same in your Ogre application as it did in 3d max's oFusion Viewport?

Lioric

13-09-2007 16:19:10

From your descritpion is the specular effect that is the issue

Is the normal mapping effect working in your application?

Could you post the ogre.log file?

Are you using different lights?

katzenjoghurt

13-09-2007 16:51:46

Hi Lioric! :)

From your descritpion is the specular effect that is the issue

Yeah... specular is missing completely obviously.

the normal mapping effect working in your application?

It worked in Tut1 (though the effect wasn't that great ... saw it only when letting the light fly through the ring that there was some faky height in the texture) and with this torus everything seems to be okay as well.

Here a little (big) gif ani:



if gif won't play.... here an xvid avi: http://wwwstud.ira.uka.de/~s_walser/2kringel_xvid.avi


Could you post the ogre.log file?

sure. ... with kringel7 and kringel8.mesh being the 2 torus objects.
(Upgraded them also with the command line Upgrade Tool ... didn't help)

17:30:16: Creating resource group General
17:30:16: Creating resource group Internal
17:30:16: Creating resource group Autodetect
17:30:16: SceneManagerFactory for type 'DefaultSceneManager' registered.
17:30:16: Registering ResourceManager for type Material
17:30:16: Registering ResourceManager for type Mesh
17:30:16: Registering ResourceManager for type Skeleton
17:30:16: MovableObjectFactory for type 'ParticleSystem' registered.
17:30:16: OverlayElementFactory for type Panel registered.
17:30:16: OverlayElementFactory for type BorderPanel registered.
17:30:16: OverlayElementFactory for type TextArea registered.
17:30:16: Registering ResourceManager for type Font
17:30:16: ArchiveFactory for archive type FileSystem registered.
17:30:16: ArchiveFactory for archive type Zip registered.
17:30:16: FreeImage version: 3.9.2
17:30:16: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
17:30:16: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
17:30:16: DDS codec registering
17:30:16: Registering ResourceManager for type HighLevelGpuProgram
17:30:16: Registering ResourceManager for type Compositor
17:30:16: MovableObjectFactory for type 'Entity' registered.
17:30:16: MovableObjectFactory for type 'Light' registered.
17:30:16: MovableObjectFactory for type 'BillboardSet' registered.
17:30:16: MovableObjectFactory for type 'ManualObject' registered.
17:30:16: MovableObjectFactory for type 'BillboardChain' registered.
17:30:16: MovableObjectFactory for type 'RibbonTrail' registered.
17:30:16: Loading library .\RenderSystem_Direct3D9_d
17:30:16: Installing plugin: D3D9 RenderSystem
17:30:16: D3D9 : Direct3D9 Rendering Subsystem created.
17:30:16: D3D9: Driver Detection Starts
17:30:16: D3D9: Driver Detection Ends
17:30:16: Plugin successfully installed
17:30:16: Loading library .\RenderSystem_GL_d
17:30:16: Installing plugin: GL RenderSystem
17:30:16: OpenGL Rendering Subsystem created.
17:30:16: Plugin successfully installed
17:30:16: Loading library .\Plugin_ParticleFX_d
17:30:16: Installing plugin: ParticleFX
17:30:16: Particle Emitter Type 'Point' registered
17:30:16: Particle Emitter Type 'Box' registered
17:30:16: Particle Emitter Type 'Ellipsoid' registered
17:30:16: Particle Emitter Type 'Cylinder' registered
17:30:16: Particle Emitter Type 'Ring' registered
17:30:16: Particle Emitter Type 'HollowEllipsoid' registered
17:30:16: Particle Affector Type 'LinearForce' registered
17:30:16: Particle Affector Type 'ColourFader' registered
17:30:16: Particle Affector Type 'ColourFader2' registered
17:30:16: Particle Affector Type 'ColourImage' registered
17:30:16: Particle Affector Type 'ColourInterpolator' registered
17:30:16: Particle Affector Type 'Scaler' registered
17:30:16: Particle Affector Type 'Rotator' registered
17:30:16: Particle Affector Type 'DirectionRandomiser' registered
17:30:16: Particle Affector Type 'DeflectorPlane' registered
17:30:16: Plugin successfully installed
17:30:16: Loading library .\Plugin_BSPSceneManager_d
17:30:16: Installing plugin: BSP Scene Manager
17:30:16: Plugin successfully installed
17:30:16: Loading library .\Plugin_OctreeSceneManager_d
17:30:16: Installing plugin: Octree & Terrain Scene Manager
17:30:16: Plugin successfully installed
17:30:16: Loading library .\Plugin_CgProgramManager_d
17:30:16: Installing plugin: Cg Program Manager
17:30:16: Plugin successfully installed
17:30:16: *-*-* OGRE Initialising
17:30:16: *-*-* Version 1.4.4 (Eihort)
17:30:16: CPU Identifier & Features
17:30:16: -------------------------
17:30:16: * CPU ID: AuthenticAMD: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
17:30:16: * SSE: yes
17:30:16: * SSE2: yes
17:30:16: * SSE3: yes
17:30:16: * MMX: yes
17:30:16: * MMXEXT: yes
17:30:16: * 3DNOW: yes
17:30:16: * 3DNOWEXT: yes
17:30:16: * CMOV: yes
17:30:16: * TSC: yes
17:30:16: * FPU: yes
17:30:16: * PRO: yes
17:30:16: * HT: no
17:30:16: -------------------------
17:30:16: D3D9 : Subsystem Initialising
17:30:16: ***************************************
17:30:16: *** D3D9 : Subsystem Initialised OK ***
17:30:16: ***************************************
17:30:16: Added resource location 'resource' of type 'FileSystem' to resource group 'General'
17:30:16: Creating resource group GUI
17:30:16: Added resource location 'resource/gui.zip' of type 'Zip' to resource group 'GUI'
17:30:16: Added resource location 'c:\windows\fonts' of type 'FileSystem' to resource group 'GUI'
17:30:16: D3D9RenderSystem::createRenderWindow "Aquaricon 2007 v0.01", 1024x768 windowed miscParams: FSAA=4 # None, 2, 4, 6, 8. Crash bei 16 (???) border=resize # Fensterrandtyp colourDepth=16 # 16, 32. Funktioniert nur, wenn fullscreen = true depthBuffer=true # Tiefenpuffer benutzen? (Crash bei false) displayFrequency=0 # Bildwiederholfrequenz im fullscreen, 0 für Standard Desktop vsync Rate externalGLControl=false # Let the external window control OpenGL externalWindowHandle=0 # externer Windows Handle (Win32: HWND Integer), falls Ogre Kontext in anderes Fenster eingebunden werden soll outerDimensions=false # Whether the width/height is expressed as the size of the outer window, rather than the content area parentWindowHandle=false # Parent window handle, for embedding the OGRE context useNVPerfHUD=false # Nvidia Performance Viewer einschalten? vsync=false
17:30:16: D3D9 : Created D3D9 Rendering Window 'Aquaricon 2007 v0.01' : 1024x768, 16bpp
17:30:16: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
17:30:16: Registering ResourceManager for type Texture
17:30:16: Registering ResourceManager for type GpuProgram
17:30:16: Multiple render targets with independent bit depths supported
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT16_R
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT32_R
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT16_GR
17:30:16: D3D9: Vertex texture format supported - PF_FLOAT32_GR
17:30:16: RenderSystem capabilities
17:30:16: -------------------------
17:30:16: * Hardware generation of mipmaps: yes
17:30:16: * Texture blending: yes
17:30:16: * Anisotropic texture filtering: yes
17:30:16: * Dot product texture operation: yes
17:30:16: * Cube mapping: yes
17:30:16: * Hardware stencil buffer: no
17:30:16: * Hardware vertex / index buffers: yes
17:30:16: * Vertex programs: yes
17:30:16: - Max vertex program version: vs_3_0
17:30:16: * Fragment programs: yes
17:30:16: - Max fragment program version: ps_3_0
17:30:16: * Texture Compression: yes
17:30:16: - DXT: yes
17:30:16: - VTC: no
17:30:16: * Scissor Rectangle: yes
17:30:16: * Hardware Occlusion Query: yes
17:30:16: * User clip planes: yes
17:30:16: * VET_UBYTE4 vertex element type: yes
17:30:16: * Infinite far plane projection: yes
17:30:16: * Hardware render-to-texture: yes
17:30:16: * Floating point textures: yes
17:30:16: * Non-power-of-two textures: yes
17:30:16: * Volume textures: yes
17:30:16: * Multiple Render Targets: 4
17:30:16: * Point Sprites: yes
17:30:16: * Extended point parameters: yes
17:30:16: * Max Point Size: 8192
17:30:16: * Vertex texture fetch: yes
17:30:16: - Max vertex textures: 4
17:30:16: - Vertex textures shared: no
17:30:16: ResourceBackgroundQueue - threading disabled
17:30:16: Particle Renderer Type 'billboard' registered
17:30:16: SceneManagerFactory for type 'OctreeSceneManager' registered.
17:30:16: SceneManagerFactory for type 'TerrainSceneManager' registered.
17:30:16: SceneManagerFactory for type 'BspSceneManager' registered.
17:30:16: Registering ResourceManager for type BspLevel
17:30:16: Creating viewport on target 'Aquaricon 2007 v0.01', rendering from camera 'camera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
17:30:16: Creating resource group Bootstrap
17:30:16: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
17:30:16: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location './Aquamedia\meshes' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location './Aquamedia\scripts' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location './Aquamedia\textures' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location './Aquamedia\shaders' of type 'FileSystem' to resource group 'General'
17:30:16: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
17:30:16: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
17:30:16: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
17:30:16: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
17:30:16: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
17:30:16: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
17:30:16: Parsing scripts for resource group Autodetect
17:30:16: Finished parsing scripts for resource group Autodetect
17:30:16: Parsing scripts for resource group Bootstrap
17:30:16: Parsing script OgreCore.material
17:30:16: Parsing script OgreProfiler.material
17:30:16: Parsing script Ogre.fontdef
17:30:16: Parsing script OgreDebugPanel.overlay
17:30:16: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
17:30:16: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
17:30:16: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
17:30:16: Font BlueHighwayusing texture size 512x512
17:30:16: Info: Freetype returned null for character 127 in font BlueHighway
17:30:16: Info: Freetype returned null for character 128 in font BlueHighway
17:30:16: Info: Freetype returned null for character 129 in font BlueHighway
17:30:16: Info: Freetype returned null for character 130 in font BlueHighway
17:30:16: Info: Freetype returned null for character 131 in font BlueHighway
17:30:16: Info: Freetype returned null for character 132 in font BlueHighway
17:30:16: Info: Freetype returned null for character 133 in font BlueHighway
17:30:16: Info: Freetype returned null for character 134 in font BlueHighway
17:30:16: Info: Freetype returned null for character 135 in font BlueHighway
17:30:16: Info: Freetype returned null for character 136 in font BlueHighway
17:30:16: Info: Freetype returned null for character 137 in font BlueHighway
17:30:16: Info: Freetype returned null for character 138 in font BlueHighway
17:30:16: Info: Freetype returned null for character 139 in font BlueHighway
17:30:16: Info: Freetype returned null for character 140 in font BlueHighway
17:30:16: Info: Freetype returned null for character 141 in font BlueHighway
17:30:16: Info: Freetype returned null for character 142 in font BlueHighway
17:30:16: Info: Freetype returned null for character 143 in font BlueHighway
17:30:16: Info: Freetype returned null for character 144 in font BlueHighway
17:30:16: Info: Freetype returned null for character 145 in font BlueHighway
17:30:16: Info: Freetype returned null for character 146 in font BlueHighway
17:30:16: Info: Freetype returned null for character 147 in font BlueHighway
17:30:16: Info: Freetype returned null for character 148 in font BlueHighway
17:30:16: Info: Freetype returned null for character 149 in font BlueHighway
17:30:16: Info: Freetype returned null for character 150 in font BlueHighway
17:30:16: Info: Freetype returned null for character 151 in font BlueHighway
17:30:16: Info: Freetype returned null for character 152 in font BlueHighway
17:30:16: Info: Freetype returned null for character 153 in font BlueHighway
17:30:16: Info: Freetype returned null for character 154 in font BlueHighway
17:30:16: Info: Freetype returned null for character 155 in font BlueHighway
17:30:16: Info: Freetype returned null for character 156 in font BlueHighway
17:30:16: Info: Freetype returned null for character 157 in font BlueHighway
17:30:16: Info: Freetype returned null for character 158 in font BlueHighway
17:30:16: Info: Freetype returned null for character 159 in font BlueHighway
17:30:16: Info: Freetype returned null for character 160 in font BlueHighway
17:30:16: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
17:30:17: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
17:30:17: Parsing script OgreLoadingPanel.overlay
17:30:17: Finished parsing scripts for resource group Bootstrap
17:30:17: Parsing scripts for resource group GUI
17:30:17: Finished parsing scripts for resource group GUI
17:30:17: Parsing scripts for resource group General
17:30:17: Parsing script Examples.program
17:30:17: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsCg: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsCg: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareMorphAnimation: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: High-level program Ogre/HardwareMorphAnimation encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareMorphAnimation: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwarePoseAnimation: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: High-level program Ogre/HardwarePoseAnimation encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwarePoseAnimation: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: Parsing script StdQuad_vp.program
17:30:17: Parsing script deferred.glsl.program
17:30:17: Parsing script deferred.hlsl.program
17:30:17: Parsing script deferred_post_debug.glsl.program
17:30:17: Parsing script deferred_post_debug.hlsl.program
17:30:17: Parsing script deferred_post_minilight.glsl.program
17:30:17: Parsing script deferred_post_minilight.hlsl.program
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 883)
17:30:17: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
17:30:17: Parsing script deferred_post_multipass.glsl.program
17:30:17: Parsing script deferred_post_multipass.hlsl.program
17:30:17: Parsing script deferred_post_onepass.glsl.program
17:30:17: Parsing script deferred_post_onepass.hlsl.program
17:30:17: Parsing script Corona_ps.program
17:30:17: Parsing script Corona_vs.program
17:30:17: Parsing script Ocean_Sky_ps.program
17:30:17: Parsing script Ocean_Sky_vs.program
17:30:17: Parsing script Ocean_Water_ps.program
17:30:17: Parsing script Ocean_Water_vs.program
17:30:17: Parsing script SpecularBump.program
17:30:17: Parsing script tutorial_BumpMap.program
17:30:17: Parsing script BlackAndWhite.material
17:30:17: Parsing script Bloom.material
17:30:17: Parsing script DepthShadowmap.material
17:30:17: Parsing script DOF.material
17:30:17: Parsing script Embossed.material
17:30:17: Parsing script Example-DynTex.material
17:30:17: Parsing script Example-Water.material
17:30:17: Parsing script Example.material
17:30:17: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsShadowCasterCg: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsShadowCasterCg: CG ERROR : The compile returned an error.
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp (line 854)
17:30:17: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
17:30:17: Parsing script Examples-Advanced.material
17:30:18: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapVP: CG ERROR : The compile returned an error.
(52) : warning C7011: implicit cast from "float4" to "float3"
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:18: High-level program Examples/BumpMapVP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapVP: CG ERROR : The compile returned an error.
(52) : warning C7011: implicit cast from "float4" to "float3"
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:18: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapVPShadowRcv: CG ERROR : The compile returned an error.
(52) : warning C7011: implicit cast from "float4" to "float3"
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:18: High-level program Examples/BumpMapVPShadowRcv encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapVPShadowRcv: CG ERROR : The compile returned an error.
(52) : warning C7011: implicit cast from "float4" to "float3"
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:18: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFPShadowRcv: CG ERROR : The compile returned an error.
(52) : warning C7011: implicit cast from "float4" to "float3"
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:18: High-level program Examples/BumpMapFPShadowRcv encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFPShadowRcv: CG ERROR : The compile returned an error.
(52) : warning C7011: implicit cast from "float4" to "float3"
(0) : error C3001: no program defined
in CgProgram::loadFromSource at e:\projects\ogrecvs\branches\eihort_vc8_clean\ogrenew\plugins\cgprogrammanager\src\ogrecgprogrammanagerdll.cpp (line 66)
17:30:18: Parsing script facial.material
17:30:18: Parsing script Glass.material
17:30:18: Parsing script hdr.material
17:30:18: Parsing script HeatVision.material
17:30:18: Parsing script Hurt.material
17:30:18: Parsing script instancing.material
17:30:19: Parsing script Invert.material
17:30:19: Parsing script Laplace.material
17:30:19: Parsing script MotionBlur.material
17:30:19: Parsing script Ocean.material
17:30:19: Parsing script OffsetMapping.material
17:30:19: Parsing script Ogre.material
17:30:19: Parsing script OldMovie.material
17:30:19: Parsing script OldTV.material
17:30:19: Parsing script Posterize.material
17:30:19: Parsing script RZR-002.material
17:30:19: Parsing script SharpenEdges.material
17:30:19: Parsing script smoke.material
17:30:19: Parsing script Tiling.material
17:30:19: Parsing script VarianceShadowmap.material
17:30:19: Parsing script deferred.material
17:30:19: Parsing script deferreddemo.material
17:30:19: Parsing script deferred_post_debug.material
17:30:19: Parsing script deferred_post_minilight.material
17:30:19: Parsing script deferred_post_multipass.material
17:30:19: Parsing script deferred_post_onepass.material
17:30:19: Parsing script krapfen8.material
17:30:19: Parsing script Kringel6.material
17:30:19: Parsing script Kringel7.material
17:30:19: Parsing script FishLady.material
17:30:19: Parsing script Kringel2.material
17:30:19: Parsing script Kringel3.material
17:30:19: Parsing script Kringel4.material
17:30:19: Parsing script Kringel5.material
17:30:19: Parsing script Nissan.material
17:30:19: Parsing script RomanBath.material
17:30:19: Parsing script Examples.compositor
17:30:20: Parsing script sample.fontdef
17:30:20: Parsing script emitted_emitter.particle
17:30:20: Parsing script Example-Water.particle
17:30:20: Parsing script Example.particle
17:30:20: Parsing script smoke.particle
17:30:20: Parsing script Compositor.overlay
17:30:20: Parsing script DP3.overlay
17:30:20: Parsing script Example-CubeMapping.overlay
17:30:20: Parsing script Example-DynTex.overlay
17:30:20: Parsing script Example-Water.overlay
17:30:20: Parsing script Shadows.overlay
17:30:20: Finished parsing scripts for resource group General
17:30:20: Parsing scripts for resource group Internal
17:30:20: Finished parsing scripts for resource group Internal
17:30:20: Mesh: Loading Kringel7.mesh.
17:30:20: WARNING: Kringel7.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
17:30:20: Texture: Fieldstone.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Texture: FieldstoneBumpDOT3.tga: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Mesh: Loading Kringel8.mesh.
17:30:20: WARNING: Kringel8.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
17:30:20: Mesh: Loading FishLady.mesh.
17:30:20: WARNING: FishLady.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
17:30:20: Texture: britto-romero-dottie-fish-2806655.jpg: Loading 1 faces(PF_R8G8B8,350x350x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,350x350x1.
17:30:20: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
17:30:20: Texture: stormy_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Texture: stormy_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Texture: stormy_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Texture: stormy_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Texture: stormy_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:20: Texture: stormy_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
17:30:58: Unregistering ResourceManager for type BspLevel
17:30:58: *-*-* OGRE Shutdown
17:30:58: Unregistering ResourceManager for type Compositor
17:30:58: Unregistering ResourceManager for type Font
17:30:58: Unregistering ResourceManager for type Skeleton
17:30:58: Unregistering ResourceManager for type Mesh
17:30:58: Unregistering ResourceManager for type HighLevelGpuProgram
17:30:58: Uninstalling plugin: Cg Program Manager
17:30:58: Plugin successfully uninstalled
17:30:58: Unloading library .\Plugin_CgProgramManager_d
17:30:58: Uninstalling plugin: Octree & Terrain Scene Manager
17:30:58: Plugin successfully uninstalled
17:30:58: Unloading library .\Plugin_OctreeSceneManager_d
17:30:58: Uninstalling plugin: BSP Scene Manager
17:30:58: Plugin successfully uninstalled
17:30:58: Unloading library .\Plugin_BSPSceneManager_d
17:30:58: Uninstalling plugin: ParticleFX
17:30:58: Plugin successfully uninstalled
17:30:58: Unloading library .\Plugin_ParticleFX_d
17:30:58: Uninstalling plugin: GL RenderSystem
17:30:58: *** Stopping Win32GL Subsystem ***
17:30:58: Plugin successfully uninstalled
17:30:58: Unloading library .\RenderSystem_GL_d
17:30:58: Uninstalling plugin: D3D9 RenderSystem
17:30:58: Render Target 'Aquaricon 2007 v0.01' Average FPS: 110.483 Best FPS: 204.795 Worst FPS: 0.235239
17:30:58: D3D9 : Shutting down cleanly.
17:30:58: Unregistering ResourceManager for type Texture
17:30:58: Unregistering ResourceManager for type GpuProgram
17:30:58: D3D9 : Direct3D9 Rendering Subsystem destroyed.
17:30:58: Plugin successfully uninstalled
17:30:58: Unloading library .\RenderSystem_Direct3D9_d
17:30:58: Unregistering ResourceManager for type Material


Are you using different lights?

added one light, added two light, disabled ambient light ... result was always the same. :(

katzenjoghurt

24-09-2007 14:50:46

Playing around with the oFusion Scene Loader right now...

...all of a sudden specular appeared ... haven't changed anything on the models or their textures since I last posted here.




This is ... weird. *scratches his head*

Lioric

24-09-2007 15:42:22

From your previous log file, as you were using D3D9, the shader was not being used by your application (if the shader was named "BumpMapVP"), with a "no defined" message

katzenjoghurt

25-09-2007 09:17:29

I didn't rename the shader files.
They are still "tutorial_BumpMap_vs.source", "tutorial_BumpMap_ps.source" and "tutorial_BumpMap.program"

The errors seem to come from other shaders in the Ogre media folder.

So it still stays a miracle for me, why they suddenly work. :lol:
Strange enough I loaded the torus in some of the sample ogre projects and always the spec was missing.... and suddenly now ... PAM! ... there they are.