Jump to content


Photo

D3d9 Wrapper


  • Please log in to reply
28 replies to this topic

#1 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 18 July 2007 - 07:41 PM

THE Direct3D9 WRAPPER

:) now it's still unfinished but it has got primary drawing functions :D
;) enjoy!!! :)

there are no scripts to use, you will need to make them or use external_call...
sample: WASD - move, mouse - look around
functions are very low-level so you must know something about directx

notes - the _d3d_end function is not tested and it may not work
this renderer supports unfinished bumpmapping, and ambient(not changeable now), diffuse and specular lighting!
!!!!!this dll needs directx9 - mostly the d3dx9_32.dll file which will be in directx 9 installations!

sorry but my pc can't run windows xp so i can't give .gm6 file, only .gmk

DOWNLOAD: Executable
DOWNLOAD .gmk zipped
DOWNLOAD the .dll file zipped with 3 images (textures)
^ so that anyone could try the dll! ^
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#2 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 18 July 2007 - 08:56 PM

Sweet. Now I don't have DX9, but if I install it and use this, will the z-buffer work better than DX8?
  • 0

#3 NEED HELP sorta

NEED HELP sorta

    GMC Member

  • New Member
  • 1501 posts

Posted 18 July 2007 - 09:23 PM

I don't have DX9, but this is an awesome accomplishment.
  • 0
http://img159.images...025/scr1ea8.png
http://img374.images...944/scr2hf6.png
Alagaesia Online - Not yet released.

You can bring the release date closer, by helping at the following topics:
Intro Narration
Music Topic

#4 xygthop3

xygthop3

    You may know me from such forums as "Shaders"

  • GMC Member
  • 3367 posts
  • Version:GM:Studio

Posted 18 July 2007 - 10:22 PM

This is great, and I love how d3d9 automatically does mipmapping so perfectly.

Can't wait to see more functions, great work.
  • 0

#5 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 19 July 2007 - 12:17 AM

I like this one. I think there's already been a dx9 dll but this could come out better and faster.
  • 0
GM 8.1 / GM:HTML5 User

#6 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 19 July 2007 - 07:44 AM

thank you!
i plan to add dot3 bumpmapping to this dll as soon as i can..
i will try to make the same surfaces as in gm - maybe with render to surface function - so there will be chances of good effects!
the z-buffer works here, it has no reason to switch off but i'll add the render state setting function so everyone who want's to do this, can switch the zbuffer, culling, lighting, shading and other things!

i will try to make this dll as pure renderer not an engine so this dll won't be capable of calculating physics, using simple movement, using bsp etc.

now this dll can make and render primitives, edit material and texture slots (i used slots to remove chance of using large amount of memory and to add chance of changing any slot whenever possible!

soon i'll try to add a new example of displaying models to test the rendering speed... i'll add grouping to renderer - all the things that are allowed to be drawn and have the same transformation applied will draw at the same time reducing count of DrawPrimitive functions called

Edited by them4n!ac, 19 July 2007 - 07:47 AM.

  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#7 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 20 July 2007 - 04:07 PM

i've added shaders 2.0 to this dll!
i can't use lower version because the shader compiler is too new! it didn't allow me to compile 1.1 shaders so they could work on older graphics cards too!
now my renderer's lighting and texturing are built only on shaders! sorry to those who expected to use only fixed-function rendering...

now - if at least 10 people wants to see the new dll, i'll upload it!

later - i'm adding bump mapping to this renderer, it should be finished in a week or less!
  • 1
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#8 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 20 July 2007 - 08:34 PM

i've finished bumpmapping! this was fast!
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#9 tha master

tha master

    GMC Member

  • New Member
  • 84 posts

Posted 20 July 2007 - 09:07 PM

i think this is just me being stupid but i keep getting this "Error defining an external function.". there is no DLL in the zip, i tried it with "d3dtest.dll" but i still get it..
  • 0
Working on my new website: http://demontunes.com/
Posted Image

#10 xygthop3

xygthop3

    You may know me from such forums as "Shaders"

  • GMC Member
  • 3367 posts
  • Version:GM:Studio

Posted 20 July 2007 - 10:25 PM

I can wait for a few more functions, but a new screenshot would be nice.
  • 1

#11 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 21 July 2007 - 08:46 AM

i think this is just me being stupid but i keep  getting this "Error defining an external function.".  there is no DLL in the zip, i tried it with "d3dtest.dll"  but i still get it..

<{POST_SNAPBACK}>

do you have the newest directx installed? if not - i've said earlier what directx file is used by the dll!
xygthop3 - here's a screenshot for you - Posted Image
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#12 tha master

tha master

    GMC Member

  • New Member
  • 84 posts

Posted 21 July 2007 - 09:41 AM

i have Directx 9 c...
  • 0
Working on my new website: http://demontunes.com/
Posted Image

#13 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 21 July 2007 - 09:50 AM

anyway download and install the newest! now everyone has directx9.0c - the update month and year are important! you need the "d3dx9_32.dll" file - you can download it either with the newest directx or just seek for it in google! that dll is about 3.2 MB big!
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#14 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 04 August 2007 - 09:35 PM

now - advanced drawing system (in many parts almost like in gm but more parts!!), obj loader supports 999 vertices max for now... and soon i'll get to more functions so the dll will render nice pictures :)
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#15 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 04 August 2007 - 09:45 PM

I found the download link :)

d3dx9_32.dll

Cool! After I installed the DLL, I have found that d3dx9 does perfect mip-mapping. :)

Anyway, great wrapper.

Edited by the_doominator, 04 August 2007 - 09:50 PM.

  • 0

#16 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 04 August 2007 - 09:48 PM

Don't foget that GM is based of directx.
  • 0

#17 Ivo Georgiev

Ivo Georgiev

    GMC Member

  • New Member
  • 274 posts

Posted 05 August 2007 - 07:54 PM

"Unexpected error while running the game."
Not a GM error message, a windows message.
  • 0

#18 the_doominator

the_doominator

    Eight Star

  • New Member
  • 925 posts

Posted 05 August 2007 - 11:04 PM

"Unexpected error while running the game."
Not a GM error message, a windows message.

<{POST_SNAPBACK}>

You proably don't have the d3dx9_32.dll installed in your system folder.
  • 0

#19 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 07 August 2007 - 09:37 AM

or in the dll folder..

i have almost made all the simple functions easy, color in cpp is the same as reverse color (b/g/r) in gamemaker! easy..
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#20 Ivo Georgiev

Ivo Georgiev

    GMC Member

  • New Member
  • 274 posts

Posted 07 August 2007 - 09:53 AM

"Unexpected error while running the game."
Not a GM error message, a windows message.

<{POST_SNAPBACK}>

You proably don't have the d3dx9_32.dll installed in your system folder.

<{POST_SNAPBACK}>

The problem is that i have...
  • 0

#21 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 08 August 2007 - 04:01 PM

1. that is GM message not windows message!
2. you must have directx9 and a graphics card that supports it!
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#22 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 08 August 2007 - 05:33 PM

1. Proof of that: How could windows know that the program is a game?
  • 0

#23 them4n!ac

them4n!ac

    GMC Member

  • New Member
  • 1170 posts

Posted 08 August 2007 - 06:20 PM

that's what i think too! :lol:
  • 0
what do you xpect to see here? another signature?
Cloud texture generator / renderer

#24 Philosopher

Philosopher

    GMC Member

  • New Member
  • 14 posts

Posted 28 February 2008 - 05:09 PM

I have the latest version of DirectX9c (4.9.00.0904) and the shaders don't work for me. (the texture is rendered as a very dark gray.)

Edited by Philosopher, 28 February 2008 - 05:21 PM.

  • 0

#25 nicoulas

nicoulas

    GMC Member

  • New Member
  • 53 posts

Posted 03 July 2008 - 03:02 PM

are you still worling on this engine ? :P
  • 0

#26 Painless

Painless

    GMC Member

  • New Member
  • 15 posts

Posted 07 July 2008 - 08:14 PM

This is not an engine, this is a wrapper.

Anyway you're doing a good work, keep it up.

Can you make an small demo of the Bumpmapping?

Thanks.
  • 0

#27 Rexhunter99

Rexhunter99

    GMC Member

  • GMC Member
  • 924 posts
  • Version:GM:Studio

Posted 08 July 2008 - 05:43 AM

This is not an engine, this is a wrapper.

Anyway you're doing a good work, keep it up.

Can you make an small demo of the Bumpmapping?

Thanks.

OLD TOPIC, he canceled this.
  • 0

Posted Image EpicZen, Games, Tutorials and more!


#28 Tha_14

Tha_14

    GMC Member

  • New Member
  • 174 posts
  • Version:GM8.1

Posted 16 April 2011 - 06:22 PM

I got the same Problem.
  • 0

Posted Image


#29 HelpMyFellowPeople

HelpMyFellowPeople

    GMC Member

  • GMC Member
  • 281 posts
  • Version:GM8

Posted 17 September 2011 - 12:50 AM

Please continue this! It is really good!
  • 1
-------------------------
Helping People Since Now!

If you need any help with scripts, ask me and ill try to help you!

~HMFP