Finally, a DirectX 10 video driver for Irrlicht

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
evandromillian
Posts: 40
Joined: Wed Apr 01, 2009 11:45 am
Location: São Paulo - Brazil

Post by evandromillian »

Hi amerthebest,

Yes, the code is wrong, thanks for help.

The driver is not working well with particles and 2D rendering, and shadows wasn't implemented yet. I was working in another new features, but I will return and complete basic features of the driver.

And thanks fmx, I will post FVF in that topic.
Next generation for Irrlicht!!!!!
evandromillian
Posts: 40
Joined: Wed Apr 01, 2009 11:45 am
Location: São Paulo - Brazil

Post by evandromillian »

Now we started playing with DirectX 11:

Image

This image is the ParticleGS sample from DirectX SDK, ported to Irrlicht. This sample uses the stream output funcionality to process and draw particles entirely in GPU, instead of CPU animation.

For this, I added the method to IVideoDriver:

Code: Select all

virtual void drawAuto(IHardwareBuffer* vertices, E_VERTEX_TYPE vType = EVT_STANDARD, 
				scene::E_PRIMITIVE_TYPE pType = scene::EPT_TRIANGLES) = 0;
And this method to IMaterialRendererServices:

Code: Select all

virtual bool setStreamOutputBuffer(IHardwareBuffer* buffer) = 0;
With this, we can create particle systems passing a material ID and affectors that will be just like shader callbacks.

As usual for this project, this feature is only implemented for DirectX 11 driver, but is possible to implement for OpenGL 3. With more effort, can be implemented for DirectX 9, using ATI R2VB or texture fetches on vertex buffer.

I wait your comments.
Next generation for Irrlicht!!!!!
Darktib
Posts: 167
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

Post by Darktib »

Wow, impressing! This feature could prove very useful for particle engines like SPARK.

Very promising project, keep the good work!
amerthebest
Posts: 2
Joined: Thu Nov 30, 2006 10:57 am

Post by amerthebest »

Very nice.

Next demo would be nice some Compute shader and tesselations.

:)
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

Post by zerochen »

hi

any progress or is this project dead?
evandromillian
Posts: 40
Joined: Wed Apr 01, 2009 11:45 am
Location: São Paulo - Brazil

Post by evandromillian »

Hello,

No, this project is not dead, it's only sleeping. My work is taking too much time.

But I'm thinking to create a fork with this project, because there's too much changes from original code, see:

- hardware buffers
- variable vertex type
- stream output/feedback
- multisample and texture array
- no fan triangle type (cause DX11 doesn't supports)
- compute shader (planning)

In next days you'll receive news
Next generation for Irrlicht!!!!!
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Post by 3DModelerMan »

Oh good. I started writing one my self the other day, but I'm glad this one is going to be finished instead. What's left to do on this one?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
ramin
Posts: 1
Joined: Thu May 12, 2011 2:28 pm

Post by ramin »

Hey guys,

Thinking of contributing to the project. DX11 is good as I'm interested but not much experience with IRR or DX11.

Any other areas ? what's here to do ?
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by sio2 »

This lib is a nice starting point. It took a bit of work to get to get the source to compile and render stuff but I got a little test app working with my own Quake3 BSP scene node. Screenie (I also posted to the July screenshot of the month compo):

Image
Yoran
Site Admin
Posts: 96
Joined: Fri Oct 07, 2005 8:55 am
Location: The Netherlands
Contact:

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by Yoran »

Just wanted to say, keep up the good work!
Hope you'll finish it and submit us the patch so we can integrate it.
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by Granyte »

is anything new happening with this?

or is there any dx10/11 driver planed or being devloped?
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by ACE247 »

I don't think anything is happening... :(
Irrlicht needs a massive redesign to just even support DX10/11 or OpenGL higher than 2, and that's not happening right now.

We could maybe make a branch here though, Irrlicht Lite and Irrlicht maybe? with Lite having the old fixed function methods and being updated with features that it can support that are added to Irrlicht, with Irrlicht being upgraded to new standards.

Because in all honesty Irrlicht as is now has about all the features it's going to need as a DX9/OpenGL 2 Fixed Function Renderer Engine, I'd say its time again to make some hard decisions and move forward before Irrlicht drops so far behind that any attempt of modernizations are too complex.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by Cube_ »

I'd want to see OpenGL 4.2 support in irrlicht ^^*
If one were to enable it.

is there any function that makes sure that the game wouldn't crash for people that can't support the latest openGL? (That would be. supporting every OpenGL version from x.x-4.2 and letting the engine load only what the available driver could handle)
"this is not the bottleneck you are looking for"
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by serengeor »

aaammmsterdddam wrote:I'd want to see OpenGL 4.2 support in irrlicht ^^*
If one were to enable it.

is there any function that makes sure that the game wouldn't crash for people that can't support the latest openGL? (That would be. supporting every OpenGL version from x.x-4.2 and letting the engine load only what the available driver could handle)
Afaik there is a function which can retrieve the supported version by the card/?driver?. The biggest problem would be to adapt current irrlicht to work with new opengl/directx.
Working on game: Marrbles (Currently stopped).
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Finally, a DirectX 10 video driver for Irrlicht

Post by Granyte »

well irrlicht will need to make the jump one day or the other or it will go extinct


yes such function exist in dx and opengl
Post Reply