Re: [JAVA3D] FPS style navigation

2003-06-10 Thread Flavius Alecu
Thanx a lot Artur, You really helped me a great deal here, I wish I could do something in return for you =) Thank you Flavius === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "sign

[JAVA3D] AW: [JAVA3D] Inverted Normals Question

2003-06-10 Thread Florin Herinean
I'm getting that problem currently in my program. I'm loading a model from a file definition, so I'm not able (and don't want) to change the transforms provided within the model. Unfortunately (for me), some of the transforms are mirror transforms. The workaround I'm using in my case is as follows:

[JAVA3D] Appearance Problem

2003-06-10 Thread hterrolle
Hi,   I got a new little problem with the Appearance.     Class ColorCube {      QuadArray cube = new QuadArray(400, QuadArray.COORDINATES |   QuadArray.NORMALS | QuadArray.BY_REFERENCE );     / of course i got the vertex by

Re: [JAVA3D] Appearance Problem

2003-06-10 Thread Dani F.
Hi:   I'm not really sure... but I think your problem is that the ColorCube has 6 shapes... so if you want to change the appearance, you'll have to do something like: int numshapes= colorcube.numShapes(); //or numChildren(); for (int i=0;i     // Change the appearance of each shape }   I hop

Re: [JAVA3D] AW: [JAVA3D] Inverted Normals Question

2003-06-10 Thread Tero Karhunen
Title: RE: [JAVA3D] AW: [JAVA3D] Inverted Normals Question Just as a tangent to this conversation: Florin, since you are using polygon attributes CULL_NONE and backface normal flip set true, have you noticed anything weird? We had those attributes, but it produced very strange effects on AT

Re: [JAVA3D] Appearance Problem

2003-06-10 Thread hterrolle
hi,   That what i was thinking of. Which means that if i use By-reference i cannot use the appearance of the shap3D class. It is what i think but in fact i am not so sure. and i wanted to know if it is possible to use Appearance and By-reference ?   anyway what you said works i try alread

[JAVA3D] Jun for Java (Jun392)

2003-06-10 Thread Yoshiyuki NISHINAKA
We have released a new version, 392, of "Jun for Java". The major changes since the version 379 includes: * "Lisp" menu item and "Prolog" menu item are added to "Tools" menu of the launcher. Each of them will open a dialog and there you can evaluate any statements of Lisp/Prolo

[JAVA3D] New Java Community Site - Java 3D

2003-06-10 Thread Kevin Glass
Just been looking at the new java community site over at www.java.net, which apart from being a poor shade of the former www.javagaming.org, doesn't actually seem to mention Java3D as a project at all? Is this because Java 3D isn't going to be an open project, or is Java 3D not going to get contin

Re: [JAVA3D] AW: [JAVA3D] Inverted Normals Question

2003-06-10 Thread Alessandro Borges
I agree with Florin. But I think you can also try CULL_FRONT, to not overload your graphic engine. I test to recalculate the normals (NormalGenerator) but  effects is buggy, as  shown in the screenshots below, but it can be a issue of the model I used ... The best result I've found so far in

Re: [JAVA3D] AW: [JAVA3D] Inverted Normals Question

2003-06-10 Thread Nick Stark
Ok, so it looks like it's going to just be some sort of hack around this problem for now. On the mathematical side of things, does there exist an equivalent transform to a mirror transform (one that causes this normal problem) of a form that does not cause the problem? I'm just wondering if there

[JAVA3D] SimpleUniverse.getPreferredConfiguration returns NULL

2003-06-10 Thread Raghavendra R
Hi, I am resending this since i got an "undelivered message from postfix". Can SimpleUniverse.getPreferredConfiguration return NULL anytime? One of our customers is getting an " ERROR: Canvas3D constructed with a null GraphicsConfiguration This will cause a NullPointerException in a subsequent r

[JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
Right now I have a static background in my J3D app. But the background is the same all over. Is it possible to have a large bitmap as a bakground so when you rotate the view, you see other parts of the bakground? Thanx ===

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Ben Moxon
Yes, map it onto a sphere, with normals generated on the inside, add that to the background geometry and there you go. -Original Message- From: Flavius Alecu [mailto:[EMAIL PROTECTED] Sent: 10 June 2003 13:30 To: [EMAIL PROTECTED] Subject: [JAVA3D] "rotating" background Right now I have

[JAVA3D] AW: [JAVA3D] AW: [JAVA3D] Inverted Normals Question

2003-06-10 Thread Florin Herinean
You're right. For a well formed model (ccw), CULL_FRONT should be ok. Unfortunately, I cannot make that assumption in my case, since my models often have 2 sided faces, so I *must* use CULL_NONE, and in that case I *must* negate the normals. However, I have never seen the buggy effect from y

[JAVA3D] rendering using projection that is not a 4x4 matrix

2003-06-10 Thread Young, Jason
In a nutshell, I need to use a specific projection in the rendering process that is NOT a 4x4 projection matrix (it is instead a very large rational poloynomial). It would be great if there was a View.projectionMethod(...) that I could override, but there isn't. I have been looking high and low for

[JAVA3D] AW: [JAVA3D] rendering using projection that is not a 4x4 matrix

2003-06-10 Thread Florin Herinean
I think you must use software rendering to do that (i.e. implement your own rendering engine). The hardware rendering is using a 4x4 projection matrix and there is no way (to the moment) you can override that. So, in my opinion, your RFE should be sent to the graphic card manufacturers (NVIDIA, ATI

[JAVA3D] AW: [JAVA3D] New Java Community Site - Java 3D

2003-06-10 Thread Florin Herinean
Well, java3d is not a "community project", but it's part of the j2se optional packages. That means that java3d is NOT an open project and will never be ! In contrast, on Java Games and Game Technologies Projects it is mentioned jogl (Java bindings for OpenGL) which seems to be where gl4java is goin

[JAVA3D] AW: [JAVA3D] SimpleUniverse.getPreferredConfiguration returns NUL L

2003-06-10 Thread Florin Herinean
I'm not sure, but it might be possible when j3d.stereo system property is set to REQUIRED and no stereo hardware support present. That's the only difference between SimpleUniverse.getPreferredConfiguration and the default graphics configuration used by Canvas3D constructor when a null GraphicsConfi

[JAVA3D] New Java Web Page

2003-06-10 Thread Helder Marques
Hi every one! Here, the new Java Web Page (with games): http://www.java.com/en/index.jsp Greetings! === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For

Re: [JAVA3D] New Java Community Site - Java 3D

2003-06-10 Thread Daniele Dellafiore
Kevin Glass wrote: I'm not drawing any conclusions, did I just miss Java 3D? Kev Doug said here and on a javagaming forum that during this JavaOne they will show alternative for future evolution of J3D. So, maybe that we just have to wait a few hours :) -- Libertà e critica ==

[JAVA3D] rendering using projection that is not a 4x4 matrix

2003-06-10 Thread Young, Jason
Thanks for the response! I figured it would be something like that... Looks like I will be doing a lot of my own transformations behind the scenes (pun unintended) :) -Original Message- From: Florin Herinean [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:13 AM To: [EMAIL PROTECTE

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
um ok, will it then b projected to infinity? so you can't actually come closer to it? I'm kinda new to all this and I don't have a clue how to write the code for what you just said =) === To unsubscribe, send email to [EMAIL

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Jeremy Booth
Flavius Alecu wrote: um ok, will it then b projected to infinity? so you can't actually come closer to it? thats correct, the way the background works is you can either place an image (that will never move), or you can place some geometry there. If you placve some geomtry then anything within a 1

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
ok, thanx a lot I'll try it right away =) === 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

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
one thing i'm not sure i understand the line of code inside the try block..you load a model, what is that modell? is that the background with the stars?? I have mine in a .jpg bitmap =/ === To unsubscribe, send email to

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Jeremy Booth
Flavius Alecu wrote: one thing i'm not sure i understand the line of code inside the try block..you load a model, what is that modell? is that the background with the stars?? I have mine in a .jpg bitmap =/ that model is simply a cube, with the normals facing in, then the texture applied, the

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Ben Moxon
Here is a snippet that creates a Sphere rather than using a model: BranchGroup bgGeometry = new BranchGroup(); Appearance App = new Appearance(); try { Texture tex = new TextureLoader(new java.net.URL(YOUR_BACKGROUND_IMAGE), this).getTexture(); App.setTexture(tex); } catch (Exception e) { e.print

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
ok, I work with 3d studio max...how can I make a sohere or a cube like you said, with the normals inverted?? or is it enough with a normal, textured cube, saved as a model? === To unsubscribe, send email to [EMAIL PROTECTED]

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
hehe, thanx ben, it suddenly got a little easier =) === 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

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Jeremy Booth
Ben Moxon wrote: Here is a snippet that creates a Sphere rather than using a model: The reason I used a cube was at the time I couldn't get the sphere to look right, my texture always ended up stretched around the middle of the sphere, and squashed at the top and bottom, the cube worked, so I stuc

Re: [JAVA3D] COLOR_3 + UCIO + Transp.Att

2003-06-10 Thread N. Vaidya
Thanks for the BugId. I'm using Texture2D as a workaround currently. Rgds Vaidya >On Mon, 9 Jun 2003 14:12:51 -0700, Kelvin Chung <[EMAIL PROTECTED]> >wrote: >N. Vaidya wrote: > >>Well, still seem to be having problems with transparency >>and COLOR_3 + UCIO with the J3D FCS. Here is a summary:

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
i tried bens code but it seems to squash the picture like you said...and it's zoomed in like hell, my stars look really crapy now =P and another thing I've noticed, when the camera is "upside down" the mouse is inverted...when I go left, it turns to right..wierd... =) ===

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Ben Moxon
Isn't the navigation thing because you are looking at the background, so it is not that the sphere is turning to the right, it is that *you* are turning to the left? The sphere-mapping is a bit annoying I don't doubt it is feasible to use a standard cube instead- I only haven't done it because I

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Kevin J. Duling
Another way to create stars is simply to generate points. If your app needs a background field of stars such as a space shooter, then you may want to look at http://home.earthlink.net/~kduling/Java3D/Stars/index.html. - Original Message - From: "Flavius Alecu" <[EMAIL PROTECTED]> To: <[E

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
yeah, the navigation thing is another issue =) how can I use a cube instead of the sphere? I tried to just creating a cube with the same call, just change from sphere to box, but it didn't accept the parameters...do I have to change anything??? ==

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
thanx kevin, i could really use that =) anyway, when I run this applet from kevins url...it hangs after a couple of seconds, and then it works again. the thing is, my applet does the same..i have full control of it, then it hangs for 2 or three secods and then i can navigate again...anyone have

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Kevin J. Duling
I can't help you with the hanging. It's working fine on this end after the initial startup. - Original Message - From: "Flavius Alecu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 7:40 AM Subject: Re: [JAVA3D] "rotating" background > thanx kevin, i could real

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Flavius Alecu
i wonder what it could be...since it happens on that applet too, it can't be my code...maybe some settings or something...and it seemes to happen only in the applets that use mouse navigation... === To unsubscribe, send emai

Re: [JAVA3D] FPS style navigation

2003-06-10 Thread Flavius Alecu
Artur, I couldn't turn on -verbose:gc since can't really run my applet as an aplication. For that, I have to change a lot of my code. But I just wonder if you might know what could affect those hangings...I just noticed that another applet on the web hanged when I was runing it, just for a oup

Re: [JAVA3D] "rotating" background

2003-06-10 Thread Kevin J. Duling
The reason for that is because of what a square image does when it's mapped to a spherical surface. A good analogy is maps of the globe. Watch Greenland explode in size when it's tranfered from the sphere to a flat map. That's why maps are also displayed in the orange-peel-like format (e.g., \/\/

Re: [JAVA3D] FPS style navigation

2003-06-10 Thread Alessandro Borges
About: > I couldn't turn on -verbose:gc since can't really run my applet as an aplication. For that, I have to change a lot of my code. You can: 1) Use MainFrame class to wrap your applet and run it as a application, than run with -verbosegc See demos ;-) 2) Use Appletviewer -J-verbosegc my

[JAVA3D] j2me+java 3d

2003-06-10 Thread karen smetana
i realize that the new jsr-184 java library soon to come is the solution for 3d graphics on wireless/embedded devices, but, and maybe this is super dumb to ask, but can i run a java 3d application on the j2me wireless emulator? i was thinking that theoretically as long as you had java and the java

Re: [JAVA3D] j2me+java 3d

2003-06-10 Thread Helder Marques
Perhaps with a J3D + JSP + Servlet solution. Putting a J3D solution on the server side, maybe would be useful. karen smetana wrote: i realize that the new jsr-184 java library soon to come is the solution for 3d graphics on wireless/embedded devices, but, and maybe this is super dumb to ask, but c

Re: [JAVA3D] j2me+java 3d

2003-06-10 Thread Phil Chu
J2ME is a subset of J2SE and is missing facilities like floating-point support. So I seriously doubt it. -Phil karen smetana wrote: i realize that the new jsr-184 java library soon to come is the solution for 3d graphics on wireless/embedded devices, but, and maybe this is super dumb to ask, but c

Re: [JAVA3D] FPS style navigation

2003-06-10 Thread Flavius Alecu
alessandro, ok, problem solved..but what does verbose:gc do? and how can it solve my other problem, which causes the applet to hang?? === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message

[JAVA3D] model in background

2003-06-10 Thread Flavius Alecu
is it possible to add both geometry and models in the same bakground? I was wondering if you'd make a bunch of whtie dots acting as stars as geometry on a bakground, could you import and add a modell, say a sun, in the same bakground? or is there another way to project the modell to infinity as

Re: [JAVA3D] model in background

2003-06-10 Thread Kevin J. Duling
A Background can pretty much be treated like a BranchGroup. And models are Geometry. - Original Message - From: "Flavius Alecu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 12:43 PM Subject: [JAVA3D] model in background > is it possible to add both geometry a

Re: [JAVA3D] model in background

2003-06-10 Thread Flavius Alecu
but i tried adding two geometries to a bakground and then it showed only the first one i added. how can i add both geometry and model? === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message

[JAVA3D] 3d engine question

2003-06-10 Thread Flavius Alecu
First, I'd like to apologize for this simple question but I really have no clue, that's why I'm asking. Anyway, to the question...when making a 3D app, say you want a building so you can explore its insides...I guess small things like benches, chairs and tables, you could design them adn import

Re: [JAVA3D] FPS style navigation

2003-06-10 Thread Alessandro Borges
verbosegc shows how is the garbage collection in your application. intense gc means your applet/application is allocating/de-allocating a large amount of objects. It sucks your memory and CPU power. Sometimes increasing memory heap its enougth. (as setting -Xmx128m -Xms32m ). Sometimes you need t

[JAVA3D] Geometry compression: Huffman

2003-06-10 Thread Karsten Wutzke
Hi all! I'm delving into geometry compression for a university seminar. But I still have some problems understanding the variation a the Huffman coding used. 1. Huffman coding takes a set of symbols as input to build up the tree. What are these symbols in geometry compression? Are these just the d

Re: [JAVA3D] j2me+java 3d

2003-06-10 Thread karen smetana
as i understand it, JSR-184 the soon to be released 3d graphics API for J2Me, uses a subset of (Java 3D?) scenegraph linguistics with opengl bindings. is there any proof that java 3d can NOT be run on an emulator or embedded device? i haven't figured it out, and i have never seen it done before, b

Re: [JAVA3D] j2me+java 3d

2003-06-10 Thread Mark Kahrl
Java3D requires awt support in the JRE, this is currently not implemented in J2ME. Mark === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". Fo

Re: [JAVA3D] Selective transparent background

2003-06-10 Thread Dr. Humberto Trejos
Thank you I couldn't get it working. In any way I try, I get a transparency of the whole image. Humberto Jeremy try something like: Point3d[] vertecies = {new Point3d(-width+offsetX,-height+offsetY,depth), new Point3d(width+offsetX,-height+offsetY,depth), new Point3d(wi

[JAVA3D] How to create a polyedron?

2003-06-10 Thread Γιάννης
Hi guys, does anyone know how to create a pentaedron, hexaedron and so on!. Could you give me the code that is applied in any case?   Thanks in advance

Re: [JAVA3D] Geometry compression: Huffman

2003-06-10 Thread Mark Hood
> Date: Tue, 10 Jun 2003 13:02:23 +0200 > From: Karsten Wutzke <[EMAIL PROTECTED]> > > I'm delving into geometry compression for a university seminar. But I > still have some problems understanding the variation a the Huffman > coding used. The source code for the GeometryCompressor utilit

Re: [JAVA3D] FPS style navigation

2003-06-10 Thread Flavius Alecu
yeah, guess your right..I changed from 20 MB to unlimited and now it doesn't hang anymore...although maybe it isn't so good if my code is bad === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of

[JAVA3D] about freelook.java

2003-06-10 Thread Flavius Alecu
If the author, or someone who uses this class reads thios, I'äd really need some help from you. This class is great, however, there is one thing which I don't really find useful. When you "look" up or down, you sooner or letar get upside down...when the view is upside down, the mouse is inverte

Re: [JAVA3D] Selective transparent background

2003-06-10 Thread Jeremy Booth
Dr. Humberto Trejos wrote: Thank you I couldn't get it working. In any way I try, I get a transparency of the whole image. Humberto I *think* it might be your image (not sure though), the following image has 5 dots on it red, green, blue, white and black, all should be completely opaque, the rest

Re: [JAVA3D] j2me+java 3d

2003-06-10 Thread á͹´ÃÙÇì à´ÇÔÊѹ (Andrew Davison)
The memory limitations of these devices will be a limiting factor as well. One approach might be to run the Java 3D application on the server side and send a stream of screenshot thumbnails over to the client side. I've no idea how to do that. - Andrew ===