[JAVA3D] DistanceLOD with only one child, why not?

1999-09-14 Thread Tim Bray
I have hundreds of (reasonably simple) objects in the scene, and rendering was just fine until I pasted Text3D labels on all of 'em. So I wired in a DistanceLOD on each Text3D to make it appear when you got close. (Also a Billboard, looks cool, leaping into existence and swivelling around). Work

[JAVA3D] Dreamcast?

1999-09-15 Thread Tim Bray
I read today that the Sega dreamcast game box, which has frighteningly high-performance 3d rendering, ships with a web browser, but not, alas, with Java yet (apparently Planetweb only started building the browser in May). Anyhow, consider J3D on a box like this... fun. -T. ==

[JAVA3D] Threads?

1999-09-17 Thread Tim Bray
I don't find anything in the API or the javadocs about thread-safety, which is making me kind of nervous. I have a scene with keyboard navigation and as the user moves around I want to splice things in front of him and remove things behind him. (This capability is the maybe the strongest argumen

[JAVA3D] removeChild(), should be obvious

1999-09-19 Thread Tim Bray
Dumb question: why can't you remove children just by passing in the Node object, rather than having to know the index? I mean it's not hard to write utility code to remove a child by ID, or to carry around extra info about what indices the things you're interested in are at, but the fact that the

[JAVA3D] Any dashboard examples?

1999-09-21 Thread Tim Bray
Anyone have an example of a dashboard-style thing? I'm trying to add status readouts to PlatformGeometry objects in the presence of a KeyboardNavigator and having trouble producing any visible effect. -Tim === To unsubscribe

Re: [JAVA3D] OPENSOURCE: Java 3D Scenegraph Viewer

1999-09-22 Thread Tim Bray
At 04:31 PM 9/22/99 -0400, Daniel Selman wrote: >I have been developing a Java 3D scenegraph viewer for my book "Java 3D >Programming". I have put quite a bit of time and effort into the tool >[Java3DTree] and I feel that it will be generally useful to the Java 3D >community. For those of us who

[JAVA3D] Yow... this sucker burns memory

1999-09-24 Thread Tim Bray
I'm modeling an (effectively) infinitely large surface by cleverly stitching things into the scene graph ahead of them and whipping them out behind as the user moves around. Works OK, except the memory usage seems to grow monotonically until after a couple minutes java barfs on out-of-memory. OK

Re: [JAVA3D] QuadArray shading?

1999-09-24 Thread Tim Bray
At 11:34 AM 9/24/99 -0400, Casteel, Don wrote: >I've applied an appearance object to the QuadArray, but what I get is a >single material layed over the box color. > >Is there any way to set up the material so it goes to the geometry and picks >the ambient color from the surface which I can then sc

[JAVA3D] How to run J3D in a browser?

1999-09-24 Thread Tim Bray
Sorry if this is FAQ, I've poked around the Sun site and tried the plausible-sounding suggestion from Mitch Williams (reproduced below) and failed to get j3d running in any browser on WinNT. Has anyone actually done this or seen it done? Is there one working example known to exist anywhere? I'v

[JAVA3D] Obvious, but it took me a while to get it

1999-09-25 Thread Tim Bray
The problem: you want to do something obvious like, say, texture mapping or using specular color, and you find that neither the API spec nor the javadoc nor the tutorial explain how. Yes, they enumerate the arguments and give a one-line explanation, but nothing that actually outlines the concepts

[JAVA3D] So you wanna run J3D in your browser... here's how

1999-09-27 Thread Tim Bray
I spent most of the weekend fighting this. Eventually I'll get around to writing a real HOWTO, but maybe this will help some other folks out. 1. It can be done. I've run it under IE5 and Nav 4.61 on WinNT Workstation and Win95. For now, I'm specializing on IE because the *right* way to do this

Re: [JAVA3D] Any dashboard examples?

1999-09-28 Thread Tim Bray
At 09:44 AM 9/22/99 -0700, you wrote: >I don't have any simple examples but the process is quite >straightforward... ;-) > >Place all objects that you want to appear in display overlay (i.e. a >HUD or dashboard) under the parent transform of the view you want them >to appear in. Since the rest of

[JAVA3D] The sounds of silence

1999-10-02 Thread Tim Bray
The SimpleSound demo that comes with J3d has a complex setup where the sound is enabled in a Behavior. I just wanted a simple background hum, so did the following: MediaContainer mc = new MediaContainer(); mc.setURL("url-of-my-.au-file"); BackgroundSound sound = new BackgroundSound(

[JAVA3D] Sounds of silence: partial answer

1999-10-03 Thread Tim Bray
Question: does setLoop() work? I have my BackgroundSound playing, but all values of setLoop() are ignored. Hmm, I just went and recompiled SimpleSounds.java in the demos and it seems like all values are ignored there too. Is there some magic to getting Sound.setLoop() to work? It seems like the

Re: [JAVA3D] Creating multiplayer games with Java 3D

1999-10-07 Thread Tim Bray
At 12:16 PM 10/7/99 -0400, Jaime Requena wrote: >I'm wondering what kinds of problems Java 3D has >with creating multiplayer games. Does Java 3D have good enough performance >to do something like this? With the current release, with current real-people-have-it hardware, no. Presumably both the s

Re: [JAVA3D] Display range?

1999-10-11 Thread Tim Bray
At 10:22 AM 10/11/99 +0400, Vladimir Olenin wrote: >DG> Using either mm or m, you'll have to set up your view display your object >DG> correctly. The examples are generally set up to display objects in the -1 -> 1 >DG> range around the origin. > >I wonder where i can set this range? The idea is

Re: [JAVA3D] how can I addChild in run time?

1999-10-17 Thread Tim Bray
At 09:59 AM 10/17/99 -0700, Dong-Woo Lee wrote: >- UNCAUGHT EXCEPTION - >javax.media.j3d.RestrictedAccessException: Group: only >a BranchGroup node may be added This is real easy to get. The way it happens to me is that I I build a little piece of scene graph with a TransformGrou

Re: [JAVA3D] KeyNavigatorBehavior and thrashing

1999-10-18 Thread Tim Bray
At 10:54 AM 10/18/99 -0500, Andrew R. Thomas-Cramer wrote: Thanks for the response! By thrashing, I mean the application is using near 100% of CPU time, only when KeyNavigator is used. Well, I subclassed KeyNavBehavior so I could do some stuff in the processStimulus method to provide

[JAVA3D] In case nobody else noticed

1999-10-18 Thread Tim Bray
Enough bugs have been fixed that if you now go download & install the most recent Java 2 JRE & plugin, taking all the defaults, and you then go download and install the most recent OpenGL J3d, taking all the defaults, you can run J3D applets and they work! Belated applause to the J3d guys. -Tim

Re: [JAVA3D] float -vs- double

1999-11-01 Thread Tim Bray
At 12:46 PM 11/1/99 -0500, Casteel, Don wrote: >Is it reasonable to assume I will see a significant improvement in speed if >I take the time to convert everything that's double precision to float >precision? You'll suffer a significant *decrease* in the speed of writing your code because of havin

Re: [JAVA3D] Creating Normals

1999-11-01 Thread Tim Bray
At 12:44 PM 11/1/99 PST, you wrote: >Probably very simple to most, but how do you create normals. Use GeometryInfo and NormalGenerator. Look it up in either the j3d demos or j3d tutorial examples directories. -Tim === To un

Re: [JAVA3D] KeyNavigatorBehavior

1999-11-02 Thread Tim Bray
At 09:36 AM 11/2/99 -0500, Don Casteel wrote: >I've been trying to implement the KeyNavigatorBehavior for the first time, >and am going from the Java3D tutorial. ... >Exception occurred during event dispatching: >java.lang.UnsatisfiedLinkError: subclass Look up the exception you got (Unsatisfied

Re: [JAVA3D] Text2D

1999-11-03 Thread Tim Bray
At 08:31 AM 11/4/99 +1000, Olivier fillon wrote: >I sometimes have a similar behaviour with my 2D text: I've never got 2d text to render readably, it always looks terrible. So I went to 3d text, a bit more work to set up, but it's always readable, particularly if you put it in a billboard. 3d te

Re: [JAVA3D] Attaching Shape3D to View(ing)Platform

1999-11-06 Thread Tim Bray
At 12:58 PM 11/6/99 -0500, you wrote: >Hello everyone. I am attempting to attach a shape or an avatar to a >ViewPlatform or ViewingPlatform (not sure which), so that as I move my >position (using some basic MouseBehaviors I wrote), this object moves with >the rest of the platform. (For those of

[JAVA3D] Glowing lines?

1999-11-10 Thread Tim Bray
I have neat-looking haystack-y objects which use LineArray geometry. I'd like to make some of them glow-y and others dim. Normally I'd use an emissiveColor in a Material in an Appearance to achieve this effec, but it won't let me set the Appearance on the Shape3D because I don't have normals. F

Re: [JAVA3D] Group.removeChild(Node n)?

1999-11-12 Thread Tim Bray
At 12:24 AM 11/12/99 -0500, wayne c deprince jr. wrote: >ahoy all.. >maybe im missing something basic, but why does Locale have a >Locale.removeBranchGroup(BranchGroup bg) method but Group doesn't have >Group.removeChild(Node n) which allows you to remove a child without >knowing its index in the

Re: [JAVA3D] reading arrays of exponential floating point numbers

1999-11-15 Thread Tim Bray
At 06:01 PM 11/15/99 -, Martin Baker wrote: >Would anyone like to suggest the fastest code to load and array of floating >point numbers, which does not allocate memory inside the loop, or use >deprecated classes. Obviously it helps if you know how many numbers you're going to get so you don't

[JAVA3D] Just a petty gripe

1999-11-15 Thread Tim Bray
I want to modify KeyNavBehavior slightly, so I'm off reading KeyNavigator.java from the utils source. I suggest that it's bad coding practice for class member variables to have names like "a". Other amusing variables are "dv", "dp", "mat", and "nda" (oh, that's for the NonDisclosureAgreement).

[JAVA3D] A weird one that might get you

1999-11-15 Thread Tim Bray
I have a moderately big & complex j3d app which, like all such, is a first-rate memory hog. I'm developing on a Win/NT 4.0 workstation (SP4) box, 550 MHz with a good card and lotsa RAM, so performance is adequate :). I run the app in a command-prompt (ie DOS command line) window, by typing java

[JAVA3D] At my wits' end

1999-11-16 Thread Tim Bray
This NT problem that I posted about recently is getting stranger and stranger. Now I have to reboot NT between every two runs of my app, if I start it with "java arg arg arg arg arg" in a DOS window Clue: it doesn't happen when running as an applet in IE5 Clue: NT Workstation 4.0 SP 4 Clue: it

Re: [JAVA3D] At my wits' end

1999-11-17 Thread Tim Bray
At 01:54 PM 11/17/99 +0100, [EMAIL PROTECTED] wrote: >I've taken Nvidias drivers (Viper 550 >WinNT4). They seemed to be faster and didn't get any memory problems. But >shading was totally wrong :( Urgh... how was it messed up? I kind of need shading. -Tim ===

[JAVA3D] Viper V770 bad craziness, watch out!

1999-11-17 Thread Tim Bray
At 11:48 AM 11/17/99 -, Andy Wilkinson wrote: >>>Clue: Viper v770 32M video card > >I know several people who have had problems with memory leaks in a number of >3D applications using a Viper video card. The problem appears to be >connected with Diamond's drivers for the card as they have all

[JAVA3D] Stopping J3D

1999-11-17 Thread Tim Bray
If I'm running in an applet, what are the sensible things to do, J3D-wise, in the stop() and destroy() methods? In stop() presumably I want to preserve my scene graph but tell all the J3D threads to stop running. In particular things like KeyNavBehaviors with that are essentially polling. Or will

Re: [JAVA3D] Stopping J3D

1999-11-17 Thread Tim Bray
At 09:30 AM 11/18/99 +0800, Justin Couch wrote: >> In destroy(), I want to free up the scene graph - I guess doing >> surgery on the SimpleUniverse() to detach my locales and viewing platform >> is in order? >The easiest thing to do is to take your Canvas3D and call startRender() >and stopRender(

Re: [JAVA3D] HELP: Picking

1999-11-23 Thread Tim Bray
At 12:24 PM 11/23/99 -0500, David Charles Hirschfield wrote: >I'm trying to do picking without extending PickMouseBehavior, but I >haven't been able to get it to work. > >What I want to end up with is a method like: > >PickAt(x,y) By a weird coincidence, I just finished getting this to work. 1.

[JAVA3D] Not specifically J3d, how to jump elsewhere?

1999-11-23 Thread Tim Bray
In response to a user event, I want to jump from my j3d applet off to another web page, i.e. mimic the effect of clicking on an in HTML. I know how to do this in javascript, but I've never done it in an applet, and came up empty after a quick tour of the Java 2 docs. Obviously this must be possi

[JAVA3D] Answering my own question

1999-11-23 Thread Tim Bray
I stupidly wrote, 20 minutes into a javadoc search that turned out to require 22 minutes: >In response to a user event, I want to jump from my j3d applet off to >another web page, i.e. mimic the effect of clicking on an in HTML. Applet.getAppletContext(); ==

[JAVA3D] Possible to get at the HTML DOM?

1999-11-23 Thread Tim Bray
Can I, from my mostly-J3D applet, find a way into the IE5 or NS4.x HTML DOM so I can twiddle with stuff in the browser DHTML-style? -Tim === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the mess

Re: [JAVA3D] Possible to get at the HTML DOM?

1999-11-23 Thread Tim Bray
At 08:14 PM 11/23/99 -0600, Adam Hill wrote: >If you are using NS or IE and the Java Plugin, you will have to go >through JSObject. JSObject is a finicky thing so it may or may not be >problematic. You will have to plumb the depths of the Sun Java Plugin >Page. Yee-hah! it works... you can catch

[JAVA3D] Dynamic HTML from J3D

1999-11-24 Thread Tim Bray
At 08:46 AM 11/24/99 -0600, Adam Hill wrote: >Could you run it in IE5 and let us know if it works? (or send a sample >file we can test?) Yeah, and if I don't write it up now I won't get around to it, so here goes. Problem: based on some event in your J3D environment, which is running in an apple

Re: [JAVA3D] simple question

1999-11-29 Thread Tim Bray
At 09:46 AM 11/29/99 -0800, Doug Gehringer wrote: >> can someone point me to the formula such that: >> given the 4 by 4 transform matrix, it calculates >> the translation(x, y, z), rotation(x, y, z) and >> the scale factor(x, y, z)? > >If you just want to get these values, see the Transform3D get(

Re: [JAVA3D] Saving Canvas3D to file

1999-12-01 Thread Tim Bray
At 04:05 PM 8/7/99 -0600, Steph wrote: >I am in desperate need of help. I have written an application that >creates a 3D bar chart. Now I want to save that to a .tif file. I hesitate to suggest this, but if you don't need to do this a *lot*, and you're on Windows, you can just it alt-PrintScree

Re: [JAVA3D] KeyNavigatorBehavor bug, texture mapping bug (was Re: rotation of scene graph)

1999-12-05 Thread Tim Bray
From: Brett Porter <[EMAIL PROTECTED]> > Also, as I move nearer or further away from a surface using > KeyNavigatorBehavior, the texture jumps up and down a little. I see this too, but the surface is not textured, so I don't think the problem is texture-related. -Tim =

Re: [JAVA3D] rotX and rotY

2000-01-10 Thread Tim Bray
At 04:56 PM 1/10/00 +0100, Martijn Vastenburg wrote: >If however you want to do several rotations at once, e.g. roll/pitch/yaw for >an aircraft, you should use the >Transform3D.setEuler(Vector3d) method. er, why? The rotx/y/z method is a lot easier to understand. -Tim ==

Re: [JAVA3D] Whither 1.2Beta1?

2000-01-12 Thread Tim Bray
At 10:26 PM 1/11/00 -0800, John A. Tenney wrote: >I've looked, and haven't seen it. I've had such problems with memory leaks >and poor performance when objects are added and removed from the scene, that >I've been hoping for an update soon. Anybody have an idea when it will be >available? What he

Re: [JAVA3D] 1.21B1 upgrade woes

2000-01-22 Thread Tim Bray
At 08:45 AM 1/21/00 -, Daniel Selman wrote: >I have attached a simple example that is no longer texture mapped on my >system by default. Allen McPherson kindly suggested that I set the flag: >j3d.sharedctx=false er, "set the flag". Where... on the command line.. on the VirtualUniverse object

Re: [JAVA3D] universe bounds

2000-01-24 Thread Tim Bray
At 09:40 AM 1/24/00 -0800, Doug Gehringer wrote: >You want to make sure that > >back clip distance / front clip distance > >Is > 1000 or you can loose depth buffer resolution. Er, should that be "<"? === To unsubscri

Re: [JAVA3D] IDE

2000-01-25 Thread Tim Bray
At 04:23 PM 1/25/00 -, Andrew Phelps wrote: >Can anyone recommend a good IDE which allows good debugging of Java 2 and >Java3D? Real Programmers (tm) debug with System.err.println() Trying to get the combination of j3d and the visual stuff working together is IMHO not cost-effective. And I'

Re: [JAVA3D] Various Java3D Sound issues

2000-01-29 Thread Tim Bray
While we're talking about sound isses: I have a J3D app that uses a looped background sound for ambient rumble. If the app crashes, or if it gets real slow, I usually end up locking-up the sound card (SBLive on NT4) and there's nothing I can do to get sound back but reboot. Is this a common expe

Re: [JAVA3D] Updating the FAQ - that recurring browser question

2000-02-05 Thread Tim Bray
At 11:38 AM 2/4/00 -0600, Steve Pietrowicz wrote: >Since I'm in the process of rewriting this (and other) sections of the Java 3D >FAQ, I want to know what other peoples *recent* experiences have been with >running Java 3D in a browser. I can confirm that with the current versions, if you downlo

Re: [JAVA3D] IndexedGeometryArrays Vs. GeometryArrays?

2000-02-05 Thread Tim Bray
At 12:53 PM 2/5/00 +0200, Rayan Jreije wrote: >It is obvious that IndexedGeometryArrays consume less memory than >GeometryArrays. >How about Rendering Speed?Are IndexedGeometryArray in general slower to >render than GeometryArrays? >On the other hand, are TriangularArrays faster to render than Qu

Re: [JAVA3D] Diamond 770 Ultra

2000-02-19 Thread Tim Bray
At 11:35 PM 2/16/00 -0600, Evan Drumwright wrote: >Just a quick note to those using the Diamond 770 Ultra- by using NVidia's >TNT2 drivers rather than Diamond's drivers, the frame rate increased by 66% >on my Java 3D app! This is not a fluke- I had similar results on a machine >with the same grap

Re: [JAVA3D] billboard behaviour

2000-03-15 Thread Tim Bray
At 01:49 PM 3/15/00 PST, Carlos Proal wrote: >I have read and apparently Billboard behaviour does the trick, >anyone have examples about this or have ideas of how to solve my >problem. Billboard's a little tricky but I got it to work; I seem to recall that the tutorial had good explanation. I se

Re: [JAVA3D] Lose the radians

2000-03-27 Thread Tim Bray
>From: Hugh Fisher [mailto:[EMAIL PROTECTED]] >BUG: Java3D rotations are expressed in the internal >format of radians rather than degrees. SOLUTION: static final public double sDegree = Math.PI / 180.0; -Tim === To unsubs

Re: [JAVA3D] Lose the radians

2000-03-28 Thread Tim Bray
At 12:14 PM 3/29/00 +0930, Andrew Fellows wrote: >I can not believe how seriously this topic is being treated. In my opinion, >anyone who needs to use physical models, understand and use mathemtical >concepts such as rotation and translation should understand the need for >radians, degrees is eye

[JAVA3D] Might want to update your Java2

2000-04-05 Thread Tim Bray
I've had a problem for the longest time [you can see it back in the archives] where my J3D app would intermittently just fail to run, apparently locking up somewhere down in the video driver, rebooting Windows NT would fix it; also running it as an applet under IE5 would work. Go figure. It was

[JAVA3D] Profiling?

2000-04-05 Thread Tim Bray
So, I've got a j3d app that runs too slow. So I want to profile it; I've tried a couple of permutations of java -Xrunprof:yadda-yadda MyApp but the output isn't very interesting. Any good hints? -Tim === To unsubscribe, s

[JAVA3D] Profiling?

2000-04-05 Thread Tim Bray
I wrote: >So, I've got a j3d app that runs too slow. So I want to profile it; I've >tried a couple of permutations of It runs beautifully and quite fast as an app. As an applet under IE5 it runs *totally* slow, and the task manager shows 98% idle time, and this is during time when it's doing J

Re: [JAVA3D] Creating a floor with 1 meter grid marks

2000-04-07 Thread Tim Bray
At 01:15 PM 4/7/00 -0700, John A. Tenney wrote: >What is the best way to do this? I'd like lines to be located on arbitrary >spacings on a floor. Should this be done using textures? I used a couple of QuadArrays, one for the floor, the other for the grid. Worked OK. -T. =

Re: [JAVA3D] MS dumps OpenGL?

2000-04-10 Thread Tim Bray
At 10:58 AM 4/10/00 -0700, Philip Taylor wrote: >no. > >these are separate issues. Just a thank-you to Mr. Taylor for wading in with a clear, unambiguous, timely and and smoke-free answer. If more vendors would do this... -T. =

[JAVA3D] Employment opportunity

2000-05-07 Thread Tim Bray
ls and contact info, check out http://antarcti.ca and follow the "We're hiring!" link. Cheers, Tim Bray, Antarcti.ca Systems Inc. === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the me