On Tuesday, January 08, 2002 12:22 PM Paul Byrne wrote
> ...
> As a side note, there was an issue with implementing ROAM (or similar
> algorithms) before the Java3D 1.3 API was released because until 1.3 it
> is not possible to determine the planes of the view frustum and therefore
> ROAM tended t
Well, If I understand your answer (my english is so
far to be perfect !) you advise to use a
transformgroup to rotate the objects of the scene and
one rotation for each avatar ?
I am a little disappointed that there is not an easier
solution... but I am going to try it.
Thanks for your help !!!
> Date: Fri, 11 Jan 2002 10:12:36 -0500
> From: Jack Gundrum <[EMAIL PROTECTED]>
>
> The following worked with j3d1.2 but doesn't work with j3d1.3. What changed?
>
> canvases[0].addKeyListener(new java.awt.event.KeyAdapter() {
> public void keyPressed(KeyEvent
Hello,
I had the same problems a few weeks ago, so I tryed
lots of things but my borders were never really good
drawen. You have to set an offset for the polygon
attributes of your appearance
I found this wonderful sample, try it, I think that it
can solve your problem !!!
__
THis is not easy, but what seems to work best is fitting tensioned splines.
See the following reference:
Goodwillie, A. M., Producing Gridded Databases directly from Contour Maps,
Tech Report, University of California, San Diego, Scripps Institution of
Oceanography, La Jolla, CA, SIO Reference Se
Josh Richmond wrote:
> What about adding a MINIMISE_SHARED_GROUPS flag that does not
> share any node that is not USEd? i guess that would require a
> multi-pass parser, eh? Hm. What about a NO_SHARED_GROUPS flag with the
> caveat that you can't use EAI, Scripting, USE or ROUTES? Selfishly it
Hi Justin:
Happy New Year!
I just wanted to submit an answer that I discovered and you can decide
if you want to add it to the J3D (:
In mixing light and heavy components, doing the
"JPopupMenu.setDefaultLightWeightPopupEnabled(false);" wasn't enough for me. I
continue
Hi Jack,
I add the code snippet in HelloUniverse test and it
works as expected in v1.3 beta1. You may forget to click
on the canvas first (so that it get the focus) before
pressing the Escape Key.
- Kelvin
-
Java 3D Team
Sun Microsystems Inc.
>Delivered-To: [EMAIL PROTECTED]
{I add - I actually like this a little better. Although I think a good
compiler would optimise them to be the same thing anyway)
--
Justin Couch http://www.vlc.com.au/~justin/
Freelance Java Consultant http://www.yumetech.com/
Author, Java 3D FAQ Maintaine
Thanks Justin
-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Justin Couch
Sent: Friday, January 11, 2002 9:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] random numbers
stuart wrote:
> My prog requires random graph coordinates. I am
Josh Richmond wrote:
>As a sanity check, I plopped some code from TextureImage.java (the demo) into the
>previous test code I emailed - it works!!
>
>To be more precise, when displaying a textured Box primitive constructed in code, the
>texture remains even though I remove and replace the JPane
Hi Ingo,
We can reproduce it and
Bug 4622680 - Transparency not work if Material is
shared between Appearance
is submitted for investigation.
Thanks for your bug report.
- Kelvin
Java 3D Team
Sun Microsystems Inc.
>Delivered-To: [EMAIL PROTECTED]
>X-Aut
As a sanity check, I plopped some code from TextureImage.java (the demo) into the
previous test code I emailed - it works!!
To be more precise, when displaying a textured Box primitive constructed in code, the
texture remains even though I remove and replace the JPanel containing the Canvas3D.
Hi all,
I'm starting to poke
about with landscapes again. I've mastered rendering a 32x32
heightmap. Last night, I figured out how to put in water, but I've still
got to make a test program to see if I've got it right. And I'm looking
forward to eventually getting a model walking ac
Thanks for the input guys.
Have gone with Justin's suggestion, as the sign in his algorithm is not
dependent on the float value generated - more random?
Stuart
===
To unsubscribe, send email to [EMAIL PROTECTED] and include
> Just use another random boolean.
> boolean sign = Random.nextBoolean();
> float my_float = Random.nextFloat * (sign ? +1 : -1);
I usually use:
float myfloat = (Random.nextFloat * (2*range)) range;
Cheers
==To
unsubs
Attached is an app that demonstrates my texture problem. It uses the Xj3d loader.
To run:
java IndieViewer file.wrl
It displays four viewports of the same scene, pauses, goes to single viewport mode,
pauses, then goes back to tiled mode.
The textures disappear after going to single viewport m
Hi Justin,
Thanks for the more detailed explanation. I do see your dilemma.
What about adding a MINIMISE_SHARED_GROUPS flag that does not share any node that is
not USEd? i guess that would require a multi-pass parser, eh? Hm. What about a
NO_SHARED_GROUPS flag with the caveat that you can't u
How about
scale*(2.0*(rnd.nextFloat())-1.0)
?
stuart wrote:
>Hi,
>
>My prog requires random graph coordinates. I am creating a Random sequence
>and then pulling them off the sequence using nextFloat(). Does anyone know
>how to randomise the sign (positive or negative)?
>
>Thanks in Advance
>
>St
Josh Richmond wrote:
> I definitely need to use getLocalToVworld on Def'd nodes. I use the DEF
> tags to extract references to Transform nodes in my code.
Ok, I understand your problem, and we don't have a short-term solution.
It is a small part of a bigger problem that we have anyway which we
well,
here's a little test application - so may be some can tell me what i am doing
wrong.. or whether this is a j3d bug..
greetings
-Michael Nischt
(sorry, but you have to rename the attached files to "App.java" and "Cube.java"
because of my e-mail client.)
Cube.jav
Description: Binary data
stuart wrote:
> My prog requires random graph coordinates. I am creating a Random sequence
> and then pulling them off the sequence using nextFloat(). Does anyone know
> how to randomise the sign (positive or negative)?
Just use another random boolean.
boolean sign = Random.nextBoolean();
f
Josh Richmond wrote:
> I'm back again.
Uh oh :)
> After adjusting my code to be able to try the Xj3d loader, I notice that
> the textures still disappear! I hesitantly conclude that it must be a
> bug in Java3D someplace. Either that or the Xj3d loader makes the same
> assumptions/"mi
Hi,
My prog requires random graph coordinates. I am creating a Random sequence
and then pulling them off the sequence using nextFloat(). Does anyone know
how to randomise the sign (positive or negative)?
Thanks in Advance
Stuart
=
Justin Couch wrote:
>
>Sharing is something we can't do much about. One of the reasons the old
>sun loader works for some cases is that for many things it would just
>completely ignore the DEF statements. This meant that cases where a node
>was DEF'd just for routing purposes would load fine, but
I'm back again.
After adjusting my code to be able to try the Xj3d loader, I notice that the textures
still disappear! I hesitantly conclude that it must be a bug in Java3D someplace.
Either that or the Xj3d loader makes the same assumptions/"mistakes" that the old
loader did.
I will try to
Hello, All
I need help for converting contour lines to grids.
My original data are contour lines in an area of 1 mile by 1 mile. Each contour line consists of some points, each point has x, y, and z. There are totally about1000 points. My data file is something like the following:
12.3 23.6 601
Thanks for the comments Justin.
I definitely need to use getLocalToVworld on Def'd nodes. I use the DEF tags to
extract references to Transform nodes in my code. I'm not sure how I can get around
this from outside the loader, but if you have any ideas I'd appreciate them. Until
then, or until y
I'm using 1.3 beta 1 (OpenGL) on JDK1.3.1_01 - W2K
I also assumed it was the same old bug. I'm not sure why the demo code works, but the
VRML scene doesn't. I spent a bit of time tracking through the source for each. The
old VRML loader using a QuadArray to form a Box, whereas the demo uses the
Josh Richmond wrote:
> In my application I allow the user to toggle between 1 and 4
> viewports. To do this I remove the JPanels containing the Canvas3D's
> from the JFrame, then add the appropriate JPanel(s) back. The problem
> is that if I remove and then reintroduce a JPanel with an object
Josh Richmond wrote:
> It loads a lot faster than the last time I tried it! Way to go!
Oh, really? We haven't done anything to optimise the load process.
> Question: Is there a way to tell the scene builder not to use shared nodes?
No. The problem we have is that as soon as someone DEF'
Hi everyone,
As mentioned in my last post, I have a weird bug using textures from VRML files loaded
with the old Sun VRML loader. I know this loader isn't supported anymore, but I
thought I'd post this question in case others have found solutions.
In my application I allow the user to toggle b
Hi,
Finally decided to give the Xj3d loader a whirl to see if I could solve my current
disappearing Texture problem (a forthcoming post). It loads a lot faster than the last
time I tried it! Way to go!
I have one question about this loader and one comment.
Question: Is there a way to tell the
hi,
I got a problem with the ModelTransform using the pure immediate mode:
I need to render a tree structure with every node containing a Transform3D
(scene graph similar) so I tried like this:
public void render(GraphicsContext3D gc) {
// save the current ModelTransform
Tran
Hi,
Maybe I'm being a newbie here but I'm having a weird one...
I have a "planar" surface of many triangles with varying height (random
"rough" surface). I am shining a SpotLight down on to it. Without
attenuation set on the light this is fine.
When I set any attenuation (even 1, 0, 0) it app
Hi Marco, I have done it by adding a second cube and then setting the render
parameters
for this second cube to render in wireframe mode. Just add the second cube in the same
BG/TG as the the first one, so they have the same translation and rotation.
This is the code to let the cube render in
The following worked with j3d1.2 but doesn't work with j3d1.3. What changed?
canvases[0].addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ESC
You have to get the coordinates and offset them, then use them to draw a
wireframe.
Frank
-Original Message-
From: Raúl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 5:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Add lines on the borders of a cube
- Original Mess
Probably getting realistic "metals" is going to be difficult, since it
will heavily depend on lighting, surroundings, reflections [ray tracing?]
etc.
Here are some "recipes" transliterated from some old VRML code. I was
disappointed with the results but didn't try it with point lights (which
migh
Here is another transparency bug I could isolate with j3d 1.3b1. I
think it's a serious one and am sure it's independet of your
configuration.
Take the following test program. The left cylinder has a transparency
of 50 percent. But you cannot see that, unless you move the right
cylinder out of vi
Hi
> Other type of surfaces works fine. I always could manage to find the right
>combination of a texture and material parameters. But metal objects evaded me. (I was
>running Java3d 1.2 with DirectX)
> Any suggestions?
Well metals are very hard to achieve with the phong lightning / gouraud
sh
41 matches
Mail list logo