Equally textured line

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Equally textured line

Post by paroj »

you need to adapt your UV computation s.t. the coordinates reflect the point distance d: e.g. run the coordinate [0..d] instead of [0..1].
Also see http://www.opengl-tutorial.org/beginner ... ured-cube/ and https://ogrecave.github.io/ogre/api/1.1 ... s_005fmode
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Equally textured line

Post by paroj »

yes, your assumptions are correct. Regarding TEX_TYPE_2D: technically a Nx1 texture is still a 2d texture, altough all values for v will map to the same y-pixel.
Post Reply