Mantis - Croquet
Viewing Issue Advanced Details
1364 Jasmine crash always 06-21-05 23:33 08-14-05 21:42
elenzil  
 
normal  
new  
open  
none    
none  
0001364: too many lights crashes squeak
Adding more than eight lights freezes squeak unrecoverably.

--------------------------------------------------
TeaTest new openInWorld.
TParticle allInstances last removeSelf.
space _ TSpace allInstances last.
list _ space find: [:x| x isKindOf: TLight].
list do: [:x| x removeSelf].
1 to: 8 do: [:n| space addChild: TLight new].

"it's okay up to here, but the ninth light freezes squeak:"

space addChild: TLight new.
--------------------------------------------------
Has been reproduced on two machines,
each with slightly different flavours
of fairly high-power ATI radeon cards.

Notes
(0002167)
elenzil   
08-05-05 20:44   
any thoughts on this one ?

8 lights is sort of few.
(0002168)
Croqueteer   
08-05-05 20:59   
OpenGL typically maxes out at 8 lights. However, I wrote some code that should have managed this properly and eased additional lights in and out depending upon observer distance. Evidently, this is not working (anymore).

DAS
(0002336)
bert   
08-14-05 21:42   
As David said, we should not enable more lights than GL supports. However, this should not crash - report this to ATI. Also, someone should try this on an NVIDIA board.