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?
Triangle strip and primitive restart
-
- OGRE Team Member
- Posts: 1994
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1074
- Contact:
Re: Triangle strip and primitive restart
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.
It would be trivial to enable this with GL3Plus as well.
-
- Gnoblar
- Posts: 2
- Joined: Tue Jan 30, 2018 6:39 pm
Re: Triangle strip and primitive restart
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.
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.
-
- OGRE Team Member
- Posts: 1994
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1074
- Contact:
Re: Triangle strip and primitive restart
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.
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.