D3D9 Lessons

Discussions related to graphics (2D and 3D), animation and games programming
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

D3D9 Lessons

Post by Ric »

Dear all,

Finally got round to producing these.

https://1drv.ms/u/s!AqibHqCkE1VQgetjcHw ... Q?e=O1UHt3

D3D9 lessons converted from DirectXTutorial.com

Happy Viewing

Regards Ric
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
DDRM

Re: D3D9 Lessons

Post by DDRM »

Thanks, Ric. I'll be interested to have a look through these. A quick look shows you solved the use of arrays of structures! ;-)

I found it crashed when I exited (pressing space terminated the program, but it took BB4W down with it...).

Best wishes,

D
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Re: D3D9 Lessons

Post by Ric »

Yeah, I can't figure out why they crash on close. They all seem to work first time, but then randomly crash on the next few closures.
Thanks, I did sort the structure issue.
Feel free to investigate the crashing, it must be much of nothing, just can't see it. If you find it I'll update all the files and repost.
Regards Ric
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
DDRM

Re: D3D9 Lessons

Post by DDRM »

What does

Code: Select all

      DEF PROCd3ddev_set

      !(^d3ddev{}+4) = !d3ddev%

      ENDPROC
do?
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Re: D3D9 Lessons

Post by Ric »

Hi D,
Is sets the pointer to the bb4w structure to the device pointer so that the SYS d3ddev.function, d3ddev% statements work with bb4w structures.

Hope that's said in a clear way😁 Not sure how else to explain it.

Regards Ric

Ps. In essence it is just to make the code more readable.
SYS d3ddev.Release%, d3ddev%
Would read
SYS !(!d3ddev%+8), d3ddev%

It also relieves the requirement to know what all the offsets are by number.
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Re: D3D9 Lessons

Post by Ric »

Evening all who read this,

DDRM, did you (or anyone else) manage to find what was crashing the D3D9 programs?

Regards Ric
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
DDRM

Re: D3D9 Lessons

Post by DDRM »

Been doing my exams - I had a quick look at the code, and it seemed long and complex, so I parked it, I'm afraid. I'll have another look, and see if I can work out what you've done...

:-)

D
DDRM

Re: D3D9 Lessons

Post by DDRM »

Of course now they won't crash at all!

:-)

D
Ric
Posts: 208
Joined: Tue 17 Apr 2018, 21:03

Re: D3D9 Lessons

Post by Ric »

Hope the exams went/are going well DDRM. If it helps, the fault starts when buffers are introduced.

Regards Ric
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023