Thank you,
John
Attached File(s)
-
OpenRailsLog.txt (27.43K)
Number of downloads: 308
Posted 22 May 2019 - 08:02 AM
Posted 22 May 2019 - 11:56 PM
Posted 23 May 2019 - 07:04 AM
Posted 27 May 2019 - 11:41 PM
Posted 28 May 2019 - 01:20 AM
[ThreadName("Render")] protected override void EndDraw() { try { RenderProcess.EndDraw(); base.EndDraw(); } catch (Exception e) { Program.Simulator.Confirmer.Message(ConfirmLevel.Information, "Render : " + e.Message); } }
Posted 28 May 2019 - 08:35 AM
Posted 28 May 2019 - 11:50 AM
Posted 29 May 2019 - 09:43 AM
if (FirstActiveParticle < FirstFreeParticle) { var numParticles = FirstFreeParticle - FirstActiveParticle; graphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, FirstActiveParticle * VerticiesPerParticle, numParticles * VerticiesPerParticle, FirstActiveParticle * IndiciesPerParticle, numParticles * PrimitivesPerParticle); }
else { var numParticlesAtEnd = MaxParticles - FirstActiveParticle; if (numParticlesAtEnd > 0) graphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, FirstActiveParticle * VerticiesPerParticle, numParticlesAtEnd * VerticiesPerParticle, FirstActiveParticle * IndiciesPerParticle, numParticlesAtEnd * PrimitivesPerParticle); if (FirstFreeParticle > 0) graphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, FirstFreeParticle * VerticiesPerParticle, 0, FirstFreeParticle * PrimitivesPerParticle); }
Posted 30 May 2019 - 12:18 PM
Csantucci, on 29 May 2019 - 09:43 AM, said:
Csantucci, on 29 May 2019 - 09:43 AM, said: