Re: 3D (isometric)
- Posted by MrSmily at AOL.COM Feb 10, 1999
- 396 views
>>Hi again! >>Thanx for the URL! >>I made a little procedure to do +-3D Isometric (Starcraft-like) texturing, >>But it's very very slow and I need to speed it up! >>Can You help me please ?? >>*********convert* (to use with mode 259) >>global function convert(atom x, atom y, atom z) >> atom X,Y >> X=(x/400)*400+(y/400)*400 >> >> return {X,Y} >>end function > > >>X=(x/400)*400+(y/400)*400 >isn't this the same as X=x+y ? > >>Y=(1-x/400)*300+(y/400)*300-2*z >could simplify to Y = (400 - x + y) * 0.75 - z - z > >Yikes! I hope my math is OK!! > >michael at igrin.co.nz Actually, I got something like this for Y: Y=(1-x/400)*300+(y/400)*300-2*z Y=300-300*x/400+300*y/400-(z+z) Y=300-.75*x+.75*y-z-z Y=300+.75*(y-x)-z-z MrSmily at aol.com