Can vertices and polygons display on OGL this way?
5889 4 1- probiner
- Member
- 340 posts
- Joined: June 2013
- Online
- vleermeneer
- Member
- 245 posts
- Joined: Sept. 2011
- Offline
- zarti
- Member
- 330 posts
- Joined: July 2007
- Offline
probiner
Always wanted a OpenGL Toplogy valence display mode like above.
..
hi probiner ,
here i made a digital asset for you .
this is the ' most-not-procedural ' way of doing it , but even so it was easy to build and has basic control over its ‘GUI’ .
in order to have a more flexible digital asset , the best way to build it wd be to use multiparm controls with a lot of extra controls per group .
but even as it is ( my version ) you can add those extra features without the need to script .
–
additionally , i was incapable to color the points separately .
maybe some other forum member might help you ‘there’ or Hou's OGL might be incapable to do that .
–
keep in mind that my otl was build on H11 and i hope there is no prob for you if you are using a H12+ version .
+ , there is a test geometry file attached in case you do not have one for quick testing .
.cheers
except the things that cannot be seen , nothing is like it seems .
- Anonymous
- Member
- 678 posts
- Joined: July 2005
- Offline
- AdamT
- Member
- 184 posts
- Joined: June 2010
- Offline
A Python version with Point support.
Much slower than the pure SOP and HDK approaches…difference may be largely unnoticeable unless you're feeding it to very dense geometry, and making changes upstream. It would certainly benefit a lot from inline CPP or Vex, but these are still on my rainy day list.
Add custom display options for attributes Ps (Point, text) and Ec (Prim, text) to get numbering.
Sadly, it seems sprites outside of POP networks can only be rendered in Mantra, so point representations are a no-go, outside the HDK at least…if anyone thinks I'm wrong about that, please let me know.
Also, you can only visualise Point or Prim coloring, not both at the same time, for obvious reasons!
Attached zip contains both test scene + .otl
It's not the most elegant coding, so feel free to point out the errors in my ways
Much slower than the pure SOP and HDK approaches…difference may be largely unnoticeable unless you're feeding it to very dense geometry, and making changes upstream. It would certainly benefit a lot from inline CPP or Vex, but these are still on my rainy day list.
Add custom display options for attributes Ps (Point, text) and Ec (Prim, text) to get numbering.
Sadly, it seems sprites outside of POP networks can only be rendered in Mantra, so point representations are a no-go, outside the HDK at least…if anyone thinks I'm wrong about that, please let me know.
Also, you can only visualise Point or Prim coloring, not both at the same time, for obvious reasons!
Attached zip contains both test scene + .otl
It's not the most elegant coding, so feel free to point out the errors in my ways
-
- Quick Links