scaling in one direction

Blitz3D Forums/Blitz3D Beginners Area/scaling in one direction

slenkar(Posted 2003) [#1]
I want to scale a cube in one direction only, along the Z axis.
Normally when you scale something it scales in the positive and negative directions along the axis.
If I could put the pivot of a cube at one end of the cube it would work,
OR if I could create a cube in a 3D art package (wings 3D) and make it exactly 1 blitz unit long.

Either would do TA!


TheMan(Posted 2003) [#2]
Try to do iy by picking the face vertices and move it towards the direction you want, you can use the Blitz surfaces commands to perform this..


slenkar(Posted 2003) [#3]
difficult laddie, it would be easier to do it the WIngs3D way,I have no experience with those commands


TheMan(Posted 2003) [#4]
ok


Genexi2(Posted 2003) [#5]
Wouldnt FitMesh do the job?


Ross C(Posted 2003) [#6]
Yeah, fitmesh seems to fit the bill :)


Jeppe Nielsen(Posted 2003) [#7]
I think it is positionmesh you are after:
Graphics3D 640,480

cam=CreateCamera()
PositionEntity cam,4,4,-4

cube=CreateCube()
PositionMesh cube,0,0,1

PointEntity cam,cube

sc#=1

Repeat
	
	ScaleEntity cube,1,1,sc
	sc=sc+0.01
	
	RenderWorld
	
	Flip
	
Until KeyDown(1)
End



slenkar(Posted 2003) [#8]
ah yeh thats the same as doing it in Wings3d but better, thanks!