Particle Candy bug

Miscellaneous Forums/Content Creation Tools/Particle Candy bug

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.

Hmm, try this...

Include "particle candy.bb"

Graphics3D 800,600,0,2

camera=CreateCamera()
CameraFogMode camera,1
CameraFogRange camera, 1, 10
PositionEntity camera,0,0,-5

CreateListener(camera)

InitParticles camera,"particles.png",3 

emitter3 = CreateEmitter()
EntityFX emitter3, 8 ; THIS SHOULD DISABLE FOG FOR THIS EMITTER

key_blue = CreateParticleType()
ParticleType_SetImage 				key_blue,7
ParticleType_SetSize 				key_blue,1,0,-0.23,10.0
ParticleType_SetLifeTime 			key_blue,5000
ParticleType_SetColor 				key_blue,0,0,255,0,0,0,0
ParticleType_SetAddedBlend 		key_blue,1
ParticleType_SetAlpha 				key_blue,1.0,0.0,-0.5
ParticleType_SetSpeed 				key_blue,6
ParticleType_SetEmissionShape	 	key_blue,0
ParticleType_SetInnerAngle 		key_blue,40
ParticleType_SetOuterAngle 		key_blue,90
ParticleType_SetStartOffsets 		key_blue,0.0,0.0,0.0,0.0,0.0,0.0
ParticleType_SetRotation 			key_blue,30,0
ParticleType_SetCircularMotion 	key_blue,700
ParticleType_SetWeight 				key_blue,0.0,0.0
Emitter_AddParticleType emitter3, key_blue, 0, 60000, 20
PositionEntity emitter3,0,0,5
ShowEntity emitter3

Emitter_Start emitter3

While Not KeyHit(1)

	
	UpdateWorld
	UpdateParticles
	RenderWorld
	Flip
	
Wend
End