HELP !!!! Single Surface Sprites and Texel Alignment

Blitz3D Forums/Blitz3D Programming/HELP !!!! Single Surface Sprites and Texel Alignment

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

That fixes the color, however the texel misalignment is still evident with the double thick lines you are getting even with loadtexture(tex,1).

This seems to fix it:

Function Text3D_PositionLetter (t.text3D_lettermesh,l.text3D_lettersprite, x#,y#,width#=1,height#=1, Angle%=0, scaleadd#=0)
	 l\pos\x = x#
   l\pos\y = y#
   l\pos\z = 0

	y# = y# + yOffset
	x# = x# + xoffset

	 y=((240-y) + (height/2))
   	 x=((x-320+width)-(width/2))
	 width#=((scaleadd+width#))
	 height#=((scaleadd+height#))
	 
	 width# = (width#/2)
	 height# = (height/2)

	x=x-.5
	y=y-.5
	VertexCoords t\surface,l\index,x-(width#),y+height#, 0
	VertexCoords t\surface,l\index+1,x+width#,y+height#, 0
	VertexCoords t\surface,l\index+2,x+width#,y-height#, 0
	VertexCoords t\surface,l\index+3,x-width#,y-height#, 0
End Function