Path: utzoo!attcan!uunet!decwrl!ucbvax!MCIRPS2.MED.NYU.EDU!karron From: karron@MCIRPS2.MED.NYU.EDU Newsgroups: comp.sys.sgi Subject: Re: spaceball Message-ID: <9007290345.AA20870@mcirps2.med.nyu.edu> Date: 29 Jul 90 01:48:26 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: karron%CMCL2.NYU.EDU@cunyvm.cuny.edu Organization: The Internet Lines: 69 X-Unparsable-Date: Sat, 28 Jul 90 20:45:32 DSD emma@northstar.dartmouth.edu asks: > We had a 4D/80 IRIS two years ago, we did a lot things which need dials and >buttons to rotate and translate objects on it. So most of our programs have >been written accordingly. Now we got another 4D/210 IRIS, and we are thinking >of transferring some of our programs to this new machine, but this new machine >has an innovative device called "spaceball", instead of the "dial and button >box". Why not order a dial and button box in addition to the spaceball ? You can run both gizmos at the same time, at least that is what I think. > Could someone please send me a sample program using this new "spaceball" >device or point it out how to convert "the dial and button box" to "spaceball >device". I think that when you install the software, you must specifically ask for the spaceball support software. That should include the man pages and sample source code. While I don't have space ball ( yet; it is on order. ), I installed 3.3 with the spaceball code. This may not help you in your problem of converting from a dial and button box to a Spaceball device, but this raises an import software development issue: What to do when you write a wizz bang program, and you want to show it off on other machines that may not have all the hardware you have? I am working on a possible solution by using the NASA panel library, written by David Tristram. It contains a software analog of the dial and button box as a demo program. My particular problem is that my program depends on a 3space tracker that is polled in the main loop of the program. It looks great, and I want to show it all over the place, except that very very few machines have a 3space gizmo attached. I don't know if there is any code in the library (I have release 9.6 ) that enables the output from the dials and buttons box to be "piped" through the screen version of the hardware. Has anyone out there done what I am about to describe ? (You probably did it better) I have some hacks in the code so that the library will allow you to run a program that can get input from the panels, and if the appropriate hardware is plugged in (Question: How can I sense the presence of the d-b-box or spaceball), the output from the hardware actuators will drive the software panels. A side effect of this is that I can make scripts of the hardware input and replay point of view trajectories and object animations, including delays and velocity information. You can have better annotation on the software panel of what each dial and button on the box does. You can also make multiple level dials when you run out of single purpose dials. As you diddle with each dial, the dial panel show you where the dial value "pointer" is (the dials do not have index marks to show you where they are). My plan is to let the panel library handle special hardware actuators, and my application will run without them, or with recorded data from the actuators. The panel library is available through anonymous ftp from Panel-Request@orville.nasa.gov. (I think) I will submit my hacks to the people there if they want to include it into the library distribution. They are not ready yet, but if you want what I have at the moment, let me know. dan. +-----------------------------------------------------------------------------+ | karron@nyu.edu Dan Karron | | . . . . . . . . . . . . . . New York University Medical Center | | 560 First Avenue \ \ Pager <1> (212) 397 9330 | | New York, New York 10016 \**\ <2> 10896 <3> | | (212) 340 5210 \**\__________________________________________ | +-----------------------------------------------------------------------------+