Octahedron Request

Avatar
  • updated
  • Under Consideration

I was recently tasked to add octahedrons like blender's as bone visualizations. My solution is rather verbose and immediate mode only. As a test I just swapped my own solution with Shapes and it took very little code and very little time(kudos for that btw!!! I also integrated it on another project as well with little effort as well). I'm using Cones right now as an alternative in the Shapes version, but they are more expensive than the 6vert 8tri octahedron I'm using in the custom solution.

Would you be willing to add the Octahedron?

Also, I'm using a baked blender-style octahedron, but I imagine you can add variations to it, much like Disk, which take into account thickness and if you can also make the central ring of vertices move towards the extreme verts, you can also get a pyramid at a very low overhead(the pyramid would need 1 vert and 3 tris less, but I guess it's a small price to pay for an additional shape).

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Avatar
nikos patsiouras
Quote from Freya Holmér

I might add a polyhedron Shape! where you can switch between common ones, as well as configure the radius and color, but I don't think I'd add only an octahedron on its own, it seems very specific and not very useful for most cases. as for being able to modify vertices of the octahedron, I think if I make this general polyhedron version, it too seems a little oddly specific for that one shape, and I'm not sure what those would even mean for the other polyhedra

I'm mostly thinking of those shapes as debug viz. True, it is kind of specific.

Consideration is fine with me. If it makes it great, otherwise, I'm sure I can think of other uses :).

Thx, anyway.

Avatar
Freya Holmér creator
  • Under Consideration

I might add a polyhedron Shape! where you can switch between common ones, as well as configure the radius and color, but I don't think I'd add only an octahedron on its own, it seems very specific and not very useful for most cases. as for being able to modify vertices of the octahedron, I think if I make this general polyhedron version, it too seems a little oddly specific for that one shape, and I'm not sure what those would even mean for the other polyhedra