Has Irrlicht trunk has hardware instancing?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Has Irrlicht trunk has hardware instancing?

Post by christianclavet »

Hi, I would like to know if the svn trunk of Irrlicht has support for HW Instancing for the openGL driver. I would like to take meshes of trees and instance them in my scene, doing this by the CPU is too slow. (600-700FPS no trees, down to 30 fps with some trees)

I've seen some thread talking about patches that were proposed to have this, but it is there?
Second question (if it was implemented): Is there any simple example on how to use it?
Thanks.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Has Irrlicht trunk has hardware instancing?

Post by hendu »

No, trunk does not have that. You can try my patch. It includes an example with a few hundred cubes.

edit: Linky: http://irrlicht.sourceforge.net/forum/v ... =2&t=48690
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Has Irrlicht trunk has hardware instancing?

Post by The_Glitch »

Will this work with direct3d9 and shader pipeline? It would be great for grass and trees and scenery.
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Has Irrlicht trunk has hardware instancing?

Post by Granyte »

Shader pipeline dx9 suppport instancing rightnow dx11 will do as soon as i upload it

OGL still need a devloper
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Has Irrlicht trunk has hardware instancing?

Post by hendu »

The_Glitch wrote:Will this work with direct3d9 and shader pipeline? It would be great for grass and trees and scenery.
Neither, but check Granyte's answer. My patch only supports GL.
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Has Irrlicht trunk has hardware instancing?

Post by The_Glitch »

Granyte wrote:Shader pipeline dx9 suppport instancing rightnow dx11 will do as soon as i upload it

OGL still need a devloper

Okay so do I just need to update my shader pipeline version then as I know mine is not the most recent version.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Has Irrlicht trunk has hardware instancing?

Post by Nadro »

After some modifications Hendu's hardware instancing patch will be part of shader-pipeline branch. The same situation applies to the texture arrays patch prepared also by Hendu.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Has Irrlicht trunk has hardware instancing?

Post by christianclavet »

Thanks! I'll try the hendu patch then. Since I need this for OGL. @Nadro, do you think these patches will have the time to be integrated in trunk when 2.0 will release? (instancing, texture arrays)
Is the support for cubemaps is implemented in trunk or it is in the shader-pipeline branch?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Has Irrlicht trunk has hardware instancing?

Post by Nadro »

@christianclavet
Yes, v2.0 will have all features from a shader-pipeline branch (hardware instancing + texture arrays too). At now cubemaps was implemented in ogl-es branch, but it will be available in trunk before v1.9 release.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Has Irrlicht trunk has hardware instancing?

Post by christianclavet »

Cool! Thanks. Will there be a simple example to use it?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Has Irrlicht trunk has hardware instancing?

Post by Nadro »

Of course, I'll add example when instancing will be ready in OGL, D3D9 and D3D11 drivers.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply