vertextexturecoords question

Blitz3D Forums/Blitz3D Programming/vertextexturecoords question

D4NM4N(Posted 2005) [#1]
how can i position a texture at more than one location on a surface using vertex uvs? or is it not possible?


KuRiX(Posted 2005) [#2]
Yes, you can. Just put the vertexcoords of every vertex on the triangle (better use a quad, with 2 triangles) in the position of the texture.

Example:
.-----.
|    / |
|  /   |
./----.


The points are the vertex. So put their uvw in the position of the texture you want.


Raitsun(Posted 2005) [#3]
put your example between ["code"] and ["/code"]. ^^

p.s.: without quotes ;-]


D4NM4N(Posted 2005) [#4]
s'ok ive found the light (or darklight as its a shadow routine) :)