Author |
Topic: GPU Mandelbrot Viewer (Read 1648 times) |
|
Michael Hutton
Developer
member is offline


Gender: 
Posts: 248
|
 |
Re: GPU Mandelbrot Viewer
« Reply #6 on: Nov 17th, 2010, 10:25am » |
|
on Nov 17th, 2010, 08:10am, Richard Russell wrote:| I reported the identical error message, which you acknowledged on the group yesterday. |
|
Yes, I know. I should have said 'come accross it before this end....' <sigh>
on Nov 17th, 2010, 08:10am, Richard Russell wrote:| How do you know that the machine has a suitable D3DX9_xx.DLL? For example the highest version on my PC is D3DX9_32.DLL but I've seen several references to D3DX9_42.DLL being required by some programs. |
|
What is failing is: the ID3DXEffect::FindNextValidTechnique. With a quick search I can't find anything related to different dll versions, but maybe something will get dug up (No doubt by you in a few minutes...).
Code:
REM ****************************************************************
REM
REM Load and compile the Effect file
REM
REM ****************************************************************
IF V% THEN PRINT"Compiling Effect File."
SYS D3DXCreateEffectFromFile%, pDevice%, ShaderVersion$, 0, 0, 0, 0, ^Effect%, ^Errorlog%
IF Effect% = 0 THEN
SYS !(!Errorlog% + 12), Errorlog% TO B%
ERROR 100, "Failed to Compile Effect. Sorry, you do not appear to be able to compile this shader with your graphics card.."+CHR$13+CHR$13+$$B%
ENDIF
REM ****************************************************************
REM
REM Find the first Valid technique in the Effect file
REM This is the Mandel effect
REM
REM ****************************************************************
IF V% THEN PRINT"Getting Effect Mandel."
REM ID3DXEffect::FindNextValidTechnique
SYS !(!Effect% + 240), Effect%, 0, ^Technique1% TO R%
IF R% THEN ERROR 100, "Could not find the effect : Mandelbrot"
I have recompiled a version to use the _32.dll. If this works for you then that could explain the problem, but it 'works here fine'.
http://tech.groups.yahoo.com/group/bb4w/files/%22Temp%20Folder%22/MDCH/MandelGPU/MandelBrotGPU%20v1.00a%20limited%20to%20D3DX9_32.exe
Btw I am uploading as exes at the moment to keep all the code in one place.. I will publish it all but it needs to be tidied. A lot of device querying could be done.
Oh.... and in fact I think I don't even have to use that function at all.
http://tech.groups.yahoo.com/group/bb4w/files/%22Temp%20Folder%22/MDCH/MandelGPU/MandelBrotGPU%20v1.00a%20limited%20to%20D3DX9_32%20without%20%27that%27%20fn.exe Michael
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: GPU Mandelbrot Viewer
« Reply #7 on: Nov 17th, 2010, 1:23pm » |
|
on Nov 17th, 2010, 10:25am, Michael Hutton wrote:| Oh.... and in fact I think I don't even have to use that function at all. |
|
OK, that version produces no error messages, and reports a frame rate of 85 fps (my native hardware refresh rate) but displays only a black window! Absolutely no graphics displayed at all. 
Richard.
|
|
Logged
|
|
|
|
Matt
Developer
member is offline


Gender: 
Posts: 210
|
 |
Re: GPU Mandelbrot Viewer
« Reply #8 on: Nov 17th, 2010, 6:25pm » |
|
I'm using XP with DirectX9 on my netbook. No idea about anything else you might need to know. Not sure where to find out about the graphics 'card'.
Matt
|
|
Logged
|
|
|
|
|