kerou / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

MT4J error on 3D example (dinossaur) #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open MT4J with examples in eclipse
2. run the menu example
3. run the 3D dinossaur example

What is the expected output? What do you see instead?
the app should run

What version of the product are you using? On what operating system?
windows 7

Please provide any additional information below.

Thread error...he other examples run ok!

Original issue reported on code.google.com by mestrado...@gmail.com on 25 Mar 2010 at 1:16

GoogleCodeExporter commented 9 years ago
Can you please paste the exact error message from the java console? Else I can 
not
reproduce the problem. Is it an OutOfMemoryError maybe?
Thanks

Original comment by sirhc.f...@gmail.com on 25 Mar 2010 at 2:11

GoogleCodeExporter commented 9 years ago
I'm also getting an error there but extending the memory for JVM via -Xmx256M 
solves the problem!

Found and created model factory for handling files: ".3ds" Factory: 
org.mt4j.util.modelImporter.file3ds.Model3dsFileFactory
Exception in thread "Animation Thread" java.lang.OutOfMemoryError: Java heap 
space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    at java.lang.StringBuilder.append(StringBuilder.java:119)
    at org.mt4j.util.TriangleNormalGenerator.generateSmoothNormals(TriangleNormalGenerator.java:293)
    at org.mt4j.util.modelImporter.file3ds.Model3dsFileFactory.loadModelImpl(Model3dsFileFactory.java:247)
    at org.mt4j.util.modelImporter.ModelImporterFactory.loadModel(ModelImporterFactory.java:120)
    at advanced.models3D.Models3DScene.<init>(Models3DScene.java:78)
    at advanced.models3D.StartModelExample.startUp(StartModelExample.java:19)
    at org.mt4j.MTApplication.setup(MTApplication.java:382)
    at processing.core.PApplet.handleDraw(PApplet.java:1400)
    at processing.core.PApplet.run(PApplet.java:1328)
    at java.lang.Thread.run(Thread.java:637)

Original comment by floriano...@gmx.de on 25 Mar 2010 at 5:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You can follow the instructions at the bottom of this page:
http://www.mt4j.org/mediawiki/index.php/Running_the_MT4j_examples

Original comment by sirhc.f...@gmail.com on 25 Mar 2010 at 7:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you...

Great work here!!!

Original comment by mestrado...@gmail.com on 27 Mar 2010 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by sirhc.f...@gmail.com on 27 Mar 2010 at 1:30