3d bubbles

Blitz3D Forums/Blitz3D Beginners Area/3d bubbles

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How would i do that? Would i just set up a loop?
OK, here's a very simple example to give an idea of what I mean:

	Graphics3D 800,600,32
	SetBuffer BackBuffer()

	cam = CreateCamera()
	PositionEntity cam,0,0,-10
	CameraClsColor cam,200,50,150
	
	light = CreateLight()
	TurnEntity light,40,70,0
	
	bubble = CreateSphere(32)
	PositionEntity bubble,0,0,-5
	EntityColor bubble,0,100,200
	EntityAlpha bubble,.5
	EntityShininess bubble,1
	EntityBlend bubble,3
	
	ang# = 0.0
	
	While Not KeyHit(1)
	
		ScaleEntity bubble,1+(Sin(ang)*.05),1+(Cos(ang)*.05),1
		ang = (ang + 10) Mod 360.0

		RenderWorld
		Flip(1)

	Wend

	End


Oh and just one more question. How would i tell blitz to make like a swirl of colors?
Sorry, I'm not sure what you mean.