Quote: "Why not just edit the vertexdata:"
baxslash has the right solution.
Quote: "uhgg and from our other conversations you have to be a math genius "
That's not to difficult....take a look to this sphere to cube morphing code, and try to do the same from cube to sphere( the cube is not a real cube....is just an sphere manipulated with vertextada that will grow up to became a sphere. I hope this code help someone.
ink rgb(255,255,0),0
box 0,0,50,50
ink rgb(0,255,0),0
box 0,20,50,30
ink rgb(255,0,0),0
box 29,0,31,50
get image 1,0,0,50,50,1
autocam off
sync on
make object sphere 1,30,30,30
texture object 1,1
scale object texture 1,5,1
position camera -10,50,-80
point camera 0,0,0
do
set cursor 0,0
ink rgb(255,255,255),0
print "After 10 seconds press SPACEKEY "
lock vertexdata for limb 1,0
vertex = get vertexdata vertex count()
for i =0 to vertex
x# = get vertexdata position x(i)
y# = get vertexdata position y(i)
z# = get vertexdata position z(i)
if y# >8 then set vertexdata position i,x#,y#-scale#,z#
if y# <-8 then set vertexdata position i,x#,y#+scale#,z#
if x# <-8 then set vertexdata position i,x#+scale#,y#,z#
if x# >8 then set vertexdata position i,x#-scale#,y#,z#
if z# >8 then set vertexdata position i,x#,y#,z#-scale#
if z# <-8 then set vertexdata position i,x#,y#,z#+scale#
next i
unlock vertexdata
if spacekey() then scale#=scale#+0.00001
rt#=rt#+0.1
yrotate object 1,rt#
sync
loop
Cheers.
I'm not a grumpy grandpa
