Custom vertex attribute data

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
afuzzyllama
Posts: 13
Joined: Thu Oct 10, 2013 2:20 am
Location: Tampa, FL

Custom vertex attribute data

Post by afuzzyllama »

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?
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Custom vertex attribute data

Post by Granyte »

if you are talking about what i think yes its possible but only with the FVF branch.
afuzzyllama
Posts: 13
Joined: Thu Oct 10, 2013 2:20 am
Location: Tampa, FL

Re: Custom vertex attribute data

Post by afuzzyllama »

What is the FVF branch?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Custom vertex attribute data

Post by Nadro »

Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
afuzzyllama
Posts: 13
Joined: Thu Oct 10, 2013 2:20 am
Location: Tampa, FL

Re: Custom vertex attribute data

Post by afuzzyllama »

Is there a page with a write up about how this works? Looking over the branch I cannot find any examples.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Custom vertex attribute data

Post by Nadro »

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
afuzzyllama
Posts: 13
Joined: Thu Oct 10, 2013 2:20 am
Location: Tampa, FL

Re: Custom vertex attribute data

Post by afuzzyllama »

Is this shader pipeline ever going to be merged into trunk?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Custom vertex attribute data

Post by CuteAlien »

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
Post Reply