PDA

View Full Version : Direct3D without D3DX**.DLL



Georgy
18-04-2008, 12:29 PM
Here is my first DirectX program (source + exe 60kb):
http://igrodel.ru/api/1_d3d_textures.zip (60kb)

chronozphere
18-04-2008, 04:37 PM
Huh... looks like the archive ends unexpectedly (i got an error about this).

Can you re-upload your archive? I'm anxious to see how you got rid of those huge D3DX*.dll's. :razz:

Georgy
19-04-2008, 02:54 AM
AAAaaa! That's true, file was broken. I reuploadet it! =)

chronozphere
19-04-2008, 04:29 PM
Just took a brief look at your code, and it looks nice. :)

However, it's far to much work to replace all D3DX routines with home-made ones. Not to mention all the optimizations you have to write (SSE 'n stuff) in order to get the same performance as usual Direct3d apps.

But for ppl who do not use many the D3DX functions, this would be a very good alternative. ;)

Good work!

LP
19-04-2008, 07:39 PM
You might want to check Asphyre eXtreme and/or Asphyre Casual as both don't need D3DX for 2D/3D stuff. For that matter, Asphyre 4.1 requires D3DX because of HLSL shaders, which cannot be used in any other way.

P.S. You might want to read Open Source license statements prior to "ripping out code from various sources" (tinyd3d.pas), as you are most likely violating some author's rights by doing so, which is a looser attitude. If you got something for free, at least do a little favor and credit the original author.

Georgy
20-04-2008, 01:21 AM
Lifepower, all credits are already given.
Tinyd3d.pas source code ripped out from http://labo.xo-ox.net/ blog
By the way, it's in japanese, i don't know japanese, so i give only a link to his/her www in the top of tinyd3d.pas. :D

Georgy
20-04-2008, 01:44 AM
just reviewed Asphyre source code. Very good source to learn some basics of DirectX, D3D.

arthurprs
20-04-2008, 02:16 AM
just reviewed Asphyre source code. Very good source to learn some basics of DirectX, D3D.

i think that is the idea of open source

Georgy
21-04-2008, 04:10 AM
Mesa (gl) source code is very interesting to understand gluperspective and glulookat and apply them to DirectX HAHAHA =)

cronodragon
21-04-2008, 02:58 PM
Interesting. :D Is it possible to create a ID3DXSprite without D3DX?

chronozphere
21-04-2008, 06:40 PM
Ofcourse.. ID3DXSprite is only a vertexbuffer wrapper. You can easily make your own class that renders a quad with rotation/scale and texture coordinate control. How else do you think i managed to make a dx-based 2d engine without ID3DXSprite. ;)