The MASM Forum

General => The Campus => Topic started by: daydreamer on March 30, 2015, 03:02:55 AM

Title: howto code d3d so its compability to win8.1
Post by: daydreamer on March 30, 2015, 03:02:55 AM
I have started coding again,have an idea to code kinda particledemo, but most old d3d code doesnt work with my win8.1 so what makes and breaks 32bit d3d code on newer os, old 32bit games seem to work
it would be boring with my SSE coded stuff be stuck with windows GDI and only option plotted pixels or 2d circles
also I remember on the other forum homer had a particledemo, how do I set right blend conditions?
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 30, 2015, 05:29:03 AM
If you want to code direct3D9, i can give you my D3D9 source (works also with windows 8.1) code of a particle example.
It's a 3D starfield done with point sprite particles and alpha blending.
First i have to clean up the code ( it's all in Dutch language )
It only uses the d3d9.lib and not the bloated d3dx9.lib.
Therefore i wrote my own math.lib and texture.lib.
Let me know if this is what you're looking for.
Title: Re: howto code d3d so its compability to win8.1
Post by: daydreamer on March 30, 2015, 06:03:52 AM
Quote from: Siekmanski on March 30, 2015, 05:29:03 AM
If you want to code direct3D9, i can give you my D3D9 source (works also with windows 8.1) code of a particle example.
It's a 3D starfield done with point sprite particles and alpha blending.
First i have to clean up the code ( it's all in Dutch language )
It only uses the d3d9.lib and not the bloated d3dx9.lib.
Therefore i wrote my own math.lib and texture.lib.
Let me know if this is what you're looking for.
I Think that is what I am looking for!
thanks

Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 30, 2015, 07:24:19 AM
It's not totally finished yet, but it has all the things you need to get you started again under win 8.1  :t

Marinus
Title: Re: howto code d3d so its compability to win8.1
Post by: Gunther on March 30, 2015, 08:43:57 AM
Hi Marinus,

thank you for sharing the code.  :t It works well under Windows 7 and 8.1. Solid work.

Gunther
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 30, 2015, 09:09:50 AM
Thank you Gunther.  :biggrin:
Title: Re: howto code d3d so its compability to win8.1
Post by: Gunther on March 30, 2015, 09:18:53 AM
You're welcome, Marinus. Do you have plans to move the code into a 64-bit version? I think that'll give some advantages.

Gunther
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 30, 2015, 09:32:10 AM
I haven't done any 64-bit coding till now, maybe some time in the future.
Title: Re: howto code d3d so its compability to win8.1
Post by: daydreamer on March 31, 2015, 05:34:06 AM
thanks marinus
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 31, 2015, 06:14:15 AM
You're welcome.  :biggrin:
Title: Re: howto code d3d so its compability to win8.1
Post by: jj2007 on March 31, 2015, 08:00:42 AM
Really nice, Marinus :t

Assembles fine, 1k shorter with JWasm.
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 31, 2015, 09:59:22 AM
 :biggrin:

9k smaller......
Title: Re: howto code d3d so its compability to win8.1
Post by: jj2007 on March 31, 2015, 09:44:18 PM
Hey Marinus, that wasn't meant as a challenge :biggrin:
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on March 31, 2015, 10:04:02 PM
I know, but i couldn't resist.  :biggrin:
Title: Re: howto code d3d so its compability to win8.1
Post by: FORTRANS on April 01, 2015, 12:28:46 AM
Hi,

   Works well with Windows 2000.  I like the full screen mode.
Very nice graphics.

Thanks,

Steve N.
Title: Re: howto code d3d so its compability to win8.1
Post by: Siekmanski on April 01, 2015, 01:11:21 AM
Thank you, although the 3d routine is not finished, it already looks nice.