Page 1 of 1

Triangle strip and primitive restart

Posted: Tue Jan 30, 2018 6:52 pm
by sergio
Hi all
i'm new to ogre3d. This is my first post and i have a question.
It is possible in Ogre3D to draw a mesh manually with tringle strips and primitive restart?

Re: Triangle strip and primitive restart

Posted: Wed Jan 31, 2018 2:24 pm
by paroj
for 1.10 GL_PRIMITIVE_RESTART_FIXED_INDEX is enabled by default when you use the GLES2 RenderSystem in GLES3 mode.

It would be trivial to enable this with GL3Plus as well.

Re: Triangle strip and primitive restart

Posted: Wed Jan 31, 2018 5:55 pm
by sergio
Hi, tank you for your reply.
I've compiled 2.1 version with visual studio 2017.
I'm totally ignorant about the engine. I have to learn.
Can u link me some snippet how to do that? I want use very basic functionality (at the moment) of Ogre, like ManualObject
and setup buffers and create and draw meshes in a simple way.

Re: Triangle strip and primitive restart

Posted: Thu Feb 01, 2018 12:29 am
by paroj
the primitive restart is globally enabled here:
https://github.com/OGRECave/ogre/blob/m ... .cpp#L1814

for manually creating the underlying buffers see this:
http://wiki.ogre3d.org/Generating+A+Mesh

but this is for 1.10 and 2.1 is very different, so you probably will have to wait for dark_sylinc to come by.