Page 38 of 51

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Sep 24, 2014 11:58 am
by AReichl
yes i thought so, BUT:

in D3D9 and OpenGL drivers you have the function 'drawMeshBuffer',
but in D3D11 (which is the NEW part in Irrlicht) you still have 'drawVertexPrimitiveList'.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Sep 24, 2014 1:39 pm
by robmar
But was it necessary to remove it?

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Sep 24, 2014 3:09 pm
by Nadro
D3D11 need some updates (as I know Granyte currently working on that). drawVertexPrimitiveList didn't provide any advantages against drawMeshBuffer in shader-pipeline branch, thats why this method was removed. drawMeshBuffer is also much more safe.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Sep 25, 2014 5:01 am
by Granyte
on dx11 drawing without a mesh buffer was slowing things down

I only need to figure why the dx11 driver only allow for 2 texture layers no more befor I upload patches

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Sep 25, 2014 5:20 am
by kklouzal
4 years after the 'finally, a directx 10 video driver' thread we get a dx11 driver, makes sense! :D

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Sep 25, 2014 9:09 am
by robmar
These things take time, its complex and no one´s being paid! :P

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Sep 25, 2014 9:42 am
by kklouzal
Haha was trying to make a joke ;) Yes I'm very grateful for everyone's contributions!

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sun Sep 28, 2014 11:11 am
by AReichl
Rework of example 3 "custom scene node" for shader-pipeline. Only works with OpenGL, DirectX 9.

Because the function 'drawVertexPrimitiveList' is "deprecated" in shader-pipeline i rewrote example 3 to use 'drawMeshBuffer'.
First time i do such a "low-level" thing so probably there is a better solution.

in class declaration:

scene::IVertexBuffer *VertexBuffer;
scene::IIndexBuffer *IndexBuffer;
+ scene::CMeshBuffer<video::S3DVertex> *MeshBuffer;

in constructor of CSampleSceneNode:

VertexBuffer = new scene::CVertexBuffer<video::S3DVertex>();
IndexBuffer = new scene::CIndexBuffer(video::EIT_16BIT);
+ MeshBuffer = new scene::CMeshBuffer<video::S3DVertex>( Descriptor );

...
IndexBuffer->addIndex(1);

+ MeshBuffer->setVertexBuffer( VertexBuffer, 0 );
+ MeshBuffer->setIndexBuffer ( IndexBuffer );
or in one function
+ MeshBuffer->append( VertexBuffer, 0, IndexBuffer );

in virtual void render():

// driver->drawVertexPrimitiveList( VertexBuffer, IndexBuffer, Descriptor, 4, scene::EPT_TRIANGLES );
+ driver->drawMeshBuffer( MeshBuffer );

Is this ok so?

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sun Sep 28, 2014 4:15 pm
by Granyte
it's fine the only thing I would change is use the getvertexbuffer and getindexBuffer method from the mesh buffer instead of creating new ones and replacing those inside the meshbuffer

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sun Oct 19, 2014 1:04 pm
by robmar
Is the dx11 driver working with the main examples under win 7?

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sun Oct 19, 2014 4:09 pm
by Nadro
D3D11 driver is still broken, we're waiting for Granyte's patch.

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sun Oct 19, 2014 6:34 pm
by robmar
Okay thanks for the update!

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Sun Oct 19, 2014 6:56 pm
by Granyte
I just need to figure why the driver is limited to 2 texture layers and ill push it out

but that will likely have to wait until November due to school and work

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Wed Dec 10, 2014 2:12 am
by robmar
Hi, did you manage to find time to sort it? If not, I´ll do it, that is if I can download it! :)

Re: Finally, a DirectX 10 video driver for Irrlicht

Posted: Thu Dec 11, 2014 4:44 am
by Granyte
no I haven't yet but my finals end next week ill upload them then