Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
49 user(s) are online (31 user(s) are browsing Forums)

Members: 4
Guests: 45

Raziel, Torque, NinjaCyborg, kas1e, more...

Headlines

Report message:*
 

Re: Help me in compiling latest pixman and cairo graphics

Subject: Re: Help me in compiling latest pixman and cairo graphics
by thellier on 2017/9/28 13:27:54

Hello

>render 6 triangles: the first fixed size 2 for the line's start, then the stretched main line, then the fixed size end.

Nice Idea


A------B----------------C------D
--------------------------------
-----######################-----
----########################----
--###########################---
--############################--
--###P####################Q###--
--############################--
--###########################---
----#########################---
-----######################-----
--------------------------------
H------G----------------F------E


Triangles:

ABG
AGH
BCF
BFG
CDE
CEF

But lines with width (pen) = 1 can still be drawn as 2 tris as the rounded extremities wont be visible

> for straight lines filtering will reveal its true nature and appear as some sort of halo around your line.

Perhaps not so much as in this case the wanted texel will be right on a true Texel position (I mean it will not interpolate a Texel at an intermediate position so blurred)

This case will need to be tested...

BTW Perhaps using Compositing will need some adjustment like adding (say) 0.5 to U V values to be in the center of the texels : need to be tested...



Alain

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project