Page 1 of 2

SGI Cube Demo

Posted: Tue Aug 05, 2008 3:47 pm
by Martin Steen
Hi,

I just finished a little demo for Irix-machines.
It shows a spinning SGI-cube-logo using OpenGL.

http://www.martin-steen.de/sgi/3dlviewer-sgi.gz

The whole demo is compressed into a single executable file.
Just gunzip the file and start it. I have tested it on my Fuel
workstation. The picture below shows how the programm
should look like.

There are a few keys for interaction:
e - toggle environment-mapping
r - reset/toggle rotation
a - toggle anaglyph mode (red/cyan glasses required)
esc - quit
Left mousebutton + mousemove: rotate
Right mousebutton + mousemove: zoom

Image
(3D model made with Wings3D)

Best regards, Martin

P.S.: if glut libraries are missing, install the nekoware glut package:
ftp://ftp.nekochan.net/pub/downloads/Ne ... s3.tardist

Re: SGI Cube Demo

Posted: Tue Aug 05, 2008 10:41 pm
by nekonoko
Looks fantastic on my Onyx2, thanks for sharing it! The only issue I noted is that on my system it segfaults after pressing escape. Not really a big deal though since it's supposed to be shutting down at that point anyway.

I'll post this up on the blog in a bit.

Re: SGI Cube Demo

Posted: Wed Aug 06, 2008 1:53 am
by edefault
afaik there once came a screen saver with IRIX (named "CPU eater") which was quite similar.
Or was it a background? On my Fuels, none of these seem to apply any more - light blue only.

The Cube: rotational axis is meant to be vertical, and no lone tree hanging from a desert ceiling ;)

Re: SGI Cube Demo

Posted: Wed Aug 06, 2008 3:55 am
by fzalfa
maybe can used as screensaver !!

Laurent

Re: SGI Cube Demo

Posted: Wed Aug 06, 2008 12:37 pm
by JacquesT
Nice! Middle wheelmouse zooms in and out...

Would be nice if it spun with the speed of the mouse movement!

-Jacques

Re: SGI Cube Demo

Posted: Wed Aug 06, 2008 4:49 pm
by deBug
Works fine on my fuel.
No segfault on exit on my box.
Everything is just dandy.

Any chance you could expand it with an option to read in a user determined image file to use as environment map?

Great job!

//Harry

Re: SGI Cube Demo

Posted: Wed Aug 06, 2008 11:25 pm
by Martin Steen
@nekonoko: thank you for the blog report! :-) About the crash: there is no
crash on my own machines (fuel & octane). Strange.

@edefault:
@deBug: ok, I work on a new version where you can use your own image
and that has an improved rotation control.

@fzalfa: unfortunately, I don't know how to make a screensaver for Irix.
Maybe somefrom from the forum here knows.

Best regards, Martin

Re: SGI Cube Demo

Posted: Wed Aug 06, 2008 11:30 pm
by ramq
No problem whatsoever on my funky R12k-300/V6 Octane2. It's a bit slow performing, but otherwise OK.
As with deBug, I get no segfaults.

Question: Can you make the spinning controllable, like in the SGI-demo "powerflip"?

And the last one... when will this hit Nekoware? :D

Re: SGI Cube Demo

Posted: Thu Aug 07, 2008 1:28 am
by Martin Steen
ramq wrote:No problem whatsoever on my funky R12k-300/V6 Octane2. It's a bit slow performing, but otherwise OK.
As with deBug, I get no segfaults.


It runs VERY slow on my Octane1. Without environment-mapping (press e to switch off),
it runs fast, but it looks only half as nice, of course ;)

ramq wrote:Question: Can you make the spinning controllable, like in the SGI-demo "powerflip"?


Where can I find that powerflip demo?

ramq wrote:And the last one... when will this hit Nekoware? :D


I will ask Joerg if he can help me with that.

Best regards, Martin

Re: SGI Cube Demo

Posted: Thu Aug 07, 2008 1:50 am
by nekonoko
The segfault could be something specific to InfiniteReality. Incidentally, Die Planeten does the same for me on exit. Not a big deal though, the programs still work as expected - just figured I'd mention it. Maybe someone else with IR can confirm.

Re: SGI Cube Demo

Posted: Thu Aug 07, 2008 3:05 am
by ramq
Martin Steen wrote:It runs VERY slow on my Octane1. Without environment-mapping (press e to switch off),
it runs fast, but it looks only half as nice, of course ;)

It probably depends very much on what specific hardware you have. If you're using the older MGRAS-series of graphics (considering you mention specificly Octane1) I belive it can be slower. I don't believe it's that much CPU-bound cause the CPU isn't hitting top-spot, only using ~20-25% on R12k 300MHz.
(I'm no way certain, so anyone please correct me on this one)

Where can I find that powerflip demo?

It's part of the "Demonstration Programs" package on the Applications CD for IRIX 6.5.
Once installed you'll find the binary either through the desktop, or launch it using:

Code: Select all

/usr/demos/General_Demos/powerflip/RUN

Another feature I'd like to see is to make it run in a window mode as an option.
And be able to zoom beyond the border of the screen making a really deep detail view.

Re: SGI Cube Demo

Posted: Thu Aug 07, 2008 4:44 am
by edefault
edefault wrote:afaik there once came a screen saver with IRIX (named "CPU eater") which was quite similar.


Anyone any idea where to this one vanished?

Re: SGI Cube Demo

Posted: Thu Aug 07, 2008 5:22 am
by stuart
Still here for me in 6.5.30!

Toolchest: Desktop -> Customize -> Background: CPU Eater

... just as you remember it ;)

Re: SGI Cube Demo

Posted: Thu Aug 07, 2008 7:21 am
by edefault
regarding IRIX 6.5.22 on my ancient Indigo2 R10k you´re rigtht,
but no luck on IRIX 6.5.28 on my Fuel - there´s no CPU eater,
and the backround stays light blue regardless of what I choose.

Re: SGI Cube Demo

Posted: Fri Aug 08, 2008 1:34 am
by ramq
I know I had the "cpu eater" as a possible screensaver option, but I'm trying to find out in what package it is hidden in. One way to find out is using swmgr and click "Manage installed software" and by using Ctrl+F search files from there. Be sure to include files in the search.

I know it lives in my Fuel, but it's at home and I've had little time to spare at evening time for some days now. All my install media are at home too, so I'm out of luck at the moment. (Some Octane Demos CD's maybe?)