Texel mapping

73 views
Skip to first unread message

Daniel Seddon

unread,
May 6, 2011, 8:22:47 PM5/6/11
to ptex
Hi

Another question, whilst I start to bring in my texels. In terms of
the mapping of the texels. Is the texel data at the centre of the
texel or on the edge of each texel? In the sense that if we think of a
geo mesh - a 10x10 grid might have 10x10 quad faces but 11x11 shared
vertex rows.

In other words. If I have a quad with rows of texels. Is row one (on
one edge of my quad) the same as the row along the shared edge of the
adjacent quad (is that row sitting on the edge), or would you have to
lerp between the two quads edge rows to get these edge values? I
assume the latter is the case, but would like confirmation.

I hope that makes sense...

Thanks

Dan

brentb

unread,
May 9, 2011, 10:36:00 AM5/9/11
to ptex
On May 6, 5:22 pm, Daniel Seddon <dansed...@gmail.com> wrote:
> Is the texel data at the centre of the texel or on the edge of each texel?

The texels are not centered on the mesh edges. If you have a 2 by 2
texture for instance, the texels are centered at .25 and .75, not 0
and 1.
Reply all
Reply to author
Forward
0 new messages