Welcome! Log In Create A New Profile

Advanced
Re: Drawing conditional lines
avatarMay 10, 2013 12:13PM
Hi Alex, Long time no read :)

@Santeri

I use Alex' excellent approach in my LDCad, you can see the shader code in the resources folder of it's installation.

The geometry shader approach is the most efficient on paper but on older cards/drivers it's actually slower then the vs one.

The vs approach works on almost any gl platform, but it takes a whopping 5 attributes (incl pos) per vertex, and as a result wastes quite some memory and completely messes up your index re usage, But the performance you get is all all worth it :)
SubjectAuthorViewsPosted
Sticky Drawing conditional lines (14 Posts) Santeri Piippo594May 08, 2013 12:24PM
Sticky Re: Drawing conditional lines (0 Posts) Travis Cobbs255May 08, 2013 01:46PM
Sticky Re: Drawing conditional lines (0 Posts) Tim Gould232May 08, 2013 02:20PM
Sticky Re: Drawing conditional lines (0 Posts) Travis Cobbs259May 08, 2013 03:32PM
Sticky Re: Drawing conditional lines (0 Posts) Santeri Piippo275May 08, 2013 03:41PM
Sticky Re: Drawing conditional lines (0 Posts) Travis Cobbs252May 08, 2013 04:10PM
Sticky Re: Drawing conditional lines (0 Posts) Santeri Piippo246May 08, 2013 03:03PM
Sticky Re: Drawing conditional lines (0 Posts) Alex Taylor266May 10, 2013 09:00AM
Sticky Re: Drawing conditional lines (0 Posts) Roland Melkert250May 10, 2013 12:13PM
Sticky Re: Drawing conditional lines (0 Posts) Santeri Piippo268May 10, 2013 12:27PM
Sticky Re: Drawing conditional lines (0 Posts) Roland Melkert329May 10, 2013 01:50PM
Sticky Re: Drawing conditional lines (0 Posts) Steffen171November 27, 2014 05:33PM
Sticky Re: let's make this thread sticky (0 Posts) Tim Gould184November 27, 2014 08:08PM
Sticky Re: Drawing conditional lines (0 Posts) Nils Schmidt94December 26, 2014 05:07AM



Sorry, only registered users may post in this forum.

Click here to login