[JAVA3D] AWT not found

2007-02-22 Thread Fredrik Andersson
Hello! I have written a class that manage to create a 3D image from a BranchGroup saved to disk. This works fine if I run it like a standalone Java Application. It also works fine if i call this class from a JSP-page running from a Orion server. But when I try to execute the same JSP-page from a

Re: [JAVA3D] Problems with a Polygon J2ME (test source valid)

2005-03-22 Thread Fredrik Andersson
); appearance.setPolygonMode(polygonMode); Best regards Fredrik From: Fredrik Andersson <[EMAIL PROTECTED]> Reply-To: Discussion list for Java 3D API To: JAVA3D-INTEREST@JAVA.SUN.COM Subject: [JAVA3D] Problems with a Polygon J2ME (test source valid) Date: Tue, 22 Mar 2005 10:22:48 + Hello! This is actu

[JAVA3D] Problems with a Polygon J2ME (test source valid)

2005-03-22 Thread Fredrik Andersson
Hello! This is actually a app for J2ME but since it includes 3D-programing I am pretty sure that you guys are the best to help me. I'm struggle with geometry cordinates and texture cordinates. I trying to create a polygon with 8 corners, just a plane surface. Something like this: __ / \ || \_

[JAVA3D] Shouldn't a object be all in the samt color?

2005-01-28 Thread Fredrik Andersson
Hello! I got a Canvas3D with some light, DirectionalLight. I do not think there is any strange with that. But when I add an Shape3D and set the Appearance something like this: appearance = createMaterialAppearance(new Color3f(colors[0], colors[1], colors[2])); GeometryInfo gi = null; NormalGenerato

Re: [JAVA3D] "GLX" missing on display?

2005-01-26 Thread Fredrik Andersson
Hello! Thanks for your reply! My out put from glxgears was: Xlib: extension "GLX" missing on display ":0.0". Error: couldn't get an RGB, Double-buffered visual Seems like a problem to me, but perhaps you can tell me what? My hardware is: Motehrboard ASUS P3B-F Graficcard Nvidia Riva TNT Screen Mul

[JAVA3D] "GLX" missing on display?

2005-01-25 Thread Fredrik Andersson
Hello! Perhaps this is a Linux question, but since I suck at Linux... how ever my guess is that you for sure know the answer. I have installed Java 3D from: http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.html ...onto my Mandrake 10.1 I tried to run the HelloUniversie but I just ge

[JAVA3D] Why? -They should really close this list

2005-01-25 Thread Fredrik Andersson
Hello! Sorry to bother you with this, perhaps I have missed something? But in a reply to my latest question there was a comment: (They should really close this list) Perhaps this is a stupid question but is there an other list or forum for this subject, Java 3D? I have to say that this is the best

[JAVA3D] Java 3D for Linux on Intel PIII?

2005-01-24 Thread Fredrik Andersson
Hello! I have just installed Mandrake 10.1 on my PC (Intel PIII) and would like to do som Java 3D development. I have found this site: http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.html linked from: http://java.sun.com/products/java-media/3D/ When I enter the link: ftp://ftp.tux.

[JAVA3D] How to create a smoth Sphere?

2004-06-09 Thread Fredrik Andersson
Hello! All my objects that I create tend to be very angular and not so smooth that I would like. Please just take a look at the example code below that are ready to be lounched. Especialy the spheres, they tend to be very full of edges. Is it possible to set any flag to indicate a smoother renderin

[JAVA3D] Problems with SpotLight

2004-06-08 Thread Fredrik Andersson
e the directionlight and the ambientlight just comment the line: simpleUniverse.addBranchGraph( addLight() ); Best regards Fredrik Andersson The code import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainFrame; i

[JAVA3D] Problems with SpotLight

2004-06-08 Thread Fredrik Andersson
e the directionlight and the ambientlight just comment the line: simpleUniverse.addBranchGraph( addLight() ); Best regards Fredrik Andersson The code import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainFrame; i

[JAVA3D] SV: [JAVA3D] easy demonstration

2004-03-18 Thread Fredrik Andersson
. Best regards Fredrik Andersson -Ursprungligt meddelande- Från: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] bob Skickat: den 18 mars 2004 14:47 Till: [EMAIL PROTECTED] Ämne: [JAVA3D] easy demonstration Hi all, I want to demonstrate my java3d software within my website. Is the

[JAVA3D] Problems with Mouse Navigation (full test source valid)

2004-02-17 Thread Fredrik Andersson
d get eager to help :-) Best regards Fredrik Andersson Below is the full code to test this (it include 2 classes): import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainFrame; import com.sun.j3d.utils.universe.*; i

[JAVA3D] SV: [JAVA3D] run java in internet explorer

2004-02-13 Thread Fredrik Andersson
Hello! I have followed this disscussion with alot of interest. The conclusion seems to be that to be able to run a 3D-applet in a webbrowser you have to install a 3D-java-plugin. But I tried this excelent game (se link below), by Tonny Espeset, at a computer that I am absolutly sure that has NO 3

[JAVA3D] SV: [JAVA3D] How to paint a aim on the GlassPane

2004-02-11 Thread Fredrik Andersson
transparency mask in a platformGeometry. See Java3D's PlatformGeometry demo Alessandro --- Fredrik Andersson <[EMAIL PROTECTED]> escreveu: > Hello! > > I try to paint a filled oval on the glasspane, but > it doesn't seems to work. > > This works on a regular JFram

[JAVA3D] How to paint a aim on the GlassPane

2004-02-10 Thread Fredrik Andersson
Hello! I try to paint a filled oval on the glasspane, but it doesn't seems to work. This works on a regular JFrame but doesn't seems to work on a JMainFrame even do it extends from JFrame. My code to test my attemtp is below. So if any one could give me a hint or solution for this it would be g

[JAVA3D] Problems with stearing the camera angel with the mouse

2004-02-04 Thread Fredrik Andersson
Hello! I try to write a class that implements the mouseinterfaces. When the user moves the mouse the camera should update its viewing-angel. To develop this I use a colorcube as stand in for the camera. I update the colorcubes angel at X and Y axles. But now I have a problem when I try to update

[JAVA3D] SV: [JAVA3D] Apply textures to non rectangular surfaces

2004-01-21 Thread Fredrik Andersson
- Från: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] Fredrik Andersson Skickat: den 19 januari 2004 16:46 Till: [EMAIL PROTECTED] Ämne: [JAVA3D] Apply textures to non rectangular surfaces Hello! Thanks for all help with my texturecordinate problems. Thanks to Alessandro for your

[JAVA3D] Trying to set texture cordinates for Shape3D

2004-01-16 Thread Fredrik Andersson
Hello! Sorry to bother you again about this. I have build a 3D-object with a couple of Shape3D objects, add them to a TransformGroup. Now its time for the texture to the different Shape3D-surfaces. So I guess that I have to start to set the cordinates for the Texture before I chane my Appearance.

[JAVA3D] SV: [JAVA3D] How to apply More than one Texture to a Shape3D?

2004-01-15 Thread Fredrik Andersson
PROTECTED] Ämne: Re: [JAVA3D] How to apply More than one Texture to a Shape3D? Fredrik Andersson said: > Now when the geometry is done, I also want to apply different textures > to different surfaces of the Shape3D. Hi You can't do it like that, the texture is applied to the Appearen

[JAVA3D] How to apply More than one Texture to a Shape3D?

2004-01-15 Thread Fredrik Andersson
Hello Mates! I try to build a Shape3D object with a pretty big "float[] coordinateData". In other words it got alot of different surfaces. By the way I do not want to model this through some 3D-model program, I want to code it my self so I know that I master it. Now when the geometry is done, I a

[JAVA3D] SV: [JAVA3D] How to put texture on a non rectangular surface? (Test source avilable)

2004-01-14 Thread Fredrik Andersson
ure map it, then import into Java3D, as a LWS, OBJ, VRML or 3DS. There are a lot info about it in the net. Try the nvidia and ATI web site, in the developer section. Alessandro --- Fredrik Andersson <[EMAIL PROTECTED]> escreveu: > Hello! > > I'm trying to make a model of a East

[JAVA3D] How to put texture on a non rectangular surface? (Test source avilable)

2004-01-14 Thread Fredrik Andersson
Hello! I'm trying to make a model of a EastGerman Tank (MTLB). So far I have made the body, this example builds on Sun GeomInfoApp.java. Now I wan't to add differnet texture on each surface (not only rectangles) of the tank, but I can't understand how. My class extends from BranchGroup and has a

[JAVA3D] SV: [JAVA3D] SV: [JAVA3D] SV: [JAVA3D] Problems with 3DS objects (test code valid)

2003-12-16 Thread Fredrik Andersson
loaders right now, just started. Where can I download the loader U use ? Do I install it in the rootfolder of java ? Tnx a lot ! -Oorspronkelijk bericht- Van: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] Namens Fredrik Andersson Verzonden: maandag 15 december 2003 9:07 Aan

[JAVA3D] SV: [JAVA3D] Performance loss with 3DS-objects

2003-12-15 Thread Fredrik Andersson
So it looks for me that this isn't a problem of J3D but of thedata you use. Michael Le Mon, 15 Dec 2003 09:26:37 +0100, Fredrik Andersson <[EMAIL PROTECTED]> a écrit: > Hello! > > I experience a great performance loss with the rendering when I add a > object > from a 3

[JAVA3D] Performance loss with 3DS-objects

2003-12-15 Thread Fredrik Andersson
-programs then 3D Studio that is better to use? Best regards Fredrik Andersson === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, sen

[JAVA3D] SV: [JAVA3D] Problems with 3DS objects (test code valid)

2003-12-11 Thread Fredrik Andersson
Hello! I changed my code to this but still nothing to see. I guess that it is smarter to just extract the model instead of the scene (I guess that is what this now is doing). package java3d; import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j

[JAVA3D] Problems with 3DS objects (test code valid)

2003-12-11 Thread Fredrik Andersson
Hello! I can't get this right. I try to load a object from a 3DS-file but it will not be visible in the Canvas. I do not know what I'm doing wrong. Perhaps my 3DS-files is corrupt, but I do not think so. I have also added lights. So if any one could give me some code that loads and show a 3DS-obje

[JAVA3D] SV: [JAVA3D] floor texturing

2003-12-08 Thread Fredrik Andersson
Hello Tom!   I developed this class for a ground. I think I use the 3:rd constructor. But perhaps this isn't the best way, I do not know.   Best regards Fredrik    import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainF

[JAVA3D] Problems with loading a 3DS object (with test code)

2003-12-01 Thread Fredrik Andersson
hankfull! Best regards Fredrik Andersson My code to test this is: import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainFrame; import com.sun.j3d.utils.universe.*; import com.sun.j3d.utils.geo

[JAVA3D] Problems to load a 3DS object (test source valid)

2003-12-01 Thread Fredrik Andersson
ownload it. So if any one could give me a hint I would be most thankfull! Best regards Fredrik Andersson My code to test this is: import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainFrame; import com.sun.j3d.utils.universe

[JAVA3D] SV: [JAVA3D] Problems - Collision detection (full test source)

2003-11-26 Thread Fredrik Andersson
scenegraph directly. >-Original Message- >From: Fredrik Andersson [mailto:[EMAIL PROTECTED] >Sent: 26 November 2003 07:56 >To: [EMAIL PROTECTED] >Subject: [JAVA3D] Problems - Collision detection (full test source) > >Hello! >I have struggled with this problem for a

[JAVA3D] Problems - Collision detection (full test source)

2003-11-26 Thread Fredrik Andersson
Hello! I have struggled with this problem for a month now, so I really need some help. I try to develop a game with collision detection with Java3D. To narrow it down I have made two test-java-files for you. File 1) Applet where I add all my objects (2 ColorCubes) File 2) A KeyListener to stear one

[JAVA3D] SV: Re: [JAVA3D] How do a create a hole?

2001-10-09 Thread Fredrik Andersson
TransparencyAttribute to the Shape3D (via Appearance) which holds the transparent gif ? regards Paul Fredrik Andersson schrieb: > Hello! > > I thougt that I could create a window on a wall with just ading a > transparent gif as a texture, but I couldn't see through the texture as > a to

[JAVA3D] How do a create a hole?

2001-10-05 Thread Fredrik Andersson
X| -- Image from side with object behind) | | X But with the big hole (transparent gif) in the texture, I couldn't se the object (x) behind it. Does anyone know how too create a hole or a window in a texture-plane? Best regards Fredrik

[JAVA3D] SV: [JAVA3D] Still upsidedown

2001-10-04 Thread Fredrik Andersson
Hello! I solved it, the problem was the way I set the setCoordinate. I set them wrong and I found the right way in the TexturedPlane-class downloaded with Java3D Thanks for all your help!! Best Regards Fredrik -Ursprungligt meddelande- Från: Fredrik Andersson Skickat: den 3

[JAVA3D] Still upsidedown

2001-10-03 Thread Fredrik Andersson
st regards Fredrik Andersson ==To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the

[JAVA3D] SV: Re: [JAVA3D] Change the startingpoint

2001-10-03 Thread Fredrik Andersson
like: TransformGroup vpTrans = simpleU.getViewingPlatform().getViewPlatformTransform(); Then you can translate it to wherever you want. - John Wright Starfire Research Fredrik Andersson wrote: > > Hello! > I have asked a similar question before... > ...But is there a easy way t

[JAVA3D] Texture hanging upsidedown

2001-10-02 Thread Fredrik Andersson
d textureGround = new TextureGround(20.0f, 0.0f, 20.0f, point3f, fileName, this); return textureGround; } I can't understand why it always appear hanging upsidedown, so if someone understands please let me know! Best Regard

[JAVA3D] Change the startingpoint

2001-10-02 Thread Fredrik Andersson
like this ViewingPlatform.setStartCordsTo(x,y,z); But I can't find anything like that. So if any one have an easy way to solve this please let me konw! Best regards Fredrik Andersson ==To unsubscribe, send email to [EMAIL

[JAVA3D] Set an other startpoint for KeyNavigatorBehavior?

2001-09-28 Thread Fredrik Andersson
Hello! I'm trying to set an other startpoint for my keyNavigatorBehavior. I can't figure out where the default point is set when I add this. I would like to set the point for the "camera" a bit higher up on the Y -axies, so I can se a landscape from above. State for the camera now (Camera I__I,

[JAVA3D] My Shape3D appears upside down??

2001-09-24 Thread Fredrik Andersson
NavigatorBehavior); So if someone understand why it won't appare with the texture in the right way, please let me know. Best Regards Fredrik Andersson Ps A good deed a day brings good karma to the world in these days. ===

[JAVA3D]

2001-09-24 Thread Fredrik Andersson
.addChild(keyNavigatorBehavior); So if someone understand why it won't appare with the texture in the right way, please let me know. Best Regards Fredrik Andersson Ps A good deed a day brings good karma to the world in these days.

[JAVA3D] SV: [JAVA3D] DirectX and OpenGL do they fit together?

2001-09-03 Thread Fredrik Andersson
Hello! Thanks for your answers. They helped a lot. Best regards Fredrik ==To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to

[JAVA3D] DirectX and OpenGL do they fit together?

2001-09-03 Thread Fredrik Andersson
Hello! I have the jdk for DirectX. If I create some object in 3D studio max for Open GL, is it possible to import that object and run the applet anyway? Best Regards Fredrik ==To unsubscribe, send email to [EMAIL PROTEC

[JAVA3D] SV: [JAVA3D] Problem with an simpel Shape3D

2001-08-30 Thread Fredrik Andersson
Hello myself! Tehe answer was simple! The object wherer out of range of the light! Regards Fredrik -Ursprungligt meddelande- Från: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]För Fredrik Andersson Skickat: den 30 augusti 2001 16:45 Till: [EMAIL PROTECTED] Ämne: [JAVA3D

[JAVA3D] Problem with an simpel Shape3D

2001-08-30 Thread Fredrik Andersson
Hello! I can't get this object (Shape3D) to be visable in an applet. Can somebody try to se if they can? It is supposed to be a solid cube. Best regards Fredrik import java.applet.*; import java.awt.*; import java.awt.Frame; import java.awt.event.*; import com.sun.j3d.utils.applet.MainFrame;

[JAVA3D] IndexedGeometryArray.setCoordinateIndex, how does it works?

2001-08-23 Thread Fredrik Andersson
right, but the second block will. So please explaine to me what is wrong with the first. Best regards Fredrik Andersson First block, wich is wrong; indexedQuadArray.setCoordinate(0, new Point3f( -0.2f, 0.0f, -0.2f )); indexedQuadArray.setCoordinate(1, new Point3f(

[JAVA3D] Problems with PolygonAttributes.CULL_NONE

2001-08-15 Thread Fredrik Andersson
Hello! I'm trying to get the "PolygonAttributes.CULL_NONE" to work in an 3D applet. But I can't get it right I ad here a full class wich extends Shape3D, wich in my opinion use "PolygonAttributes.CULL_NONE", wich also in my opinion shuld be solid. I also add the html-file to run it and an appl