Custom vertex attribute data
-
- Posts: 13
- Joined: Thu Oct 10, 2013 2:20 am
- Location: Tampa, FL
Custom vertex attribute data
Is it possible to define custom vertex attribute data for a shader in Irrlicht? In OpenGL 3 you can define a vertex buffer object and define the data structure with glVertexAttribPointer(). With Irrlicht currently using Opengl 2.1, is it possible to do something like glVertexAttribPointer() with the current material system?
Re: Custom vertex attribute data
if you are talking about what i think yes its possible but only with the FVF branch.
-
- Posts: 13
- Joined: Thu Oct 10, 2013 2:20 am
- Location: Tampa, FL
Re: Custom vertex attribute data
What is the FVF branch?
Re: Custom vertex attribute data
This is svn branch:
http://sourceforge.net/p/irrlicht/code/ ... -pipeline/
http://sourceforge.net/p/irrlicht/code/ ... -pipeline/
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Posts: 13
- Joined: Thu Oct 10, 2013 2:20 am
- Location: Tampa, FL
Re: Custom vertex attribute data
Is there a page with a write up about how this works? Looking over the branch I cannot find any examples.
Re: Custom vertex attribute data
Look at CNullDriver.cpp line: 247. You can see in this place how to declare vertex descriptor.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Posts: 13
- Joined: Thu Oct 10, 2013 2:20 am
- Location: Tampa, FL
Re: Custom vertex attribute data
Is this shader pipeline ever going to be merged into trunk?
Re: Custom vertex attribute data
GL ES pipeline comes first (people are working on that). Then 1.9 release. Then work on merging shader pipeline will start I think/hope.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm