ahmadi
24-03-2006 13:28:41
Hi
after executing OFusion loader demo that was created by OFusion Authors
i have empty scene.
in my first try i have error that Scene.OSM not find in resource
for solving error, i was exported a scene from Fusion tutorial.
now i have not any error
but i have an empty scene ( black)
i also add a light but i can not sense any change.
Please help me.
i dont khow what must i do?
Lioric
24-03-2006 15:17:21
Post the ogre.log file that is created in the demo application folder
Make sure all your meshes and materials are inside a folder in your resource path
ricardo_arango
09-06-2006 06:18:18
I compiled the demo, and loaded my own scene.. Ogre starts with no problem, but it doesn't display anything...
I put a dome on the scene and it displays it, but no meshes.
I'm using Dagon.
here's de log:
23:51:59: Creating resource group General
23:51:59: Creating resource group Internal
23:51:59: Creating resource group Autodetect
23:51:59: Registering ResourceManager for type Material
23:51:59: Registering ResourceManager for type Mesh
23:51:59: Registering ResourceManager for type Skeleton
23:51:59: MovableObjectFactory for type 'ParticleSystem' registered.
23:51:59: Loading library OgrePlatform_d.dll
23:51:59: OverlayElementFactory for type Panel registered.
23:51:59: OverlayElementFactory for type BorderPanel registered.
23:51:59: OverlayElementFactory for type TextArea registered.
23:51:59: Registering ResourceManager for type Font
23:51:59: ArchiveFactory for archive type FileSystem registered.
23:51:59: ArchiveFactory for archive type Zip registered.
23:51:59: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov 9 2005
23:51:59: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
23:51:59: Registering ResourceManager for type HighLevelGpuProgram
23:51:59: Registering ResourceManager for type Compositor
23:51:59: MovableObjectFactory for type 'Entity' registered.
23:51:59: MovableObjectFactory for type 'Light' registered.
23:51:59: MovableObjectFactory for type 'BillboardSet' registered.
23:51:59: MovableObjectFactory for type 'ManualObject' registered.
23:51:59: MovableObjectFactory for type 'BillboardChain' registered.
23:51:59: MovableObjectFactory for type 'RibbonTrail' registered.
23:51:59: Loading library .\RenderSystem_Direct3D9
23:51:59: D3D9 : Direct3D9 Rendering Subsystem created.
23:51:59: D3D9: Driver Detection Starts
23:51:59: D3D9: Driver Detection Ends
23:51:59: Loading library .\RenderSystem_GL
23:51:59: OpenGL Rendering Subsystem created.
23:52:00: Loading library .\Plugin_ParticleFX
23:52:00: Particle Emitter Type 'Point' registered
23:52:00: Particle Emitter Type 'Box' registered
23:52:00: Particle Emitter Type 'Ellipsoid' registered
23:52:00: Particle Emitter Type 'Cylinder' registered
23:52:00: Particle Emitter Type 'Ring' registered
23:52:00: Particle Emitter Type 'HollowEllipsoid' registered
23:52:00: Particle Affector Type 'LinearForce' registered
23:52:00: Particle Affector Type 'ColourFader' registered
23:52:00: Particle Affector Type 'ColourFader2' registered
23:52:00: Particle Affector Type 'ColourImage' registered
23:52:00: Particle Affector Type 'ColourInterpolator' registered
23:52:00: Particle Affector Type 'Scaler' registered
23:52:00: Particle Affector Type 'Rotator' registered
23:52:00: Particle Affector Type 'DirectionRandomiser' registered
23:52:00: Particle Affector Type 'DeflectorPlane' registered
23:52:00: Loading library .\Plugin_BSPSceneManager
23:52:00: Registering ResourceManager for type BspLevel
23:52:00: Loading library .\Plugin_OctreeSceneManager
23:52:00: Loading library .\Plugin_CgProgramManager
23:52:00: *-*-* OGRE Initialising
23:52:00: *-*-* Version 1.2.0 (Dagon)
23:52:00: Creating resource group Bootstrap
23:52:00: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
23:52:00: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
23:52:00: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
23:52:00: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
23:52:00: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
23:52:00: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
23:52:00: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
23:52:00: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
23:52:00: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
23:52:00: D3D9 : RenderSystem Option: Anti aliasing = None
23:52:00: D3D9 : RenderSystem Option: Floating-point mode = Fastest
23:52:00: D3D9 : RenderSystem Option: Full Screen = No
23:52:00: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce4 Ti 4600
23:52:00: D3D9 : RenderSystem Option: VSync = No
23:52:00: D3D9 : RenderSystem Option: Video Mode = 640 x 480 @ 32-bit colour
23:52:01: D3D9 : Subsystem Initialising
23:52:01: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 640x480 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
23:52:01: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 640x480, 32bpp
23:52:01: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
23:52:01: Registering ResourceManager for type Texture
23:52:01: Registering ResourceManager for type GpuProgram
23:52:01: RenderSystem capabilities
23:52:01: -------------------------
23:52:01: * Hardware generation of mipmaps: yes
23:52:01: * Texture blending: yes
23:52:01: * Anisotropic texture filtering: yes
23:52:01: * Dot product texture operation: yes
23:52:01: * Cube mapping: yes
23:52:01: * Hardware stencil buffer: yes
23:52:01: - Stencil depth: 8
23:52:01: - Two sided stencil support: no
23:52:01: - Wrap stencil values: yes
23:52:01: * Hardware vertex / index buffers: yes
23:52:01: * Vertex programs: yes
23:52:01: - Max vertex program version: vs_1_1
23:52:01: * Fragment programs: yes
23:52:01: - Max fragment program version: ps_1_3
23:52:01: * Texture Compression: yes
23:52:01: - DXT: yes
23:52:01: - VTC: no
23:52:01: * Scissor Rectangle: yes
23:52:01: * Hardware Occlusion Query: yes
23:52:01: * User clip planes: no
23:52:01: * VET_UBYTE4 vertex element type: no
23:52:01: * Infinite far plane projection: no
23:52:01: * Hardware render-to-texture: yes
23:52:01: * Floating point textures: no
23:52:01: * Non-power-of-two textures: yes
23:52:01: * Volume textures: yes
23:52:01: * Multiple Render Targets: 1
23:52:01: * Point Sprites: yes
23:52:01: * Extended point parameters: yes
23:52:01: * Max Point Size: 8192
23:52:01: ***************************************
23:52:01: *** D3D9 : Subsystem Initialised OK ***
23:52:01: ***************************************
23:52:01: ResourceBackgroundQueue - threading disabled
23:52:01: Particle Renderer Type 'billboard' registered
23:52:01: Parsing scripts for resource group Autodetect
23:52:01: Finished parsing scripts for resource group Autodetect
23:52:01: Parsing scripts for resource group Bootstrap
23:52:01: Parsing script OgreCore.material
23:52:01: Parsing script OgreProfiler.material
23:52:01: Parsing script Ogre.fontdef
23:52:01: Parsing script OgreDebugPanel.overlay
23:52:01: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
23:52:01: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
23:52:01: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
23:52:01: Font BlueHighwayusing texture size 512x512
23:52:01: Info: Freetype returned null for character 127 in font BlueHighway
23:52:01: Info: Freetype returned null for character 128 in font BlueHighway
23:52:01: Info: Freetype returned null for character 129 in font BlueHighway
23:52:01: Info: Freetype returned null for character 130 in font BlueHighway
23:52:01: Info: Freetype returned null for character 131 in font BlueHighway
23:52:01: Info: Freetype returned null for character 132 in font BlueHighway
23:52:01: Info: Freetype returned null for character 133 in font BlueHighway
23:52:01: Info: Freetype returned null for character 134 in font BlueHighway
23:52:01: Info: Freetype returned null for character 135 in font BlueHighway
23:52:01: Info: Freetype returned null for character 136 in font BlueHighway
23:52:01: Info: Freetype returned null for character 137 in font BlueHighway
23:52:01: Info: Freetype returned null for character 138 in font BlueHighway
23:52:01: Info: Freetype returned null for character 139 in font BlueHighway
23:52:01: Info: Freetype returned null for character 140 in font BlueHighway
23:52:01: Info: Freetype returned null for character 141 in font BlueHighway
23:52:01: Info: Freetype returned null for character 142 in font BlueHighway
23:52:01: Info: Freetype returned null for character 143 in font BlueHighway
23:52:01: Info: Freetype returned null for character 144 in font BlueHighway
23:52:01: Info: Freetype returned null for character 145 in font BlueHighway
23:52:01: Info: Freetype returned null for character 146 in font BlueHighway
23:52:01: Info: Freetype returned null for character 147 in font BlueHighway
23:52:01: Info: Freetype returned null for character 148 in font BlueHighway
23:52:01: Info: Freetype returned null for character 149 in font BlueHighway
23:52:01: Info: Freetype returned null for character 150 in font BlueHighway
23:52:01: Info: Freetype returned null for character 151 in font BlueHighway
23:52:01: Info: Freetype returned null for character 152 in font BlueHighway
23:52:01: Info: Freetype returned null for character 153 in font BlueHighway
23:52:01: Info: Freetype returned null for character 154 in font BlueHighway
23:52:01: Info: Freetype returned null for character 155 in font BlueHighway
23:52:01: Info: Freetype returned null for character 156 in font BlueHighway
23:52:01: Info: Freetype returned null for character 157 in font BlueHighway
23:52:01: Info: Freetype returned null for character 158 in font BlueHighway
23:52:01: Info: Freetype returned null for character 159 in font BlueHighway
23:52:01: Info: Freetype returned null for character 160 in font BlueHighway
23:52:01: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
23:52:01: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
23:52:01: Parsing script OgreLoadingPanel.overlay
23:52:01: Finished parsing scripts for resource group Bootstrap
23:52:01: Parsing scripts for resource group General
23:52:01: Parsing script Examples.program
23:52:01: Parsing script StdQuad_vp.program
23:52:01: Parsing script deferred.glsl.program
23:52:01: Parsing script deferred.hlsl.program
23:52:01: Parsing script deferred_post_debug.glsl.program
23:52:01: Parsing script deferred_post_debug.hlsl.program
23:52:01: Parsing script deferred_post_minilight.glsl.program
23:52:01: Parsing script deferred_post_minilight.hlsl.program
23:52:01: Parsing script deferred_post_multipass.glsl.program
23:52:01: Parsing script deferred_post_multipass.hlsl.program
23:52:01: Parsing script deferred_post_onepass.glsl.program
23:52:01: Parsing script deferred_post_onepass.hlsl.program
23:52:01: Parsing script BlackAndWhite.material
23:52:01: Parsing script Bloom.material
23:52:02: Parsing script DOF.material
23:52:02: Parsing script Embossed.material
23:52:02: Parsing script ensayo.material
23:52:02: Parsing script Example-DynTex.material
23:52:02: Parsing script Example-Water.material
23:52:02: Parsing script Example.material
23:52:02: Parsing script Examples-Advanced.material
23:52:02: Parsing script facial.material
23:52:02: Parsing script Glass.material
23:52:02: Parsing script hdr.material
23:52:02: Parsing script HeatVision.material
23:52:03: Parsing script Hurt.material
23:52:03: Parsing script Invert.material
23:52:03: Parsing script Laplace.material
23:52:03: Parsing script MotionBlur.material
23:52:03: Parsing script Ocean.material
23:52:03: Parsing script OffsetMapping.material
23:52:03: Parsing script Ogre.material
23:52:03: Parsing script OldMovie.material
23:52:03: Parsing script OldTV.material
23:52:03: Parsing script Posterize.material
23:52:03: Parsing script RZR-002.material
23:52:03: Parsing script SharpenEdges.material
23:52:03: Parsing script smoke.material
23:52:03: Parsing script Tiling.material
23:52:03: Parsing script deferred.material
23:52:03: Parsing script deferreddemo.material
23:52:03: Parsing script deferred_post_debug.material
23:52:03: Parsing script deferred_post_minilight.material
23:52:03: Parsing script deferred_post_multipass.material
23:52:03: Parsing script deferred_post_onepass.material
23:52:03: Parsing script fresnelenviron.material
23:52:03: Parsing script Examples.compositor
23:52:04: Parsing script sample.fontdef
23:52:04: Parsing script Example-Water.particle
23:52:04: Parsing script Example.particle
23:52:04: Parsing script smoke.particle
23:52:04: Parsing script Compositor.overlay
23:52:04: Parsing script DP3.overlay
23:52:04: Parsing script Example-CubeMapping.overlay
23:52:04: Parsing script Example-DynTex.overlay
23:52:04: Parsing script Example-Water.overlay
23:52:04: Parsing script Shadows.overlay
23:52:04: Finished parsing scripts for resource group General
23:52:04: Parsing scripts for resource group Internal
23:52:04: Finished parsing scripts for resource group Internal
23:52:04: ********************************
23:52:04: ** oScene Loader Lib **
23:52:04: ********************************
23:52:04: oSceneLoader: Loading 'ensayo.osm' file
23:52:04: oSceneLoader: Creating scene on 'Root' node
23:52:04: Texture: BumpyMetal.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
23:52:04: Mesh: Loading Box01.mesh.
23:52:04: Warning: VET_COLOUR element type is deprecated, you should use one of the more specific types to indicate the byte order. Use OgreMeshUpgrade on Box01.mesh as soon as possible.
23:52:04: Mesh: Loading Box02.mesh.
23:52:04: Warning: VET_COLOUR element type is deprecated, you should use one of the more specific types to indicate the byte order. Use OgreMeshUpgrade on Box02.mesh as soon as possible.
23:52:04: Mesh: Loading Box03.mesh.
23:52:04: Warning: VET_COLOUR element type is deprecated, you should use one of the more specific types to indicate the byte order. Use OgreMeshUpgrade on Box03.mesh as soon as possible.
23:52:04: ********************************
23:52:04: ** oSceneLoader: Scene loaded **
23:52:04: ********************************
23:52:04: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
23:52:04: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 640 H: 480
23:52:04: Win32Input8: DirectInput Activation Starts
23:52:04: Win32Input8: Establishing keyboard input.
23:52:04: Win32Input8: Keyboard input established.
23:52:04: Win32Input8: Initializing mouse input in immediate mode.
23:52:04: Win32Input8: Mouse input in immediate mode initialized.
23:52:04: Win32Input8: DirectInput OK.
23:52:04: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
23:52:45: Unregistering ResourceManager for type BspLevel
23:52:45: *-*-* OGRE Shutdown
23:52:45: Unregistering ResourceManager for type Compositor
23:52:45: Unregistering ResourceManager for type Font
23:52:45: Unregistering ResourceManager for type Skeleton
23:52:45: Unregistering ResourceManager for type Mesh
23:52:45: Unregistering ResourceManager for type HighLevelGpuProgram
23:52:45: Unloading library .\Plugin_CgProgramManager
23:52:45: Unloading library .\Plugin_OctreeSceneManager
23:52:45: Unloading library .\Plugin_BSPSceneManager
23:52:45: Unloading library .\Plugin_ParticleFX
23:52:45: *** Stopping Win32GL Subsystem ***
23:52:45: Unloading library .\RenderSystem_GL
23:52:45: Render Target 'OGRE Render Window' Average FPS: 90.3354 Best FPS: 93.0693 Worst FPS: 72.6368
23:52:45: D3D9 : Shutting down cleanly.
23:52:45: Unregistering ResourceManager for type Texture
23:52:45: Unregistering ResourceManager for type GpuProgram
23:52:45: D3D9 : Direct3D9 Rendering Subsystem destroyed.
23:52:45: Unloading library .\RenderSystem_Direct3D9
23:52:45: Unregistering ResourceManager for type Material
23:52:45: Unloading library OgrePlatform_d.dll
Lioric
09-06-2006 16:43:36
Do you have any lights? how is the material of your meshes?
ricardo_arango
09-06-2006 21:44:29
Here's a picture of my scene in max, using the Ogre viewport:
Here's is the demo:
I have one spotlight.
This my material file, ensayo.material:
material ensayo1
{
technique
{
pass
{
ambient 0.7 0.7 0.7 1
diffuse 0.7 0.7 0.7 1
specular 0.9 0.9 0.9 1 20
texture_unit
{
texture BumpyMetal.jpg
}
}
}
}
This is my scene, ensayo.osm
<oe_scene>
<sceneManager type="0" />
<bkgcolor r="0" g="0" b="0" />
<lightColor r="0.5" g="0.5" b="0.5" />
<shadowTechnique type="1" tex_size="512" tex_count="1">
<color r="0" g="0" b="0" />
</shadowTechnique>
<skyTechnique type="3" material="ensayo1" drawFirst="yes" tiling="8" scale="2000" dist="5000" bow="10" xSegments="16" ySegments="16" />
<entities>
<entity name="Box01" hidden="false" filename="Box01.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="-0.383141" y="0" z="3.06514" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box02" hidden="false" filename="Box02.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="43.295" y="11.2472" z="50.1916" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box03" hidden="false" filename="Box03.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="-27.2031" y="9.71462" z="-37.1647" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
</entities>
<cameras>
<camera name="Camera01" FOV="0.785398">
<position x="106.897" y="105.603" z="-99.2337" />
<rotation x="0.184227" y="0.81399" z="-0.418238" w="0.35855" />
<scale x="1" y="1" z="1" />
<target name="Camera01.Target">
<position x="-1.89141" y="0" z="0.293156" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</target>
</camera>
</cameras>
<lights>
<light name="Spot01" type="spot" on="true" CastShadows="yes" hotspot="43" falloff="45" intensity="1">
<position x="204.781" y="242.899" z="114.559" />
<rotation x="-0.330369" y="-0.449734" z="0.1836" w="-0.809251" />
<scale x="1" y="1" z="1" />
<color r="1" g="1" b="1" />
<specular r="1" g="1" b="1" />
<target name="Spot01.Target">
<position x="2.68199" y="0" z="-11.1111" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</target>
</light>
</lights>
</oe_scene>
ricardo_arango
09-06-2006 21:45:25
Here's a picture of my scene in max, using the Ogre viewport:
Here's is the demo:
I have one spotlight, using Stencil Modulative shadows.
This my material file, ensayo.material:
material ensayo1
{
technique
{
pass
{
ambient 0.7 0.7 0.7 1
diffuse 0.7 0.7 0.7 1
specular 0.9 0.9 0.9 1 20
texture_unit
{
texture BumpyMetal.jpg
}
}
}
}
This is my scene, ensayo.osm
<oe_scene>
<sceneManager type="0" />
<bkgcolor r="0" g="0" b="0" />
<lightColor r="0.5" g="0.5" b="0.5" />
<shadowTechnique type="1" tex_size="512" tex_count="1">
<color r="0" g="0" b="0" />
</shadowTechnique>
<skyTechnique type="3" material="ensayo1" drawFirst="yes" tiling="8" scale="2000" dist="5000" bow="10" xSegments="16" ySegments="16" />
<entities>
<entity name="Box01" hidden="false" filename="Box01.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="-0.383141" y="0" z="3.06514" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box02" hidden="false" filename="Box02.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="43.295" y="11.2472" z="50.1916" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
<entity name="Box03" hidden="false" filename="Box03.mesh" CastShadows="yes" ReceiveShadows="yes">
<position x="-27.2031" y="9.71462" z="-37.1647" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</entity>
</entities>
<cameras>
<camera name="Camera01" FOV="0.785398">
<position x="106.897" y="105.603" z="-99.2337" />
<rotation x="0.184227" y="0.81399" z="-0.418238" w="0.35855" />
<scale x="1" y="1" z="1" />
<target name="Camera01.Target">
<position x="-1.89141" y="0" z="0.293156" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</target>
</camera>
</cameras>
<lights>
<light name="Spot01" type="spot" on="true" CastShadows="yes" hotspot="43" falloff="45" intensity="1">
<position x="204.781" y="242.899" z="114.559" />
<rotation x="-0.330369" y="-0.449734" z="0.1836" w="-0.809251" />
<scale x="1" y="1" z="1" />
<color r="1" g="1" b="1" />
<specular r="1" g="1" b="1" />
<target name="Spot01.Target">
<position x="2.68199" y="0" z="-11.1111" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
</target>
</light>
</lights>
</oe_scene>
Lioric
09-06-2006 23:01:25
Test your scene without shadows
ricardo_arango
10-06-2006 01:38:43
Ok..
I tested the scene without shadows, and my meshes appeared, but they were overlapping, as if the z-order was being ignored.
So I got rid of the Dome (Sky in Max), and it worked perfectly, with and without shadows. So the problem is the skybox.
Lioric
10-06-2006 16:40:39
That is because you are using the same material for your meshes and the sky, as the material is modified by the Ogre engine to dont consider z buffer information (z write) by the sky system
Use different materials for the sky and the objects
ricardo_arango
10-06-2006 18:58:59
Yes that is the problem...
I suppose the solution could be that the Ogre engine made a copy of the material when it is dealing with skyboxes, or, doing as you say and having a material for the skybox which is unique...
Probably the way it is now is the best as the skybox material is pretty much different from the rest of materials in the scene in the majority of cases.
Thanks lioric...