Show Posts
|
|
Pages: [1] 2
|
|
1
|
Java Game APIs & Engines / Java 3D / RasterTextLabels not working
|
on: 2005-11-07 00:00:47
|
|
Has anyone been using J3D.org's RasterTextLabel class in there application recently? I have started to incorporate them in my application to no avail. They are not being displayed for some reason. I have attempted all the advice from previous posts and nothing resolves the problem.
If anyone has any suggestions on using this class, or using another way to get nice 2d text in my 3D scene would be a great help.
Much appreciated,
Zak
|
|
|
|
|
2
|
Java Game APIs & Engines / Java 3D / Disabled behavior keeps old AWTEvents
|
on: 2005-08-24 12:00:21
|
I have X number of behaviors that I add to my universe, and only enable the one currently being used, via the setEnable() method. All behaviors are woke up on AWTEvents. Whenever I switch the behaviors, and do my processing (i.e. picking), it keeps the AWT events that were processed in the other behavior. Is there anyway to clear out the buffer of AWT events given to me in the processStimulus method ? Thanks Zak 
|
|
|
|
|
3
|
Java Game APIs & Engines / Java 3D / Canvas3D in a SpringLayout
|
on: 2005-08-20 18:19:37
|
Hello all, I am attempting to use my Canvas3D in a SpringLayout. I have it appearing by itself in the SpringLayout, but when I add more components, it seems like the canvas' size gets set to 0,0. I can explictly set the preffered size to (w,h), and it appears. (No rescaling though). Any suggestions? Thanks Zak 
|
|
|
|
|
5
|
Java Game APIs & Engines / JOGL Development / Re: JOGL Overlays
|
on: 2005-03-23 12:23:32
|
|
Another question: Using 2D, you have specified the 2D box in 3D space. If I perform transformations upon that geometry, how would you specify it, in 2D or 3D? I have tried rotations and scales on the box, yet I get very strange results.
Thanks
Zak
|
|
|
|
|
6
|
Java Game APIs & Engines / JOGL Development / Re: JOGL Overlays
|
on: 2005-03-23 11:44:35
|
Thanks, I figured out my problem. I was setting the alpha value of my overlays, which produced the illusion of the 3D being placed on top of my 2D lines (only where they intersected). Thanks for all the help.  Zak
|
|
|
|
|
7
|
Java Game APIs & Engines / JOGL Development / Re: JOGL Overlays
|
on: 2005-03-22 16:52:59
|
|
Thanks for the code, works beautifully.
Quick question. Once I draw a 2D box, and I put 3D objects in the scene, the 2D should always be "on top" of the 3D objects in the depth buffer. For some reason, this effect is not doing it. Is there anyway to acheive this effect?
Thanks
Zak
|
|
|
|
|
8
|
Java Game APIs & Engines / Xith3D Forums / Re: IndexedQuadArray in Xith3D
|
on: 2005-03-19 22:17:32
|
|
I am trying to draw a wireframe model of a sphere, like lat/lon lines. I already have the geometry defined as Indexed Quads. I could define them as individual lines, but that changes all of my algorithms and data structs.
Just trying to find a one-to-one correspondance between J3D and Xith.
Zak
|
|
|
|
|
12
|
Java Game APIs & Engines / Xith3D Forums / Comment on Xith
|
on: 2005-03-16 17:19:47
|
Just a statement. Even though Xith looks nice, how can anyone understand how to work it without accompanying Javadocs and documentation? I have looked at the "tutorials" and have been anything but .....good. Is there any effort to go back and document the base classes before adding more functionality to this API? If not, it would be a shame. I can see the potential if it is usable. My 2$ Zak 
|
|
|
|
|
16
|
Java Game APIs & Engines / Xith3D Forums / Re: Text labels
|
on: 2005-03-07 16:40:59
|
I don't know if that what I was looking for. I am needing to place text labels as a part of naming things in my 3D universe, that would move along with the object as it is being updated. In java3D, there was a RasterTextLabel class that did the type of functionality I needed. Also, if you look at the application called Freefall (on mac) the labels shown following the satellites is what I am trying to reproduce. Thanks Zak 
|
|
|
|
|
18
|
Java Game APIs & Engines / Xith3D Forums / Re: IndexedQuadArray in Xith3D
|
on: 2005-03-04 13:56:47
|
I have tried adding a quad using the IndexedQuadArray and a triangle using the IndexedTriangleArray. The quad does not display, but the triangle will. Below is my code. The quad: 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
| public Shape3D getGrid(){ int numIndexes = 4; int[] indexes = new int[]{0,1,2,3}; IndexedQuadArray a = new IndexedQuadArray(4,IndexedTriangleArray.COORDINATES,numIndexes); Point3f[] coords = new Point3f[]{ new Point3f(1.0f,1.0f,0.0f), new Point3f(-1.0f,1.0f,0.0f),new Point3f(-1.0f,-1.0f,0.0f),new Point3f(1.0f,-1.0f,0.0f)}; a.setValidIndexCount(4); a.setCoordinates(0,coords); a.setIndex(indexes); Appearance app = new Appearance(); Material material = new Material(); material.setAmbientColor(.6f,.6f,.6f); material.setLightingEnable(true);
app.setColoringAttributes(new ColoringAttributes(new Color3f(1.0f,0.0f,0.0f),ColoringAttributes.FASTEST)); app.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE,PolygonAttributes.CULL_NONE,0f)); Shape3D s = new Shape3D(a,app); return s; } |
The triangle: 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
| public Shape3D getTriangle(){ int numIndexes = 3; int[] indexes = new int[]{0,1,2}; IndexedTriangleArray a = new IndexedTriangleArray(3,IndexedTriangleArray.COORDINATES,numIndexes); Point3f[] coords = new Point3f[]{ new Point3f(1.0f,1.0f,0.0f), new Point3f(-1.0f,1.0f,0.0f),new Point3f(-1.0f,-1.0f,0.0f)}; a.setValidIndexCount(3); a.setCoordinates(0,coords); a.setIndex(indexes); Appearance app = new Appearance(); Material material = new Material(); material.setAmbientColor(.6f,.6f,.6f); material.setLightingEnable(true);
app.setColoringAttributes(new ColoringAttributes(new Color3f(1.0f,0.0f,0.0f),ColoringAttributes.FASTEST)); app.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE,PolygonAttributes.CULL_NONE,0f)); Shape3D s = new Shape3D(a,app); return s; } |
Any thing I am doing wrong? Thanks Zak
|
|
|
|
|
20
|
Java Game APIs & Engines / Xith3D Forums / Re: IndexedQuadArray in Xith3D
|
on: 2005-03-04 10:54:48
|
|
Thanks for your reply, ewillis. Is there also a way to set the color indicies as well?
So far, I can use a PointArray for my points and my geometry shows up (also QuadArray), but with the IndexedQuadArray, I am not seeing anything.
I have used the setIndex(int[] indicies) for the coordinates, and set my Shape3D's coloring attributes.
Anyone have examples of working with the IndexedQuadArray?
Thanks :-/
Zak Nixon
|
|
|
|
|
21
|
Java Game APIs & Engines / Xith3D Forums / IndexedQuadArray in Xith3D
|
on: 2005-03-03 15:20:10
|
I am trying to refactor my J3D code to semi-match the Xith3D api. I am trying to use the IndexedQuadArray node, but whenever I need to set my indicies ( setCoordinateIndices(0,indicies) in J3D), I have no equivalent in Xith3D... Is there an alternate way of doing this? Thanks Zak Nixon 
|
|
|
|
|
24
|
Discussions / Jobs and Resumes / OpenGL/JOGL/J3D position
|
on: 2003-10-27 17:09:42
|
|
Hello all,
We are looking for a experienced Opengl/jogl/java3d programmer ASAP that will work on 3d graphics in the US Military simulation arena.
Sorry about the lack of information here, but please email me with questions. I can't post too much information here on a forum.
If you have questions, please send them to my email: zaknixon@davidson-tech.com
Thanks
Zak Nixon
|
|
|
|
|
26
|
Discussions / Jobs and Resumes / Possible JOGL/J3D/OpenGL Job Position
|
on: 2003-09-19 14:43:32
|
|
My company is (possibly) looking for an experienced OpenGL/Java3D/JOGL programmer to work on our graphics packages. We mainly do DoD defense simulations, and need some fancy 3D displays to show off our capabilities.
If interested, please email me at:
zaknixon@davidson-tech.com
Thanks
Zak Nixon Software Engineer Davidson Technologies Inc.
|
|
|
|
|
28
|
Java Game APIs & Engines / JOGL Development / Possible JOGL/J3D/OpenGL Job Position
|
on: 2003-09-19 14:21:06
|
|
My company is (possibly) looking for an experience verteran in the graphics community who is well versed in Java and has alot of experience with OpenGL (5+years, maybe more). You also need to have an understanding of Java/Java3D/Jogl since our existing code is in Java3D, and we want to go the OpenGL/JOGL route.
If interested, please send me an email and/or resume to:
zaknixon@davidson-tech.com Subject: Resume
Thanks Zak
|
|
|
|
|
30
|
Java Game APIs & Engines / JOGL Development / Re: Xith3D progress
|
on: 2003-07-29 13:32:38
|
|
David,
I was wondering if the normal behavior structure is maintained, ie. by using OrbitBehavior in my program, is there a way to just "plug-and-play" my J3D with Xith3D ported code and it run?
Thanks,
Zak
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|