3d engine can't be initialized x64 DirectX 10 Engine3D.dll

Everything related to 3D programming
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Samuel »

Al_the_dutch wrote:I get this error too on some (but most of them work fine) of the examples. Bridge.pb is one of them. Line 146. Invalid memory access. (read error at address 318287904). And I did not choose anything else (window 800*600) as with the examples that do work.

I changed line 18 in

Code: Select all

If InitEngine3D(#PB_Engine3D_DebugLog)
The last part of the ogre.log:
I don't see any errors being reported in that portion of the ogre file. My ogre log displays one extra line after yours ends.
11:44:40: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) Internal format is PF_X8R8G8B8,128x128x1.
I'm not sure what this image is used for since it doesn't seem to be called anywhere in the Bridge example.

Looking at your GPU specs it should have full support for DirectX9.0c. So, that shouldn't be an issue.
Is there a noticeable error anywhere else in that Ogre log?

How much available physical memory does your computer have? Maybe your running out of memory.
Although if you were running out of memory on this example then you'd probably be running out on other 3D examples too.
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by electrochrisso »

Samuel wrote:
electrochrisso wrote: Even with the D3dx9_42.dll in System32, I still get an invalid address error on RenderWorld() when run from PB, does this only work for a compiled exe and not run from PB, any ideas. :?:
What's the graphic card your using? If it's an older card then it's possible the card doesn't support DirectX9.0c.
The laptop is just over a year old, i3 Gen 3, with the Intel 3000 graphics, It will work if I install the DirectX9.0c from Microsoft, but I have re-installed windows 7 and do not want to install DirectX9.0c again. I think there might be a couple of other dll's that are probably needed, anyhow as I do very little 3D, I am happy to use OpenGL, instead of installing DirectX9.0c, so I can check out example code. :)
PureBasic! Purely the best 8)
Al_the_dutch
User
User
Posts: 70
Joined: Mon Nov 11, 2013 11:07 am
Location: Portugal

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Al_the_dutch »

@Samuel
I don't see any errors being reported in that portion of the ogre file. My ogre log displays one extra line after yours ends.
Quote:
11:44:40: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) Internal format is PF_X8R8G8B8,128x128x1.

I'm not sure what this image is used for since it doesn't seem to be called anywhere in the Bridge example.
I don't see any errors in the entire ogre log. The texture spot_shadow_fade.png is not in my log and not in the source.
Is there a noticeable error anywhere else in that Ogre log? How much available physical memory does your computer have? Maybe your running out of memory.
No errors in the log. Physical memory 4Gb. The error is "Invalid memory access" so I think something else is wrong. It is not very important for me now but I recognised electrochrisso's case. It would be nice if it could be solved though.

I tried other examples. Water gave the same error (kind of related with bridge :lol: ) "Invalid memory access". The ogre log now gives an error:

09:13:44: [Hydrax] Hydrax created.
09:13:44: [Hydrax] Creating module...
09:13:44: [Hydrax] Creating ProjectedGridVertex module.
09:13:44: [Hydrax] ProjectedGridVertex created.
09:13:44: [Hydrax] Module created.
09:13:44: [Hydrax] Initializating RTT Manager...
09:13:44: [Hydrax] RTT manager initialized.
09:13:44: [Hydrax] Registring device restored listener...
09:13:44: [Hydrax] Device restored listener registred.
09:13:44: [Hydrax] Creating materials...
09:13:44: [Hydrax] Creating water material...
09:13:44: OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_VP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: High-level program _Hydrax_Water_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_VP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_FP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: High-level program _Hydrax_Water_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_FP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at OgreGpuProgramParams.cpp (line 1441)
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Samuel »

electrochrisso wrote: The laptop is just over a year old, i3 Gen 3, with the Intel 3000 graphics, It will work if I install the DirectX9.0c from Microsoft, but I have re-installed windows 7 and do not want to install DirectX9.0c again. I think there might be a couple of other dll's that are probably needed, anyhow as I do very little 3D, I am happy to use OpenGL, instead of installing DirectX9.0c, so I can check out example code. :)
In the Ogre hardware section they mention that SiS, Intel, and S3 cards might or might not be supported.
So, maybe it's your Intel card that's giving you grief.
OpenGL seems to run fine for you though. So, it could be more of a Intel/DirectX3D issue.
That or as you said maybe there are other DirectX dll's that are required.

Al_the_dutch wrote:The ogre log now gives an error
Can you post the entire Ogre log?
Al_the_dutch
User
User
Posts: 70
Joined: Mon Nov 11, 2013 11:07 am
Location: Portugal

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Al_the_dutch »

Can you post the entire Ogre log?
09:13:42: Creating resource group General
09:13:42: Creating resource group Internal
09:13:42: Creating resource group Autodetect
09:13:42: SceneManagerFactory for type 'DefaultSceneManager' registered.
09:13:42: Registering ResourceManager for type Material
09:13:42: Registering ResourceManager for type Mesh
09:13:42: Registering ResourceManager for type Skeleton
09:13:42: MovableObjectFactory for type 'ParticleSystem' registered.
09:13:42: OverlayElementFactory for type Panel registered.
09:13:42: OverlayElementFactory for type BorderPanel registered.
09:13:42: OverlayElementFactory for type TextArea registered.
09:13:42: Registering ResourceManager for type Font
09:13:42: ArchiveFactory for archive type FileSystem registered.
09:13:42: ArchiveFactory for archive type Zip registered.
09:13:42: ArchiveFactory for archive type EmbeddedZip registered.
09:13:42: DDS codec registering
09:13:42: FreeImage version: 3.10.0
09:13:42: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
09:13:42: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,koa,iff,lbm,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,dds,gif,g3,sgi,j2k,j2c,jp2
09:13:42: PVRTC codec registering
09:13:42: Registering ResourceManager for type HighLevelGpuProgram
09:13:42: Registering ResourceManager for type Compositor
09:13:42: MovableObjectFactory for type 'Entity' registered.
09:13:42: MovableObjectFactory for type 'Light' registered.
09:13:42: MovableObjectFactory for type 'BillboardSet' registered.
09:13:42: MovableObjectFactory for type 'ManualObject' registered.
09:13:42: MovableObjectFactory for type 'BillboardChain' registered.
09:13:42: MovableObjectFactory for type 'RibbonTrail' registered.
09:13:42: *-*-* OGRE Initialising
09:13:42: *-*-* Version 1.8.2 (Byatis)
09:13:42: D3D9 : Direct3D9 Rendering Subsystem created.
09:13:42: D3D9: Driver Detection Starts
09:13:42: D3D9: Driver Detection Ends
09:13:42: Particle Emitter Type 'Point' registered
09:13:42: Particle Emitter Type 'Box' registered
09:13:42: Particle Emitter Type 'Ellipsoid' registered
09:13:42: Particle Emitter Type 'Cylinder' registered
09:13:42: Particle Emitter Type 'Ring' registered
09:13:42: Particle Emitter Type 'HollowEllipsoid' registered
09:13:42: Particle Affector Type 'LinearForce' registered
09:13:42: Particle Affector Type 'ColourFader' registered
09:13:42: Particle Affector Type 'ColourFader2' registered
09:13:42: Particle Affector Type 'ColourImage' registered
09:13:42: Particle Affector Type 'ColourInterpolator' registered
09:13:42: Particle Affector Type 'Scaler' registered
09:13:42: Particle Affector Type 'Rotator' registered
09:13:42: Particle Affector Type 'DirectionRandomiser' registered
09:13:42: Particle Affector Type 'DeflectorPlane' registered
09:13:42: PCZone Factory Type 'ZoneType_Default' registered
09:13:42: CPU Identifier & Features
09:13:42: -------------------------
09:13:42: * CPU ID: GenuineIntel: Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
09:13:42: * SSE: yes
09:13:42: * SSE2: yes
09:13:42: * SSE3: yes
09:13:42: * MMX: yes
09:13:42: * MMXEXT: yes
09:13:42: * 3DNOW: no
09:13:42: * 3DNOWEXT: no
09:13:42: * CMOV: yes
09:13:42: * TSC: yes
09:13:42: * FPU: yes
09:13:42: * PRO: yes
09:13:42: * HT: no
09:13:42: -------------------------
09:13:42: D3D9 : Subsystem Initialising
09:13:42: Registering ResourceManager for type Texture
09:13:42: Registering ResourceManager for type GpuProgram
09:13:42: ***************************************
09:13:42: *** D3D9 : Subsystem Initialised OK ***
09:13:42: ***************************************
09:13:42: SceneManagerFactory for type 'OctreeSceneManager' registered.
09:13:42: SceneManagerFactory for type 'BspSceneManager' registered.
09:13:42: Registering ResourceManager for type BspLevel
09:13:42: Added resource location './Data/Textures' of type 'FileSystem' to resource group 'General'
09:13:42: Added resource location './Data/Models' of type 'FileSystem' to resource group 'General'
09:13:42: Added resource location './Data/Water' of type 'FileSystem' to resource group 'General'
09:13:42: Added resource location './Data/Packs/desert.zip' of type 'Zip' to resource group 'General'
09:13:44: D3D9RenderSystem::_createRenderWindow "PureBasic Ogre", 800x600 windowed miscParams: FSAA=0 displayFrequency=0 externalWindowHandle=3606160 vsync=true
09:13:44: D3D9 : Created D3D9 Rendering Window 'PureBasic Ogre' : 800x600, 32bpp
09:13:44: D3D9: Vertex texture format supported - PF_L8
09:13:44: D3D9: Vertex texture format supported - PF_L16
09:13:44: D3D9: Vertex texture format supported - PF_A8
09:13:44: D3D9: Vertex texture format supported - PF_A4L4
09:13:44: D3D9: Vertex texture format supported - PF_BYTE_LA
09:13:44: D3D9: Vertex texture format supported - PF_R5G6B5
09:13:44: D3D9: Vertex texture format supported - PF_B5G6R5
09:13:44: D3D9: Vertex texture format supported - PF_A4R4G4B4
09:13:44: D3D9: Vertex texture format supported - PF_A1R5G5B5
09:13:44: D3D9: Vertex texture format supported - PF_A8R8G8B8
09:13:44: D3D9: Vertex texture format supported - PF_B8G8R8A8
09:13:44: D3D9: Vertex texture format supported - PF_A2R10G10B10
09:13:44: D3D9: Vertex texture format supported - PF_A2B10G10R10
09:13:44: D3D9: Vertex texture format supported - PF_DXT1
09:13:44: D3D9: Vertex texture format supported - PF_DXT2
09:13:44: D3D9: Vertex texture format supported - PF_DXT3
09:13:44: D3D9: Vertex texture format supported - PF_DXT4
09:13:44: D3D9: Vertex texture format supported - PF_DXT5
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
09:13:44: D3D9: Vertex texture format supported - PF_X8R8G8B8
09:13:44: D3D9: Vertex texture format supported - PF_X8B8G8R8
09:13:44: D3D9: Vertex texture format supported - PF_R8G8B8A8
09:13:44: D3D9: Vertex texture format supported - PF_DEPTH
09:13:44: D3D9: Vertex texture format supported - PF_SHORT_RGBA
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT16_R
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT32_R
09:13:44: D3D9: Vertex texture format supported - PF_SHORT_GR
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT16_GR
09:13:44: D3D9: Vertex texture format supported - PF_FLOAT32_GR
09:13:44: D3D9: Vertex texture format supported - PF_SHORT_RGB
09:13:44: D3D9: Vertex texture format supported - PF_PVRTC_RGB2
09:13:44: D3D9: Vertex texture format supported - PF_PVRTC_RGBA2
09:13:44: D3D9: Vertex texture format supported - PF_PVRTC_RGB4
09:13:44: D3D9: Vertex texture format supported - PF_PVRTC_RGBA4
09:13:44: D3D9: Vertex texture format supported - PF_R8
09:13:44: D3D9: Vertex texture format supported - PF_RG8
09:13:44: RenderSystem capabilities
09:13:44: -------------------------
09:13:44: RenderSystem Name: Direct3D9 Rendering Subsystem
09:13:44: GPU Vendor: ati
09:13:44: Device Name: Monitor-1-ATI Radeon HD 4600 Series
09:13:44: Driver Version: 8.17.10.1129
09:13:44: * Fixed function pipeline: yes
09:13:44: * Hardware generation of mipmaps: yes
09:13:44: * Texture blending: yes
09:13:44: * Anisotropic texture filtering: yes
09:13:44: * Dot product texture operation: yes
09:13:44: * Cube mapping: yes
09:13:44: * Hardware stencil buffer: yes
09:13:44: - Stencil depth: 8
09:13:44: - Two sided stencil support: yes
09:13:44: - Wrap stencil values: yes
09:13:44: * Hardware vertex / index buffers: yes
09:13:44: * Vertex programs: yes
09:13:44: * Number of floating-point constants for vertex programs: 256
09:13:44: * Number of integer constants for vertex programs: 16
09:13:44: * Number of boolean constants for vertex programs: 16
09:13:44: * Fragment programs: yes
09:13:44: * Number of floating-point constants for fragment programs: 224
09:13:44: * Number of integer constants for fragment programs: 16
09:13:44: * Number of boolean constants for fragment programs: 16
09:13:44: * Geometry programs: no
09:13:44: * Number of floating-point constants for geometry programs: 25971
09:13:44: * Number of integer constants for geometry programs: 29810
09:13:44: * Number of boolean constants for geometry programs: 14128
09:13:44: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
09:13:44: * Texture Compression: yes
09:13:44: - DXT: yes
09:13:44: - VTC: no
09:13:44: - PVRTC: no
09:13:44: * Scissor Rectangle: yes
09:13:44: * Hardware Occlusion Query: yes
09:13:44: * User clip planes: yes
09:13:44: * VET_UBYTE4 vertex element type: yes
09:13:44: * Infinite far plane projection: yes
09:13:44: * Hardware render-to-texture: yes
09:13:44: * Floating point textures: yes
09:13:44: * Non-power-of-two textures: yes
09:13:44: * Volume textures: yes
09:13:44: * Multiple Render Targets: 4
09:13:44: - With different bit depths: yes
09:13:44: * Point Sprites: yes
09:13:44: * Extended point parameters: yes
09:13:44: * Max Point Size: 256
09:13:44: * Vertex texture fetch: yes
09:13:44: * Number of world matrices: 0
09:13:44: * Number of texture units: 8
09:13:44: * Stencil buffer depth: 8
09:13:44: * Number of vertex blend matrices: 0
09:13:44: - Max vertex textures: 4
09:13:44: - Vertex textures shared: no
09:13:44: * Render to Vertex Buffer : no
09:13:44: * DirectX per stage constants: yes
09:13:44: DefaultWorkQueue('Root') initialising on thread main.
09:13:44: Particle Renderer Type 'billboard' registered
09:13:44: Texture: desert07_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) Internal format is PF_X8R8G8B8,512x512x1.
09:13:44: Texture: desert07_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) Internal format is PF_X8R8G8B8,512x512x1.
09:13:44: Texture: desert07_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) Internal format is PF_X8R8G8B8,512x512x1.
09:13:44: Texture: desert07_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) Internal format is PF_X8R8G8B8,512x512x1.
09:13:44: Texture: desert07_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) Internal format is PF_X8R8G8B8,512x512x1.
09:13:44: Texture: desert07_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) Internal format is PF_X8R8G8B8,512x512x1.
09:13:44: [Hydrax] Hydrax created.
09:13:44: [Hydrax] Creating module...
09:13:44: [Hydrax] Creating ProjectedGridVertex module.
09:13:44: [Hydrax] ProjectedGridVertex created.
09:13:44: [Hydrax] Module created.
09:13:44: [Hydrax] Initializating RTT Manager...
09:13:44: [Hydrax] RTT manager initialized.
09:13:44: [Hydrax] Registring device restored listener...
09:13:44: [Hydrax] Device restored listener registred.
09:13:44: [Hydrax] Creating materials...
09:13:44: [Hydrax] Creating water material...
09:13:44: OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_VP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: High-level program _Hydrax_Water_VP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_VP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_FP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: High-level program _Hydrax_Water_FP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Cannot assemble D3D9 high-level shader _Hydrax_Water_FP in D3D9HLSLProgram::loadFromSource at OgreD3D9HLSLProgram.cpp (line 281)
09:13:44: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at OgreGpuProgramParams.cpp (line 1441)
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Samuel »

I don't notice anything wrong besides the hydrax shader error.
I'm not really sure why it's not working for you.

Do the examples that don't work with DirectX run with OpenGL?
Al_the_dutch
User
User
Posts: 70
Joined: Mon Nov 11, 2013 11:07 am
Location: Portugal

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Al_the_dutch »

Do the examples that don't work with DirectX run with OpenGL?
They do! Both Water and Bridge. Thx!
I had to find how PureBasic is forced to use OpenGL. It is very simple, just type "OpenGL" in Library subsystem in Compiler Options.
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: 3d engine can't be initialized x64 DirectX 10 Engine3D.d

Post by Samuel »

Al_the_dutch wrote: They do! Both Water and Bridge. Thx!
I had to find how PureBasic is forced to use OpenGL. It is very simple, just type "OpenGL" in Library subsystem in Compiler Options.
Well, it's good to hear they run with OpenGL. I'd guess the reason they didn't work with DirectX9.0c is a compatibility issue with your graphic card or
DirectX didn't install properly onto your computer.
Post Reply