Can I run 0.4rc3 by opengl..?

kimpang

11-04-2007 19:08:18

I have same problem like down of thread(Tutorial error)

The screen say that "draw primitive error"

NxOgre 0.4RC3 + Physx2.6.2

I did try to change dx9 to gl in the config.yaml.

But same error occur.

So... can I run by opengl?

I think its dx NxOgre wrapper problem.

My desktop run well.
However laptop isn't..
The graphic chipset is Intel 950G.

Anybody help?? :oops:

betajaen

11-04-2007 19:14:17

Yep, it should work. Is the OpenGL subsystem being setup in the Ogre.log?

kimpang

12-04-2007 13:26:02

21:29:45: Creating resource group General
21:29:45: Creating resource group Internal
21:29:45: Creating resource group Autodetect
21:29:45: SceneManagerFactory for type 'DefaultSceneManager' registered.
21:29:45: Registering ResourceManager for type Material
21:29:45: Registering ResourceManager for type Mesh
21:29:45: Registering ResourceManager for type Skeleton
21:29:45: MovableObjectFactory for type 'ParticleSystem' registered.
21:29:45: OverlayElementFactory for type Panel registered.
21:29:45: OverlayElementFactory for type BorderPanel registered.
21:29:45: OverlayElementFactory for type TextArea registered.
21:29:45: Registering ResourceManager for type Font
21:29:45: ArchiveFactory for archive type FileSystem registered.
21:29:45: ArchiveFactory for archive type Zip registered.
21:29:45: FreeImage version: 3.9.2
21:29:45: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
21:29:45: 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
21:29:45: DDS codec registering
21:29:45: Registering ResourceManager for type HighLevelGpuProgram
21:29:45: Registering ResourceManager for type Compositor
21:29:45: MovableObjectFactory for type 'Entity' registered.
21:29:45: MovableObjectFactory for type 'Light' registered.
21:29:45: MovableObjectFactory for type 'BillboardSet' registered.
21:29:45: MovableObjectFactory for type 'ManualObject' registered.
21:29:45: MovableObjectFactory for type 'BillboardChain' registered.
21:29:45: MovableObjectFactory for type 'RibbonTrail' registered.
21:29:45: *-*-* OGRE Initialising
21:29:45: *-*-* Version 1.4.0 (Eihort)
21:29:45: Loading library RenderSystem_Direct3D9
21:29:45: Installing plugin: D3D9 RenderSystem
21:29:45: D3D9 : Direct3D9 Rendering Subsystem created.
21:29:45: D3D9: Driver Detection Starts
21:29:45: D3D9: Driver Detection Ends
21:29:45: Plugin successfully installed
21:29:45: Loading library RenderSystem_GL
21:29:45: Installing plugin: GL RenderSystem
21:29:45: OpenGL Rendering Subsystem created.
21:29:45: Plugin successfully installed
21:29:45: Loading library Plugin_ParticleFX
21:29:45: Installing plugin: ParticleFX
21:29:46: Particle Emitter Type 'Point' registered
21:29:46: Particle Emitter Type 'Box' registered
21:29:46: Particle Emitter Type 'Ellipsoid' registered
21:29:46: Particle Emitter Type 'Cylinder' registered
21:29:46: Particle Emitter Type 'Ring' registered
21:29:46: Particle Emitter Type 'HollowEllipsoid' registered
21:29:46: Particle Affector Type 'LinearForce' registered
21:29:46: Particle Affector Type 'ColourFader' registered
21:29:46: Particle Affector Type 'ColourFader2' registered
21:29:46: Particle Affector Type 'ColourImage' registered
21:29:46: Particle Affector Type 'ColourInterpolator' registered
21:29:46: Particle Affector Type 'Scaler' registered
21:29:46: Particle Affector Type 'Rotator' registered
21:29:46: Particle Affector Type 'DirectionRandomiser' registered
21:29:46: Particle Affector Type 'DeflectorPlane' registered
21:29:46: Plugin successfully installed
21:29:46: D3D9 : RenderSystem Option: Full Screen = No
21:29:46: D3D9 : RenderSystem Option: VSync = No
21:29:46: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
21:29:46: Creating resource group Bootstrap
21:29:46: Added resource location 'Media/boot.zip' of type 'Zip' to resource group 'Bootstrap'
21:29:46: Added resource location 'Media/' of type 'FileSystem' to resource group 'General'
21:29:46: Added resource location 'Media/606/' of type 'FileSystem' to resource group 'General'
21:29:46: Added resource location 'Media/tutorialmedia.zip' of type 'Zip' to resource group 'General'
21:29:46: Added resource location 'Media/bguires.zip' of type 'Zip' to resource group 'General'
21:29:46: CPU Identifier & Features
21:29:46: -------------------------
21:29:46: * CPU ID: GenuineIntel: Genuine Intel(R) CPU T2300 @ 1.66GHz
21:29:46: * SSE: yes
21:29:46: * SSE2: yes
21:29:46: * SSE3: yes
21:29:46: * MMX: yes
21:29:46: * MMXEXT: yes
21:29:46: * 3DNOW: no
21:29:46: * 3DNOWEXT: no
21:29:46: * CMOV: yes
21:29:46: * TSC: yes
21:29:46: * FPU: yes
21:29:46: * PRO: yes
21:29:46: * HT: no
21:29:46: -------------------------
21:29:46: D3D9 : Subsystem Initialising
21:29:46: D3D9RenderSystem::createRenderWindow "NxOgre: 1001 - Cloth", 1024x768 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
21:29:46: D3D9 : Created D3D9 Rendering Window 'NxOgre: 1001 - Cloth' : 1016x734, 32bpp
21:29:46: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
21:29:46: Registering ResourceManager for type Texture
21:29:46: Registering ResourceManager for type GpuProgram
21:29:46: RenderSystem capabilities
21:29:46: -------------------------
21:29:46: * Hardware generation of mipmaps: no
21:29:46: * Texture blending: yes
21:29:46: * Anisotropic texture filtering: yes
21:29:46: * Dot product texture operation: yes
21:29:46: * Cube mapping: yes
21:29:46: * Hardware stencil buffer: yes
21:29:46: - Stencil depth: 8
21:29:46: - Two sided stencil support: yes
21:29:46: - Wrap stencil values: yes
21:29:46: * Hardware vertex / index buffers: yes
21:29:46: * Vertex programs: yes
21:29:46: - Max vertex program version: vs_3_0
21:29:46: * Fragment programs: yes
21:29:46: - Max fragment program version: ps_2_0
21:29:46: * Texture Compression: yes
21:29:46: - DXT: yes
21:29:46: - VTC: no
21:29:46: * Scissor Rectangle: yes
21:29:46: * Hardware Occlusion Query: no
21:29:46: * User clip planes: yes
21:29:46: * VET_UBYTE4 vertex element type: yes
21:29:46: * Infinite far plane projection: yes
21:29:46: * Hardware render-to-texture: yes
21:29:46: * Floating point textures: no
21:29:46: * Non-power-of-two textures: yes (limited)
21:29:46: * Volume textures: yes
21:29:46: * Multiple Render Targets: 1
21:29:46: * Point Sprites: yes
21:29:46: * Extended point parameters: yes
21:29:46: * Max Point Size: 256
21:29:46: * Vertex texture fetch: no
21:29:46: ***************************************
21:29:46: *** D3D9 : Subsystem Initialised OK ***
21:29:46: ***************************************
21:29:46: ResourceBackgroundQueue - threading disabled
21:29:46: Particle Renderer Type 'billboard' registered
21:29:46: Creating viewport on target 'NxOgre: 1001 - Cloth', rendering from camera 'MainCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
21:29:46: Viewport for camera 'MainCamera', actual dimensions L: 0 T: 0 W: 1016 H: 734
21:29:46: Parsing scripts for resource group Autodetect
21:29:46: Finished parsing scripts for resource group Autodetect
21:29:46: Parsing scripts for resource group Bootstrap
21:29:46: Parsing script gui.material
21:29:46: Parsing script instructions.material
21:29:46: Parsing script nx.bodyguide.material
21:29:46: Parsing script boot.material
21:29:46: Parsing script Ogre.fontdef
21:29:46: Finished parsing scripts for resource group Bootstrap
21:29:46: Parsing scripts for resource group General
21:29:46: Parsing script cloth.material
21:29:46: Parsing script co1.material
21:29:46: Parsing script construct.material
21:29:46: Parsing script editor.material.material
21:29:46: Parsing script nxbgui.material
21:29:46: Parsing script ribbon.material
21:29:46: Parsing script transparent.1m.material
21:29:46: Parsing script edlift.material
21:29:46: Parsing script edliftarea.material
21:29:46: Parsing script nx.floor.material
21:29:46: Parsing script nx.floor2.material
21:29:46: Parsing script nx.particles.material
21:29:46: Parsing script 312.material
21:29:46: Parsing script 313.material
21:29:46: Parsing script arrows.material
21:29:46: Parsing script chair.material
21:29:46: Parsing script int.material
21:29:46: Parsing script nx.interior1.material
21:29:46: Parsing script nx.stairs.material
21:29:46: Parsing script set.material
21:29:46: Parsing script nx.shapes.material
21:29:46: Parsing script bgui.material
21:29:46: Parsing script nx.particles.particle
21:29:46: Finished parsing scripts for resource group General
21:29:46: Parsing scripts for resource group Internal
21:29:46: Finished parsing scripts for resource group Internal
21:29:46: Texture: any.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:29:46: Texture: gui_loading_notice.png: Loading 1 faces(PF_A8R8G8B8,128x32x1) with 7 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x32x1.
21:29:46: *** Initializing OIS ***
21:29:46: D3D9 : ***** Dimensions altered by the render system
21:29:46: D3D9 : ***** Source image dimensions : 22x22
21:29:46: D3D9 : ***** Texture dimensions : 32x32
21:29:46: Texture: bgui.exit.png: Loading 1 faces(PF_A8R8G8B8,22x22x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
21:29:46: D3D9 : ***** Dimensions altered by the render system
21:29:46: D3D9 : ***** Source image dimensions : 22x22
21:29:46: D3D9 : ***** Texture dimensions : 32x32
21:29:46: Texture: pause.png: Loading 1 faces(PF_A8R8G8B8,22x22x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
21:29:46: D3D9 : ***** Dimensions altered by the render system
21:29:46: D3D9 : ***** Source image dimensions : 22x22
21:29:46: D3D9 : ***** Texture dimensions : 32x32
21:29:46: Texture: debug.png: Loading 1 faces(PF_A8R8G8B8,22x22x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
21:29:46: D3D9 : ***** Dimensions altered by the render system
21:29:46: D3D9 : ***** Source image dimensions : 24x24
21:29:46: D3D9 : ***** Texture dimensions : 32x32
21:29:46: Texture: bgui.pointer.png: Loading 1 faces(PF_A8R8G8B8,24x24x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
21:29:46: Texture: gui_pause.png: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 7 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
21:29:46: Font nxogrefontusing texture size 512x256
21:29:46: Info: Freetype returned null for character 160 in font nxogrefont
21:29:47: Texture: nxogrefontTexture: Loading 1 faces(PF_BYTE_LA,512x256x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x256x1.
21:29:47: Mesh: Loading nx.bodyguide.mesh.
21:29:47: WARNING: nx.bodyguide.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
21:29:47: Texture: bodyguide1m.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
21:29:47: Registering ResourceManager for type NxSCM
21:29:47: Mesh: Loading sphere.50cm.mesh.
21:29:47: WARNING: sphere.50cm.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
21:29:47: Mesh: Loading cube.1m.mesh.
21:29:47: WARNING: cube.1m.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
21:29:47: WARNING: Mesh instance 'nx.cloth.0' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
21:29:47: Can't assign material to SubEntity of nx.cloth.0.ent because this Material does not exist. Have you forgotten to define it in a .material script?
21:29:47: Texture: nx.flag.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
21:29:47: Mesh: Loading nx.floor2.mesh.
21:29:47: Texture: nx.floor.png: Loading 1 faces(PF_A8R8G8B8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
21:29:47: Texture: nx.floor2.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
21:29:47: Mesh: Loading nx.body.axis.mesh.
21:29:47: WARNING: nx.body.axis.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
21:29:47: Texture: arrow1.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
21:29:47: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with 1 generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
21:29:47: OGRE EXCEPTION(3:RenderingAPIException): Failed to DrawPrimitive : Invalid call in D3D9RenderSystem::_render at ..\src\OgreD3D9RenderSystem.cpp (line 2695)

betajaen

12-04-2007 14:23:21

Probably something to do with one of the meshes not being "compatible" with OpenGL.

It isn't NxOgre related, but the tutorial code. You could either take out the "nx.body.axis" code if you wanted to, I'd use DirectX personally.