BBC BASIC for Windows
Programming >> Graphics and Games >> d3d trubble? http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1226016523 d3d trubble?
Post by eekster on Nov 6th, 2008, 11:08pm
I've recently been unable to get lighting.bbc to work in the graphics examples
I installed d3d version 9 before it happened, never had any problems before that
Re: d3d trubble?
Post by eekster on Nov 6th, 2008, 11:19pm
REM. Program to demonstrate use of Direct3D lighting from BBC BASIC for Windows
REM. Pyramid (6 triangles): DATA -1, -1, 1, -1, -1, -1, 0, .414, 0 DATA 1, -1, 1, -1, -1, 1, 0, .414, 0 DATA 1, -1, -1, 1, -1, 1, 0, .414, 0 DATA -1, -1, -1, 1, -1, -1, 0, .414, 0 DATA 1, -1, -1, -1, -1, -1, -1, -1, 1 DATA -1, -1, 1, 1, -1, 1, 1, -1, -1 Re: d3d trubble?
Post by Michael Hutton on Nov 7th, 2008, 12:54am
What exactly happens? What error report do you get, if any?
It shouldn't matter that you have installed DX9 as the DX8 dlls should still be in the system32 folder, unless you specifically deleted them. Lighting.bbc should still work.
There are some differences between DX8 and DX9 API calls some of which require different parameters and the Interfaces are slightly different as well, but this should not be the issue!
Is the D3DLIB library installed in the right place? I know it's an obvious question but you know....!
If you can pinpoint the line where you get the problem it's much easier to solve! Could you post the error message or what happens when you run it?
I know that I have DX9 installed and lighting.bbc works fine here.
Michael
Re: d3d trubble?
Post by admin on Nov 7th, 2008, 09:41am
Quote:
I've recently been unable to get lighting.bbc to work
You might try running 'dxdiag' (at a command prompt) to see if that shows up any issues. It also allows you to disable or enable 'Direct3D Acceleration' in case there's a problem with your graphics card.
Richard. Re: d3d trubble?
Post by eekster on Nov 7th, 2008, 5:34pm