David Lonie kirjoitti 16.4.2012 kello 20.19: > >>> Maybe Avogadro 2.0 painters could have a set of clipping planes so >>> that we could more easily draw these structures? Then we could just >>> use native GL clipping and emulate it somehow for the other >>> paintdevices... >>> >>> I would vote for this option... >>> >> I think this would be reasonable, and I think virtually all rendering >> engines have some form of clipping support that we could map to. > > Great, should we slot this in for 2.0, or should we go ahead and add > it now? I think we could do it without any API breaks. > > My only concern with this approach is that it won't close off the > cylinders, leading to odd backface culling artifacts. > > Dave
No, you can also close the cylinders. First you draw the pixels of the cylinder that are inside the clipping box, then you draw the parts of the clipping box that are inside the cylinder. Voila! - Tuukka ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Avogadro-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avogadro-devel
