[Help] Crash when using my poor graphics card

trung

27-09-2005 18:38:26

Hi,

My graphics card is an onboard card. It displays other Ogre examples well, but has problem with PLSM. While begin running Demo_PagingLandScape2.exe on my computer, using onboard graphics card:


23:54:15: RenderSystem capabilities
23:54:15: -------------------------
23:54:15: * Hardware generation of mipmaps: no
23:54:15: * Texture blending: yes
23:54:15: * Anisotropic texture filtering: yes
23:54:15: * Dot product texture operation: yes
23:54:15: * Cube mapping: yes
23:54:15: * Hardware stencil buffer: yes
23:54:15: - Stencil depth: 8
23:54:15: - Two sided stencil support: no
23:54:15: - Wrap stencil values: yes
23:54:15: * Hardware vertex / index buffers: yes
23:54:15: * Vertex programs: yes
23:54:15: - Max vertex program version: vs_3_0
23:54:15: * Fragment programs: no
23:54:15: * Texture Compression: yes
23:54:15: - DXT: yes
23:54:15: - VTC: no
23:54:15: * Scissor Rectangle: yes
23:54:15: * Hardware Occlusion Query: no
23:54:15: * User clip planes: yes
23:54:15: * VET_UBYTE4 vertex element type: yes
23:54:15: * Infinite far plane projection: yes
23:54:15: * Hardware render-to-texture: yes
23:54:15: * Floating point textures: no
23:54:15: * Non-power-of-two textures: yes
23:54:15: * Volume textures: no
23:54:15: ***************************************
23:54:15: *** D3D9 : Subsystem Initialised OK ***
23:54:15: ***************************************
. . .
23:54:17: Finished parsing scripts for resource group PLSM2
23:54:17: Texture: flare.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
23:54:17: Win32Input8: DirectInput Activation Starts
23:54:17: Win32Input8: Establishing keyboard input.
23:54:17: Win32Input8: Keyboard input established.
23:54:17: Win32Input8: Establishing mouse input.
23:54:17: Win32Input8: Mouse input established.
23:54:17: Win32Input8: DirectInput OK.
23:54:17: Texture: cursor.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
23:54:17: Win32Input8: Establishing keyboard input.
23:54:17: Win32Input8: Keyboard input established.
23:54:17: Win32Input8: Initializing mouse input in immediate mode.
23:54:17: Win32Input8: Mouse input in immediate mode initialized.
23:54:17: Texture: spot_shadow_fade.png: Loading 1 faces(PF_B8G8R8,128x128x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
23:54:17: Warning: material ImageTexture.4.8gcanyon_texture_4k2k has no supportable Techniques on this hardware, it will be rendered blank.
23:54:17: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: -2005530516
Function: D3D9RenderSystem::_render
Description: Failed to DrawPrimitive : Invalid call.
File: c:\softwaredevelopment\c++\ogresdk\ogrenew\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp
Line: 2163
Stack unwinding: <<beginning of stack>>
23:56:10: *-*-* OGRE Shutdown


I found 2 threads on main Ogre forum about the same error but the problem is not similar.

Other Ogre examples work well. My other computer using other AGP graphics card runs the demo Demo_PagingLandScape2 well (Difference RenderSystem capabilities from my onboard-card: Hardware generation of mipmaps: yes).

I don't know where to begin debug on code, plz help me resolve the problem. Do I must buy or change my graphics card to support "Hardware generation of mipmaps"? Thanks.

tuan kuranes

27-09-2005 20:08:05

your card incorrectly reports its capabilities, thus leading to errors as said here : http://www.ogre3d.org/phpBB2/viewtopic. ... 9074#59074

Seems you have either to patch Ogre or make Intel provides really gl/dx9 compatible drivers (perhaps a new driver version would suffice.).

trung

27-09-2005 20:23:36

Umh my card is exactly an Intel one. "IntelĀ® 82865G Graphics Controller". The driver software CD included from the mainboard I bought from the computer shop 3 months ago. Driver dated 2003. I'm downloading the recent driver dated Aug 2005 from Intel's site, hope it affects I can't report the result now because it forces me to restart the computer now.

tuan kuranes

27-09-2005 20:29:11

Please report so that we know if intel had make driver more dx/gl compliant (test both)

trung

27-09-2005 20:49:44

After updating the lastest driver (31/Aug/2005 on Intel site), the same error on DX9 as I listed above, but GL works (before updating both do not work).


Render System Direct3D9 Rendering SubSystem
Anti aliasing None
Floating-point mode Fastest
Full Screen No
Rendering Device Intel(R) 82865G Graphics Controller
VSync No
Video Mode 800 x 600 @ 32-bit colour


02:27:16: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: -2005530516
Function: D3D9RenderSystem::_render
Description: Failed to DrawPrimitive : Invalid call.
File: c:\softwaredevelopment\c++\ogresdk\ogrenew\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp
Line: 2163
Stack unwinding: <<beginning of stack>>
02:27:25: *-*-* OGRE Shutdown


I'm making some patchs in ogred3d9rendersystem.cpp to ensure what DX function DrawPrimitive or DrawIndexPrimitive made error exception.

But on GL not *all* texture formats work.


Render System OpenGL Rendering Subsystem
Colour Depth 32
Display Frequency N/A
FSAA 0
Full Screen No
VSync No
Video Mode 800 x 600


By pressing 'K' key to change texture formats:

*Texture Format:Image/InstantBaseTexture/InstantBaseTextureEdit: The terrain DOES NOT painted. Only blue background with debug/help form displayed on window.

*Texture Format:BaseTexture/BaseTexture2/Splatting/Spatting2/3/4...: The terrain painted OK. But the result a bit does not look like the one I saw from my 2nd computer.

Some logs:


02:37:07: Warning: material InstantBaseMaterial.0.2ps_height_1k has no supportable Techniques on this hardware, it will be rendered blank.
. . .
02:37:31: Warning: material ImageTexture.3.8gcanyon_texture_4k2k has no supportable Techniques on this hardware, it will be rendered blank.
. . .
02:37:38: Texture: alpes.Base.0.1.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 7 generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
02:37:38: Warning: material InstantBaseMaterial.0.1alpes has no supportable Techniques on this hardware, it will be rendered blank.
. . .
2:38:16: Warning: material InstantBaseMaterial.0.0alpes has no supportable Techniques on this hardware, it will be rendered blank.

edwynn

04-10-2005 11:49:14

Hi I have this error too. I am using a Radeon 9550 in D3D9.


Error #: -2147467259
Function: D3D9RenderSystem::_render
Description: Failed to DrawPrimitive : An undetermined error occurred.
File: c:\softwaredevelopment\c++\ogresdk\ogrenew\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp
Line: 2163
Stack unwinding: <<beginning of stack>>

tuan kuranes

04-10-2005 13:23:00

thread problem is mainly about incorect driver support of opengl or Dx.
Ati Radeon should'nt have those problem provided you use latest drivers

did you disable vertex morphing, vertex compression and use only Image Texture Format ?