sverchok
sverchok copied to clipboard
Bgl replacement (and other 3.5 / 4.0 curiosities)
alternative bgl abstraction.
continuation of https://github.com/nortikin/sverchok/pull/4936
- [x] remove bgl from current node set and modules/utils
- [x] adjust
blf.text
to handle 3 vs 2 parameters - [ ] implement texture/image loading for texture/buffer using nodes (texture viewers and console node)
- https://docs.blender.org/api/4.0/gpu.types.html
- affected nodes ( TextViewer, TVLite, Stethoscope ( nice mode ), Console Node ) , These are not the most
essential nodes but
- "nice mode" for
stethoscope
is pretty cool and if I get that to work then console node will also work automatically (they share the same code) -
Texture Viewer
nodes use some Gl code to place the texture in a state to receive data which i'm only tangentially familiar with :)
- "nice mode" for
- [x] bug fix front_facing polygon drawing thru
-
lines are not being obscured by polygons.
-
- [x] polygon offset alternative
- [x]
avoid z-fighting
( proof of concept: at the moment implements a normal shader in custom-shader mode ) - [ ] reimplement custom shader
- [ ] implement shader for flat/facet/smooth
- [x]
Node | works in < 4.0 | works in > 4.0 | feature parity | issue |
---|---|---|---|---|
Viewer Draw | yes | yes | no | zfighting lines |
Stethoscope MK2 | yes | yes | no | advanced drawing to buffer not implemented, no colour highlighting |
Matrix View | yes | yes | maybe | plane seems to always draw |
Viewer Index | yes | yes | yes | ... |
Viewer 2D | yes | yes | yes | ... |
Viewer Draw Curve | yes | yes | yes | ... |
Viewer Draw Surface | yes | yes | yes | ... |
Texture Viewer | yes | ? | ? | ? |
Texture Viewer Lite | yes | ? | ? | ? |
SvWaveformViewer | yes | yes | yes | ... |
Console Node | yes | ? | ? | ? |
Solid Viewer (did not test) | yes | ? | ? | ? |
Easing 0..1 | yes | yes | yes | ... |