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
);
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
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:
__
/ \
||
\_
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
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
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
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
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.
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
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
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
.
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
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
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
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
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
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
-
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
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.
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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.
===
.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.
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
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
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
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;
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(
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
49 matches
Mail list logo