Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Particles... [SOLVED]  (Read 477 times)
newborn
Customers
Community Member
*****
Posts: 2437


WWW
« on: March 14, 2008, 06:42:13 PM »

Before I cry wolf, has anyone else experienced issues with particle systems? I personally have problems with the particle editor tool that comes with TV3D, which seems to crash for some very random reason (can't track why, never the same reason). Same goes with my own editor, but when it crashes, it stop on the line TVScene.RenderAll(True) which doesn't help me at all to debug what exactly is causing all these silly problems.
« Last Edit: March 16, 2008, 05:45:35 PM by newborn » Logged

newborn
Customers
Community Member
*****
Posts: 2437


WWW
« Reply #1 on: March 16, 2008, 10:46:37 AM »

Some updates:

As per Sylvain's suggestion, I made couple of modifications to my coding (getting the particle system updates out of the render loop for instance), but to no avail, still have some random issues.

So this morning, I decided to change TVScene.RenderAll to :

Sub Render()
  _tvScene.RenderAllMeshes()
  _tvScene.RenderAllParticleSystems(True)
End Sub

And I can confirm that it's def. a problem with the rendering of the particles.

Even if I'm not updating anything, just load a particle system and wait for a while, it crashes at the line _tvScene.RenderAllParticleSystems(True)
Logged

newborn
Customers
Community Member
*****
Posts: 2437


WWW
« Reply #2 on: March 16, 2008, 12:57:55 PM »

More on this... seems to crash only when I used keyframes

edit: with more tests, it seems to only happen with particle systems that have Keyframe Emitters
« Last Edit: March 16, 2008, 04:05:58 PM by newborn » Logged

newborn
Customers
Community Member
*****
Posts: 2437


WWW
« Reply #3 on: March 16, 2008, 05:48:15 PM »

Okay, we found what was the problem, it was indeed related to keyframes.

If, for instance, your particle emitter has a lifetime of 5 seconds but your keyframes are set to go under that frametime (last frame at 3 seconds for instance), then TVParticle will raise an exception.

Thanks Sylvain, you're the man! (he's also going to add a safe check for that issue in the next release or so)
Logged

SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #4 on: March 17, 2008, 01:17:45 PM »

Thanks for finding the bug :p
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks