Particle Candy bug

Community Forums/Developer Stations/Particle Candy bug

Boiled Sweets(Posted 2004) [#1]
Hi,

I have found a bug in Particle Candy (in fact this is the 3rd bug I have found). The other 2 were fixed by Mike pretty quickly but he appears to have been abducted by aliens...

If you set up camera fog and place an emitter into the fog then particles cannot be seen (far enough), however if you set the emitter fx to ignore fog then you still cannot the particles. Surely this is wrong.

Does anyone know how to solve this or know which planet they have taken Mike to?


Rob Farley(Posted 2004) [#2]
Just a thought, I don't have particle candy so I'm probably wrong...

Is your camera view distance set higher than your fog far range? If not, it should be.


Boiled Sweets(Posted 2004) [#3]
Is it setup like...
g_game_camera=CreateCamera(g_game_player)
PositionEntity g_game_camera, 0, 0.7, -0.5
CameraRange g_game_camera,0.1,6000
CameraFogMode g_game_camera,1
CameraFogRange g_game_camera,1,15



Ice9(Posted 2004) [#4]
I've seen my particles from particle candy in fog. I
wonder if it is a driver issue. I have a nvidia card.


Boiled Sweets(Posted 2004) [#5]
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