Show Posts
|
|
Pages: [1]
|
|
1
|
Java Game APIs & Engines / Java 3D / Re: source for java3d
|
on: 2006-07-10 10:44:11
|
|
thats what i've been doing...i've downloaded the whole the whole repository through eclipse cvs and theres no source in there...just did it again now to check and go the same promo stuff with no code...this same process has worked for other projects including the java3d game sdk and jme.
|
|
|
|
|
4
|
Java Game APIs & Engines / Xith3D Forums / Re: where's xith-tk with the whoola collada loaders...
|
on: 2006-06-13 04:39:24
|
|
thanks for the update...originally i got some errors along the lines of package org.collada._2005._11.colladaschema does not exist so i modified the build.xml file to include whoola_collada_jaxb.jar
my classpath setup now looks like:
<property environment="env"/> <property name="root" value="."/> <property name="xith3dlib" value="../xith3d/third-party"/> <property name="lib" value="${root}/third-party"/> <property name="javadoc" value="${root}/javadoc"/> <property name="cvsroot" value="${env.CVSROOT}"/>
<property name="classes" value="${root}/classes"/> <property name="src" value="${root}/src"/>
<path id="classpath"> <pathelement path="${classes}"/> <fileset dir="${xith3dlib}"> <include name="**/*.jar"/> </fileset> <fileset dir="${lib}"> <include name="**/*.jar"/> </fileset> <fileset dir="../xith3d/libs/"> <include name="**/*.jar"/> </fileset> <fileset dir="/Users/stephen/Code/Lib/jwsdp-2.0/jaxb/lib/"> <include name="**/*.jar"/> </fileset> <fileset dir="${root}/libs"> <include name="whoola_collada_jaxb.jar"/> </fileset> </path>
still getting one error though, in a totally different package...
[javac] Compiling 143 source files to /Users/brimley/Code/Documentation/Java/xith-tk/classes [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/tds/kinostudios/ChunkChopper.java:613: cannot find symbol [javac] symbol : method getTexture(java.lang.String) [javac] location: class com.xith3d.loaders.texture.TextureLoader2 [javac] return TextureLoader2.getInstance().getTexture(textureImageName); [javac] ^ [javac] Note: /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/ui/swingui/UIWindowFrame.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error
|
|
|
|
|
7
|
Java Game APIs & Engines / Java 3D / Re: java 3d on intel macs
|
on: 2006-06-11 23:13:32
|
It may be the case that the JoglPipeline is already the default in Java3D 1.5.0 build 3 on OS X https://j3d-core.dev.java.net/j3d1_5_0/RELEASE-NOTES-pre.html says that The JOGL renderer is the default on Mac OSX my guess would be you're picking up the old Java3D. There isn't anything in the extensions folder. On my old mac, I had to download apple's java3d update (which dates from dec 2003). http://www.apple.com/support/downloads/java3dandjavaadvancedimagingupdate.htmlBefore starting this thread I tried to install that and it refused to install saying it required os x 10.3, i think 10.3.9. So I'm not sure what version of Java3D could have been installed on my computer. i.e. what version runs on the intel macs aside from j3d 1.5? Does apple have an internal build of java3d for intel macs that they install as part of osx or developer's tools? originally i had all the jogl/java3d library jars in /Library/Java/Extensions/ directory and have moved them into a subdirectory of home ( Lib/ ). now, things are still compiling & running without setting the classpath to point to the java3d jars. so that leads me to believe there is some system install of java3d that i'm unable to find. I've tried searching for java3d but all i get is the example files i found before...a search for "j3dcore" only turns up the jar i have in Lib/ . i'm not seeing any joglPipeline.hasDoubleBuffer() printout.. when i print out the result of System.getProperty("j3d.rend") I get "null" I've again tried the stuff I was running before and hellouniverse and they both run with no errors. wierd.
|
|
|
|
|
8
|
Java Game APIs & Engines / Xith3D Forums / Re: usage of OBJLoader2
|
on: 2006-06-09 10:36:45
|
|
thanks for the suggestion... i couldn't tell it didn't need a File object from the api...i'm assuming it just constructs one internally..overloaded constructors? the xith-tk source i have only has the code for ObjLoader, the corresponding whoola directory where I'm guessing objLoader2 would be is empty except for cvs file.
so i tried that, but i'm still getting a blank screen. i've got the model succesfully loading in java3d, though, and tried using the scaling factor calculated by that code, but the model still doesn't show up...just a blank gray screen. i do get a lot of warnings though about smoothing groups and i'm wondering whether that would have any bearing: org.xith3d.loaders.obj.OBJLoader2: smoothing groups not currently supported: "s 1" org.xith3d.loaders.obj.OBJLoader2: smoothing groups not currently supported: "s 2" org.xith3d.loaders.obj.OBJLoader2: smoothing groups not currently supported: "s 3" etc.
|
|
|
|
|
9
|
Java Game APIs & Engines / Java 3D / Re: java 3d on intel macs
|
on: 2006-06-07 20:31:53
|
Awesome, thanks for the help. So basically Jogl takes the place of any other native libraries in 1.5? Note that Apple ships an older version of Java3D I believe somewhere in the /System tree which you need to either delete or move aside since its presence will prevent you from running the newer version (unless you overwrite the older version with the newer version).
I can't seem to find an existing Java3D install on my system, aside from some examples in Developer/Examples/Java/Java3D I tried the simple cube example and it worked even without specifying -Dj3d.rend=jogl which was surprising... i don't have any native libraries so I'm guessing rendering a cube was simple enough to not rely on native code... I tried an old project with the -Dj3d.rend=jogl switch and i got the following errors even though it did display the window with the expected contents... 2006-06-07 10:47:37.765 java[481] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x12603, name = 'java.ServiceProvider' See /usr/include/servers/bootstrap_defs.h for the error codes. 2006-06-07 10:47:37.765 java[481] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider) also managed to get a model loaded using ObjectFile both including -Dj3d.rend=jogl and not.
|
|
|
|
|
10
|
Java Game APIs & Engines / Xith3D Forums / usage of OBJLoader2
|
on: 2006-06-07 11:50:24
|
i'm trying to use OBJLoader2 but I'm getting just a blank window even though the model seems to have loaded fine and if i substitute a xith primitive geometry it works fine and i can see it... so i'm wondering what i'm doing wrong.. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| VirtualUniverse universe = new VirtualUniverse(); universe.addView(view); Locale locale = new Locale(); universe.addLocale(locale);
File modelFile = new File(MODEL_OBJ_FILENAME); Scene model = null; try { model = (new OBJLoader2().load(modelFile.getAbsolutePath())); System.out.println("scene model successfully loaded"); } catch (Exception e) { System.out.println("Nope"); }
BranchGroup modelBG = model.getSceneGroup(); locale.addBranchGraph(modelBG);
modelBG.compile();
RenderPeer rp = new RenderPeerImpl(); CanvasPeer cp = rp.makeCanvas(null, 640, 480, 32, false); Canvas3D canvas = new Canvas3D(); canvas.set3DPeer(cp);
view.addCanvas3D(canvas); view.getTransform().lookAt( new Vector3f(0, 0, 2f), new Vector3f( 0, 0, 0), new Vector3f( 0, 1, 0)); view.startView(); |
|
|
|
|
|
11
|
Java Game APIs & Engines / Java 3D / java 3d on intel macs
|
on: 2006-06-07 10:32:16
|
|
how do i go about getting java 3d running on an intel mac.. nothing turned up searching the forum, and the 2003 j3d/jai won't install (complains that i need os 10.3). I'm assuming with 1.5 with it running on top of jogl, that there will be a sun supported version, given that it seems like apple isn't taking care of it anymore??
|
|
|
|
|
12
|
Java Game APIs & Engines / Xith3D Forums / Re: where's xith-tk with the whoola collada loaders...
|
on: 2006-06-07 00:44:42
|
|
doh, i didn't realize at first that some of the errors were from not finding jaxb so adding this to the <path id="classpath"> element helped clear up some ofthe errors: <fileset dir="/Users/brimley/Code/jwsdp-2.0/jaxb/lib/"> <include name="**/*.jar"/> </fileset>
so now all the errors are internal to xith-tk at least:
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:6: package com.whoola.core.io does not exist [javac] import com.whoola.core.io.ReaderInputStream; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:12: package com.whoola.core.text.xml.bind does not exist [javac] import com.whoola.core.text.xml.bind.JaxbCoder; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:32: cannot find symbol [javac] symbol : class JaxbCoder [javac] location: class org.xith3d.loaders.dae.whoola.collada.ColladaLoader [javac] private final JaxbCoder jaxbCoder; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:14: package com.whoola.core.io does not exist [javac] import com.whoola.core.io.Coder; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:15: package com.whoola.core.io does not exist [javac] import com.whoola.core.io.StringCoder; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:29: cannot find symbol [javac] symbol: class Coder [javac] implements Coder [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:36: cannot find symbol [javac] symbol : class StringCoder [javac] location: class org.xith3d.loaders.dae.whoola.misc.JaxbCoder [javac] private final StringCoder stringCoder; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:62: cannot find symbol [javac] symbol : class JaxbCoder [javac] location: class org.xith3d.loaders.dae.whoola.collada.ColladaLoader [javac] jaxbCoder = new JaxbCoder ( ColladaConstants.JAXB_CONTEXT ); [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:80: cannot find symbol [javac] symbol : class ReaderInputStream [javac] location: class org.xith3d.loaders.dae.whoola.collada.ColladaLoader [javac] return load ( new ReaderInputStream ( reader ) ); [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:50: cannot find symbol [javac] symbol : class StringCoder [javac] location: class org.xith3d.loaders.dae.whoola.misc.JaxbCoder [javac] stringCoder = new StringCoder ( StringCoder.UTF_8 ); [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:50: cannot find symbol [javac] symbol : variable StringCoder [javac] location: class org.xith3d.loaders.dae.whoola.misc.JaxbCoder [javac] stringCoder = new StringCoder ( StringCoder.UTF_8 ); [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/tds/kinostudios/ChunkChopper.java:613: cannot find symbol [javac] symbol : method getTexture(java.lang.String) [javac] location: class com.xith3d.loaders.texture.TextureLoader2 [javac] return TextureLoader2.getInstance().getTexture(textureImageName); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 12 errors
alright, please let me know what i'm doing wrong. also i was wondering do your collada packages work okay with jaxb 2.0?
sorry one other question...i was wondering what file on the whoola cvs i should see for how you loaded the space shuttle. thanks!
|
|
|
|
|
13
|
Java Game APIs & Engines / Xith3D Forums / Re: where's xith-tk with the whoola collada loaders...
|
on: 2006-06-06 21:45:33
|
|
ok, so i've had the directories like you suggested, side-by-side,, so i don't think thats the issue. i think the directory structure for xith-tk is confusing... i.e. why is hial.jar in both the "libs" and "third-party" directories. i know i'm new to this, but it seems like it would make sense to have a single directory and call it one of "ext", "lib", or "third-party" rather than keeping three separate ones, especially if they have overlapping contents. again, sorry if i'm missing something as to why this isn't done. so for the time being i've placed the whoola_collada_jaxb.jar file within the third-party directory because the ant buildfile is already looking in that directory for jars <property environment="env"/> <property name="root" value="."/> <property name="xith3dlib" value="../xith3d/third-party"/> <property name="lib" value="${root}/third-party"/> <property name="javadoc" value="${root}/javadoc"/> <property name="cvsroot" value="${env.CVSROOT}"/>
<property name="classes" value="${root}/classes"/> <property name="src" value="${root}/src"/>
<path id="classpath"> <pathelement path="${classes}"/> <fileset dir="${xith3dlib}"> <include name="**/*.jar"/> </fileset> <fileset dir="${lib}"> <include name="**/*.jar"/> </fileset> <fileset dir="../xith3d/libs/"> <include name="**/*.jar"/> </fileset> </path>
still, i get lots of errors, they're different now though:
javac] Compiling 298 source files to /Users/brimley/Code/Documentation/Java/xith-tk/classes [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeExporter.java:13: package javax.xml.bind does not exist [javac] import javax.xml.bind.JAXBException; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeExporter.java:126: cannot find symbol [javac] symbol : class JAXBException [javac] location: class org.xith3d.loaders.dae.whoola.DaeExporter [javac] throws IOException, JAXBException [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeSaver.java:5: package javax.xml.bind does not exist [javac] import javax.xml.bind.JAXBException; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:6: package com.whoola.core.io does not exist [javac] import com.whoola.core.io.ReaderInputStream; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:8: package javax.xml.bind does not exist
...
|
|
|
|
|
14
|
Java Game APIs & Engines / Xith3D Forums / Re: where's xith-tk with the whoola collada loaders...
|
on: 2006-06-06 12:36:12
|
used this page: https://xith-tk.dev.java.net/source/browse/xith-tk/and followed the CVS client setup instructions for command line.. easy enough... i'm not sure where i'm supposed to place the xith-tk directory when i run ant from within it... i have the libraries installed in /Library/Java/Extensions and the source in my a subdirectory of my home.. i assume i compile with xith-tk as a sister directory of xith-3d i get the errors starting with this: [javac] Compiling 298 source files to /Users/brimley/Code/Documentation/Java/xith-tk/classes [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeCreator.java:5: package org.collada._2005._11.colladaschema.impl does not exist [javac] import org.collada._2005._11.colladaschema.impl.*; [javac] ^ [javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeCreator.java:24: cannot find symbol i'm assuming i have to place the whoola_collada_jaxb.jar file somewhere...do i have to unarchive it first?? sorry for all the noise, i'm new to cvs and all this
|
|
|
|
|
16
|
Java Game APIs & Engines / Xith3D Forums / where's xith-tk with the whoola collada loaders...
|
on: 2006-06-06 12:00:50
|
i got what came with xith 0.7.1 + third party stuff and not surpsingly its out of date with respect to all of Croft's collada additions..i've got a xith-tk.jar dated April 28th, 2006 which doesn't have a "dae" directory in org/xith3d/loaders/ i downloaded the files in whoola_collada_xith_2006-03-14, and i can find ColladaLoader but its of course in whoola's class hierarchy rather than xith-tk's, and i'd prefer to use the version incorporated in the xith-tk package i'm assuming i have to grab something from cvs, but i can't find the relevant packages at https://xith-tk.dev.java.net/. if someone could give me a direct link to what i need that would be much appreciated. sorry maybe i'm dumb, but there's a whole lot of dead links trying to rummage through the forums and get caught up. side note..whoola_collada_xith's readme is out of date: " For installation instructions, please see http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/package-summary.html" the link gives a 404
|
|
|
|
|
19
|
Java Game APIs & Engines / OpenGL Development / Re: Does LWJGL work on Intel Macs?
|
on: 2006-05-13 01:13:13
|
|
i'm following the install instructions and i'm getting a problem loading a native library and i'm wondering if its cause i'm on an intel mac....
computer:~/Desktop/lwjgl-macosx-0.99 brimley$ java -cp .:res:jar/lwjgl.jar:jar/lwjgl_test.jar:jar/lwjgl_util.jar:jar/lwjgl_fmod3.jar:jar/lwjgl_devil.jar:jar/jinput.jar: -Djava.library.path=native org.lwjgl.test.WindowCreationTest The following keys are available: ESCAPE: Exit test ARROW Keys: Move window when in non-fullscreen mode L: List selectable display modes 0-8: Selection of display modes F: Toggle fullscreen SHIFT-F: Toggle fullscreen with Display.destroy()/create() cycle Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/brimley/Desktop/lwjgl-macosx-0.99/native/liblwjgl.jnilib: at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at org.lwjgl.Sys$1.run(Sys.java:67) at java.security.AccessController.doPrivileged(Native Method) at org.lwjgl.Sys.<clinit>(Sys.java:65) at org.lwjgl.opengl.Display.<clinit>(Display.java:104) at org.lwjgl.test.WindowCreationTest.initialize(WindowCreationTest.java:86) at org.lwjgl.test.WindowCreationTest.main(WindowCreationTest.java:290)
|
|
|
|
|
21
|
Java Game APIs & Engines / JOGL Development / using jogl with eclipse osx
|
on: 2006-04-21 08:43:49
|
|
I am having a problem with getting eclipse to recognize the jogl library. I have it installed in /Library/Java/Extensions along with the native jnilibs. Code will compile fine, so I think this is an eclipse issue, as the import statement isn't being recognized: import net.java.games.jogl.*; has "net" getting that friendly red x and any classes from that library aren't recognized either. Other libraries like biojava i have installed in the Extensions folder are recognized ok by eclipse so that import statements work and code autocompletion works. I've tried explicitly adding jogl.jar as an external jar via the project properties build path tab, but then it just complains that its a duplicate. I'm wondering what I should do to get eclipse and jogl cooperating.
|
|
|
|
|
22
|
Java Game APIs & Engines / Java 3D / box primitive
|
on: 2006-03-15 22:07:22
|
|
this is admittedly an inane qeustion, but i was wondering why the geometry primitive box(float xdim, float ydim, float zdim, Appearance a) is set up to construct a box that is actually double all the purported dims in size. the api just says it "constructs a box of a given dimension and appearance". i know the no argument constructor has everything centered...with one unit on either side of the origin and so this is presumably in line with that....still this had me confused until i labeled the axes and realized what was up.
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|