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 » Tue Jan 30, 2018 6:52 pm

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?
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 567
Joined: Sun Mar 30, 2014 2:51 pm
x 81
Contact:

Re: Triangle strip and primitive restart

Post by paroj » Wed Jan 31, 2018 2:24 pm

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.
0 x

sergio
Gnoblar
Posts: 2
Joined: Tue Jan 30, 2018 6:39 pm

Re: Triangle strip and primitive restart

Post by sergio » Wed Jan 31, 2018 5:55 pm

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.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 567
Joined: Sun Mar 30, 2014 2:51 pm
x 81
Contact:

Re: Triangle strip and primitive restart

Post by paroj » Thu Feb 01, 2018 12:29 am

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.
0 x

Post Reply