From: Marcus D. H. <mar...@ki...> - 2012-04-16 16:56:39
|
On Mon, Apr 16, 2012 at 12:50 PM, Tuukka Verho <tuu...@aa...> wrote: > David Lonie kirjoitti 16.4.2012 kello 18.39: > > With up to 3 clipping planes there are so many possibilities and corner > cases that it is virtually impossible to avoid all artifacts. We just have > to settle how many cases we want to cover (we don't want to end up in a > situation where 90% of drawing code in Avogadro is related to this). I was > actually a bit unsure whether drawing those "isolated" bond segments is a > good idea because they often end up being clipped in complicated ways. > Is this going into a specialized plugin, or straight into bsdyengine? I didn't look at the code, but it seems pretty specialized and I wondered what (if any) impact this would have where there is no periodic boundary. > > 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. Marcus |