Print

Print


You need to allow java to use more memory, using the java VM's Xmx option.
As a matter of fact, read the READEME file in particles3d package, it
explains everything.

Gabriel


On Thu, 4 Aug 2005, Automatic digest processor wrote:

> There are 4 messages totalling 220 lines in this issue.
>
> Topics of the day:
>
>   1. One of the Mason projects can not work!!! (4)
>
> ----------------------------------------------------------------------
>
> Date:    Wed, 3 Aug 2005 06:24:45 -0700
> From:    John Smith <[log in to unmask]>
> Subject: One of the Mason projects can not work!!!
>
> --0-264389259-1123075485=:22588
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
>
>
>
>  Hi, I am a new user of Mason software. I run the sim.app.particle package. However, my computer can not only show the 3D visualization, but it generates the following information. Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space I am wondering to know if my memory is exhausted by this program     ValueGridPortrayal3D class. If I still want to run 3D program, could you give me some recommendation to my computer? Are there requirements for the hardware configuration? My computer has 512M memory and 100G hard disk. Thank you Best Regards
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> --0-264389259-1123075485=:22588
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> <DIV><BR><BR>
> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><PRE> Hi,
>  I am a new user of Mason software. I run the sim.app.particle package. However, my computer can not only show the 3D visualization, but it generates the following information.
>  Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
>  I am wondering to know if my memory is exhausted by this program     ValueGridPortrayal3D class. If I still want to run 3D program, could you give me some recommendation to my computer? Are there requirements for the hardware configuration? My computer has 512M memory and 100G hard disk.
>
>  Thank you
>  Best Regards
> </PRE></BLOCKQUOTE></DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com
> --0-264389259-1123075485=:22588--
>
> ------------------------------
>
> Date:    Wed, 3 Aug 2005 10:06:16 -0400
> From:    Sean Luke <[log in to unmask]>
> Subject: Re: One of the Mason projects can not work!!!
>
> John, the memory requirements for ValueGridPortrayal3D and
> ObjectGridPortrayal3D are ghastly, due to certain of Sun's inefficient
> design mistakes in Java3D.  As discussed in the README file for
> sim/app/particles3d, you need to increase Java's default memory heap.
> It doesn't matter that your machine has 512 megs of memory: Java always
> tops out with a small heap (20 megs or so is not uncommon).  You can
> increase the heap by running Java differently.  On a Mac or OS X, it's
> done like this:
>
>         java -Xmx200m sim.app.particles3d.Particles3DWithUI
>
> I cannot say how to do it on Windows.
>
> Sean
>
> On Aug 3, 2005, at 9:24 AM, John Smith wrote:
>
> >>  I am a new user of Mason software. I run the sim.app.particle
> >> package. However, my computer can not only show the 3D visualization,
> >> but it generates the following information.
> >>  Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError:
> >> Java heap space
> >>  I am wondering to know if my memory is exhausted by this program
> >> ValueGridPortrayal3D class. If I still want to run 3D program, could
> >> you give me some recommendation to my computer? Are there
> >> requirements for the hardware configuration? My computer has 512M
> >> memory and 100G hard disk.
> >>
> >>  Thank you
> >>  Best Regards
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
> ------------------------------
>
> Date:    Wed, 3 Aug 2005 09:45:04 -0700
> From:    John Smith <[log in to unmask]>
> Subject: Re: One of the Mason projects can not work!!!
>
> --0-1997245486-1123087504=:58230
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
>
> Sean,
>
>    Glad to hear from you. I appreciate your help and decide to give up using ValueGridPortrayal3D and ObjectGridPortrayal3D classes. I read your tutorial 7. And I modify your fly program. It looks very good. However, I still have a problem to ask you.
>
> SparseGrid3D and SparseGridPortrayal3D are easy to simulate the 3D visualization without rich memory requirement. But I want to know how you setup the x,y,z axis. If I make a 100*100*100 lattice with SparseGrid3D class, the origin point (0,0,0) is in the center of the screen. Then (-10,0,0) point should be in the left of the screen and (0,-12,0) point should be in the bottom of the screen.. But the stx, sty,stz function of SparseGrid3D will not return any negative value. If I set up the object position of (-10,7,-88), it will return (90,7,12). So I only could set the object in the northeast of the screen. If I want to control the object and set it in the screen like conway¡¯s game in your tutorial, how do I solve this problem.
>
>
>
> Thank you
>
> John
>
>
> Sean Luke <[log in to unmask]> wrote:John, the memory requirements for ValueGridPortrayal3D and
> ObjectGridPortrayal3D are ghastly, due to certain of Sun's inefficient
> design mistakes in Java3D. As discussed in the README file for
> sim/app/particles3d, you need to increase Java's default memory heap.
> It doesn't matter that your machine has 512 megs of memory: Java always
> tops out with a small heap (20 megs or so is not uncommon). You can
> increase the heap by running Java differently. On a Mac or OS X, it's
> done like this:
>
> java -Xmx200m sim.app.particles3d.Particles3DWithUI
>
> I cannot say how to do it on Windows.
>
> Sean
>
> On Aug 3, 2005, at 9:24 AM, John Smith wrote:
>
> >> I am a new user of Mason software. I run the sim.app.particle
> >> package. However, my computer can not only show the 3D visualization,
> >> but it generates the following information.
> >> Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError:
> >> Java heap space
> >> I am wondering to know if my memory is exhausted by this program
> >> ValueGridPortrayal3D class. If I still want to run 3D program, could
> >> you give me some recommendation to my computer? Are there
> >> requirements for the hardware configuration? My computer has 512M
> >> memory and 100G hard disk.
> >>
> >> Thank you
> >> Best Regards
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> --0-1997245486-1123087504=:58230
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
>
> <DIV>
> <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">Sean,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P><PRE><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>Glad to hear from you. I appreciate your help and decide to give up using ValueGridPortrayal3D and ObjectGridPortrayal3D classes. I read your tutorial 7. And I modify your fly program. It looks very good. However, I still have a problem to ask you.<o:p></o:p></SPAN></PRE><PRE><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">SparseGrid3D and SparseGridPortrayal3D are easy to simulate the 3D visualization without rich memory requirement. But I want to know how you setup the x,y,z axis. If I make a 100*100*100 lattice with SparseGrid3D class, the origin point (0,0,0) is in the center of the screen. Then (-10,0,0) point should be in the left of the scr!
 ee!
>  n and
>  (0,-12,0) point should be in the bottom of the screen.. But the stx, sty,stz function of SparseGrid3D will not return any negative value. If I set up the object position of (-10,7,-88), it will return (90,7,12). So I only could set the object in the northeast of the screen. If I want to control the object and set it in the screen like </SPAN><?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:City><st1:place><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">conway</SPAN></st1:place></st1:City><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">¡¯s game in your tutorial, how do I solve this problem.<o:p></o:p></SPAN></PRE><PRE><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><o:p>&nbsp;</o:p></SPAN></PRE><PRE><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">Thank you<o:p></o:p></SPAN></PRE><PRE><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">John<o:p></o:p></SPAN></PRE><BR><BR><!
 B>!
>  <I>Sean
>  Luke &lt;[log in to unmask]&gt;</I></B> wrote:
> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">John, the memory requirements for ValueGridPortrayal3D and<BR>ObjectGridPortrayal3D are ghastly, due to certain of Sun's inefficient<BR>design mistakes in Java3D. As discussed in the README file for<BR>sim/app/particles3d, you need to increase Java's default memory heap.<BR>It doesn't matter that your machine has 512 megs of memory: Java always<BR>tops out with a small heap (20 megs or so is not uncommon). You can<BR>increase the heap by running Java differently. On a Mac or OS X, it's<BR>done like this:<BR><BR>java -Xmx200m sim.app.particles3d.Particles3DWithUI<BR><BR>I cannot say how to do it on Windows.<BR><BR>Sean<BR><BR>On Aug 3, 2005, at 9:24 AM, John Smith wrote:<BR><BR>&gt;&gt; I am a new user of Mason software. I run the sim.app.particle<BR>&gt;&gt; package. However, my computer can not only show the 3D visualization,<BR>&gt;&gt; but it generates the following
>  information.<BR>&gt;&gt; Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError:<BR>&gt;&gt; Java heap space<BR>&gt;&gt; I am wondering to know if my memory is exhausted by this program<BR>&gt;&gt; ValueGridPortrayal3D class. If I still want to run 3D program, could<BR>&gt;&gt; you give me some recommendation to my computer? Are there<BR>&gt;&gt; requirements for the hardware configuration? My computer has 512M<BR>&gt;&gt; memory and 100G hard disk.<BR>&gt;&gt;<BR>&gt;&gt; Thank you<BR>&gt;&gt; Best Regards<BR>&gt; __________________________________________________<BR>&gt; Do You Yahoo!?<BR>&gt; Tired of spam? Yahoo! Mail has the best spam protection around<BR>&gt; http://mail.yahoo.com<BR></BLOCKQUOTE></DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com
> --0-1997245486-1123087504=:58230--
>
> ------------------------------
>
> Date:    Wed, 3 Aug 2005 14:03:41 -0400
> From:    Sean Luke <[log in to unmask]>
> Subject: Re: One of the Mason projects can not work!!!
>
> On Aug 3, 2005, at 12:45 PM, John Smith wrote:
>
> >    Glad to hear from you. I appreciate your help and decide to give up
> > using ValueGridPortrayal3D and ObjectGridPortrayal3D classes. I read
> > your tutorial 7. And I modify your fly program. It looks very good.
> > However, I still have a problem to ask you.
> > SparseGrid3D and SparseGridPortrayal3D are easy to simulate the 3D
> > visualization without rich memory requirement. But I want to know how
> > you setup the x,y,z axis. If I make a 100*100*100 lattice with
> > SparseGrid3D class, the origin point (0,0,0) is in the center of the
> > screen. Then (-10,0,0) point should be in the left of the screen and
> >  (0,-12,0) point should be in the bottom of the screen.
>
> > But the stx, sty,stz function of SparseGrid3D will not return any
> > negative value. If I set up the object position of (-10,7,-88), it
> > will return (90,7,12). So I only could set the object in the northeast
> > of the screen. If I want to control the object and set it in the
> > screen like conway's game in your tutorial, how do I solve this
> > problem.
>
> stx, sty, and stz are toroidal wrapper functions, as are tx, ty, and
> tz.  Their purpose is to simplify toroidal movement.  For example, if
> you want to move an object one slot up, possibly wrapping around, then
> you could do:
>
>         Int3D loc = field.getObjectLocation(myobj);
>         field.setObjectLocation(myobj, loc.x, field.sty(loc.y-1), loc.z);
>
> Toroidal 3D spaces are bounded by (0,0,0) inclusive to
> (width,height,length) exclusive.  If you're trying to set something in
> a negative location, it sounds like you *don't* want a toroidal space.
> In that case, if you want to move an object one slot up, never wrapping
> around (but instead allowing it to go negative if necessary), you just
> do:
>
>         Int3D loc = field.getObjectLocation(myobj);
>         field.setObjectLocation(myobj, loc.x, loc.y-1, loc.z);
>
> Or perhaps you want to do toroidal space but you want your field
> centered.  In that case you'll need to transform the field so that the
> world origin is in the center of the field instead of aligned with the
> field's origin.  In that case you might do something like (after
> scaling to 2x2x2):
>
>         display.translate(-1.0, -1.0, -1.0);
>
> Sean
>
>
>
> ------------------------------
>
> End of MASON-INTEREST-L Digest - 25 Jul 2005 to 3 Aug 2005 (#2005-32)
> *********************************************************************
>