How can I?

BlitzMax Modules Forums/MiniB3D/How can I?

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.


Import sidesign.minib3d

Graphics3D 800 , 600 , 0 , 2

Local Cam:TCamera = CreateCamera()

Local Light:TLight = CreateLight()

PositionEntity Cam , 0 , 10 , - 10

Local cube:TMesh = CreateCube()
PointEntity Cam,Cube


While Not KeyHit(Key_Escape)
	
	TurnEntity(cube,0.5,0.5,0.5)
	
	'FirstPass
	CameraClsMode cam,True,True

	Wireframe(False)
	
	EntityColor cube , 0 , 255 , 0
	
	RenderWorld()

	
	'Second Pass
	CameraClsMode cam , False , False
	
	EntityColor cube , 255 , 0 , 0
	
	Wireframe(True)
	
	RenderWorld()
	
	Flip
Wend



It is not commented but a look in the manual section in this forum should make the program more clear. In my hopefully soon available extended Version will be an additional command, which will enable you to choose the desired rendermode per entity(Full,Wire,Point).

greetings.