All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sim.app.particles3d.README Maven / Gradle / Ivy

Go to download

MASON is a fast discrete-event multiagent simulation library core in Java, designed to be the foundation for large custom-purpose Java simulations, and also to provide more than enough functionality for many lightweight simulation needs. MASON contains both a model library and an optional suite of visualization tools in 2D and 3D.

The newest version!
This is an example of extending the "Particles" example in Tutorials 3 
and 4 to 3D.

Unfortunately, Java3D gets quite slow and memory hungry when drawing large
numbers of shapes (there are over 27,000 in this example in the worst case
-- but most are invisible at any time).  There's not enough memory in the
default Java to handle Java3D's ridiculous memory requirements.  You'll
need to increase the Java heap like so: 

	java -Xmx200m sim.app.particles3d.Particles3DWithUI

Likewise, applets won't be able to run this example.  The building of all
these shapes is also what causes the very long pause at the beginning of
the run, and the "unbuilding" is what causes the even LONGER pause at the
end of the run.  It's not something we can get around -- it's just a flaw
in Java3D.  We're working on a better approach for 3D value grids. 




© 2015 - 2025 Weber Informatics LLC | Privacy Policy