Triangle strip and primitive restart

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
sergio
Gnoblar
Posts: 2
Joined: Tue Jan 30, 2018 6:39 pm

Triangle strip and primitive restart

Post 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?
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Triangle strip and primitive restart

Post 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.
sergio
Gnoblar
Posts: 2
Joined: Tue Jan 30, 2018 6:39 pm

Re: Triangle strip and primitive restart

Post 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.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Triangle strip and primitive restart

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