To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dat.partsOpen lugnet.cad.dat.parts in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDraw Files / Parts / 3281
3280  |  3282
Subject: 
Re: JAVA - Viewer for dat-Files
Newsgroups: 
lugnet.cad, lugnet.cad.dat.parts
Date: 
Fri, 25 Jan 2002 13:35:29 GMT
Viewed: 
291 times
  
In lugnet.cad, Bernd Broich writes:
"Don Heyse" <dheyse@hotmail.spam.go.away.com> schrieb im Newsbeitrag news:GqG98z.Gsr@lugnet.com...
Cool stuff, and with source!!  But, I get this error when I try to run it:

Exception in thread "main" java.lang.NoSuchMethodError:
javax.media.j3d.SceneGraphObject: method setCapabilityIsFrequent(I)V not found
        at de.onlinehome.broich.ldraw.SubFile.makeAppear(SubFile.java:261)
        at de.onlinehome.broich.ldraw.SubFile.<init>(SubFile.java:64)
        at de.onlinehome.broich.ldraw.SubFile.<init>(SubFile.java:43)
        at de.onlinehome.broich.ldapplet.Show.load(Show.java:194)
        at de.onlinehome.broich.ldapplet.Show.jbInit(Show.java:116)
        at de.onlinehome.broich.ldapplet.Show.init(Show.java:69)
        at de.onlinehome.broich.ldapplet.Show.main(Show.java, Compiled Code)

java3D 1.2 seems to be missing setCapabilityIsFrequent()

I removed the setCapabilityIsFrequent-method from code.
I thougt, it has to be set for changing the view, but it don't.

So It should work also with java3d 1.2

I'll have to try it again with j3d 1.2.  I did manage to register and
download j3d 1.3, and directx8 and get it working with this command.

  java -classpath viewer.jar de/onlinehome/broich/ldapplet/Show
    PATH=c:\ldraw FILE=%1

It's pretty neat, but it chews up lots of memory.  I think j3d must
be saving every single triangle as an oobject.  I watched in the win2000
task manager as even small models ate up over 40MB of memory.  Medium
sized models ran out of virtual memory on my PC.  Unfortunately ldraw
models generate a tremendous amount of triangles, especially compared to
most games.  They generate detail with textures instead.  We tend to
save lots of memory in C/C++ viewers by only creating each part once
in memory and then keeping pointers to it, instead of making a copy
for each occurance of the same brick.  I think that's harder to do
in Java, but perhaps you could manage it with a collection of parts
or a hash table.  Of course I haven't really look at the code yet so
you could be doing that already.

Have you looked into any of the opengl bindings for java?  GL4Java looks
pretty cool and claims to have Mac support, which would make James very
happy.

Don



Message has 1 Reply:
  Re: JAVA - Viewer for dat-Files
 
Hi, I'm also currently working on a very similiar program. (...) Yes because of the way .DAT files are made, the most straight forward way of representing them in J3D is 1 triangle or quad -> 1 Object. J3D however does tremendously better on both (...) (23 years ago, 25-Jan-02, to lugnet.cad, lugnet.cad.dat.parts)

Message is in Reply To:
  Re: JAVA - Viewer for dat-Files
 
"Don Heyse" <dheyse@hotmail.spam....away.com> schrieb im Newsbeitrag news:GqG98z.Gsr@lugnet.com... (...) I removed the setCapabilityIsFrequent-method from code. I thougt, it has to be set for changing the view, but it don't. So It should work also (...) (23 years ago, 25-Jan-02, to lugnet.cad, lugnet.cad.dat.parts)

20 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR