OGRECave / ogre-procedural

procedural geometry for Ogre3D

Home Page:https://ogrecave.github.io/ogre-procedural/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Submesh for RoundedBox

GoogleCodeExporter opened this issue · comments

It will be helpful if the shapes are made of sub meshes so that it is possible 
to apply different texture to all the faces.

e.g apply texture to front of cube and another texture to back face of cube.

Original issue reported on code.google.com by sarbjit....@gmail.com on 10 May 2012 at 6:46

Ok, I think I get the use case..
First, we don't want to produce n submeshes as a default option: too many 
batches hurt performance badly.
A more generalised way of handling this would be to assign labels to parts of a 
triangle buffer. Some options in the final TriangleBuffer->Ogre Mesh would 
allow separation between several submeshes.

Original comment by michael.broutin@gmail.com on 10 May 2012 at 8:19

  • Changed state: Accepted
  • Added labels: Difficulty-Medium, Milestone-0.3, Type-Enhancement
  • Removed labels: Type-Defect
Any progress on this one. Is there any workaround that I can use.

Original comment by sarbjit....@gmail.com on 16 Jul 2012 at 9:19

Hi,
The modification to OgreProcedural I'm considering is rather long-term, please 
don't hold your breath ;)
I explained a workaround for a similar request in Ogre forums : 
http://www.ogre3d.org/forums/viewtopic.php?f=11&t=60773&start=225#p459734
It's just one way to do it, but the idea is that you'll need either to modify 
roundedbox or create a copy of it in your project, and adapt it to your needs.. 
there's no "no-code" solution at the moment, I'm afraid...
Just tell me if you're stuck.

Original comment by michael.broutin@gmail.com on 16 Jul 2012 at 9:36

This issue is tied with that one : 
http://code.google.com/p/ogre-procedural/issues/detail?id=129

Original comment by michael.broutin@gmail.com on 25 Sep 2012 at 8:33

Original comment by michael.broutin@gmail.com on 4 Jan 2013 at 11:50

  • Changed state: Duplicate