Hi there.
@Scotty1973
Yes...as our friend comments, we can do that with vertexdata and if we want to convert exactly a plain to a cylinder, then you will need matrix1 utils as Chris Tate says....I use my own method aswell made with triangles.Use this piece of code with any of your images to make a cylinder made of triangles.
autocam off
sync on
load image "tronco3.jpg",1
for i= 101 to 119
inc d
make object box i,1,1,1
yrotate object i,20*d
move object i,-25
clone object i+19,i
move object down i+19,100
next i
position camera 0,50,-150
point camera 50,0,0
for i= 1 to 18
x1=object position x(i+100)
y1=object position y(i+100)
z1=object position z(i+100)
x2=object position x(i+101)
y2=object position y(i+101)
z2=object position z(i+101)
x3=object position x(i+120)
y3=object position y(i+120)
z3=object position z(i+120)
x3b=object position x(i+119)
y3b=object position y(i+119)
z3b=object position z(i+119)
make object triangle i,x1,y1,z1,x2,y2,z2,x3,y3,z3
make object triangle i+18,x3,y3,z3,x3b,y3b,z3b,x1,y1,z1
texture object i,1
texture object i+18,1
scale object texture i,0.055,1
scroll object texture i,0.055*i-0.055,0
scale object texture i+18,-0.055,-1
scroll object texture i+18,0.055*i,0
next i
do
control camera using arrowkeys 0,0.3,0.3
a#=wrapvalue(a#+mousemovex()/2)
cam#=wrapvalue(cam#+mousemovey()/2)
rotate camera cam#,a#,0
if leftkey() then move camera left 0.3
if rightkey() then move camera right 0.3
sync
loop
Take a look to this thread to see some examples.
http://forum.thegamecreators.com/?m=forum_view&t=181531&b=1
Cheers.
I'm not a grumpy grandpa
