Search found 51 matches

by Ric
Wed 18 Mar 2020, 22:16
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

Here is the program as it stands. In my search to understand i have translated all in to what i consider code that is easier to understand. The only problem is that it is unstable! 50% of the time when the program is closed it crashes, can someone with a higher knowledge of D3D9 help with this aspec...
by Ric
Wed 18 Mar 2020, 16:55
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

I have now decreased the total number without d3d9 by 1. Upgrade successful.

I have also now got a working version of my program in D3D9 :D

Is there a way to multiply two matrices together that already have FN_f4() elements?

Regards Ric
by Ric
Mon 16 Mar 2020, 21:15
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

My appologies for invoking your wrath, but you presume too quickly. The only reason i am using D3DLIB and not D3D9LIB is because i have not got it. An update is obviously required.

Ric
by Ric
Mon 16 Mar 2020, 17:48
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

The "magic number 228" turned out to be the wrong one, had a look in the library file and changed it to 200 which works fine. The number 228 corresponds to "SetRenderState" in the list of methods i have, is the difference because the D3DLIB is written using D3D8 or am i barking up the wrong tree? If...
by Ric
Sat 14 Mar 2020, 11:37
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

Thank you for that demo. The more small steps I take the bigger I can take in the future.
Regards Ric
by Ric
Thu 12 Mar 2020, 19:07
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

The "kludge" goes against my physics and mathematical background too, but it works remarkably well as an approximation of the real world light. But that leads back to the origional question. If i have a cube which has all red vertices and i shine a diffuse light at it, the sides that are 90 degrees ...
by Ric
Thu 12 Mar 2020, 09:42
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

Maybe I should have asked the question a different way. When using diffuse light the face of an object moves in to total darkness when the incidence of the face normal and the light direction becomes more than 90 degrees (pi/2). As I said, this is ok if you are trying to assimilate space, but I am n...
by Ric
Wed 11 Mar 2020, 12:18
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

Thanks Richard, I have played around with different lighting effects now with some nice results, but there is one type i just cant get to work, and that is ambient lighting. All the other types show an object as though it were in space but in the real world the rear side of objects are lit. I have t...
by Ric
Mon 09 Mar 2020, 12:28
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

Thank you to all who have replied so far. It is now clear that d3d9 is the correct path, I have complex objects spinning on screen, but with no directional light. I have tried the code for creating a light from the manual but I get bad DIM at DIM lights%(0) 103 I understand this is reserving an arra...
by Ric
Sat 29 Feb 2020, 19:12
Forum: Graphics and Games
Topic: D3D problem
Replies: 43
Views: 7028

Re: D3D problem

Sorry i forgot to ask, does anyone have a working version of d3d9 that has the constants and definitions in it?