OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
#21
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
The source code for twilight:

/*
*
* cc twilight.c -lgl_s -lm -o twilight
*
* Copyright © 1991, 1992 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that the name of Silicon Graphics may not be used in any advertising or
* publicity relating to the software without the specific, prior written
* permission of Silicon Graphics.
*
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
*
* IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE
* POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

/*
* A background/root window that looks like the twilight sky.
* Howard Look
*/
#include <stdbool.h>
#include <GL/gl.h>
#include <math.h>
/* prototypes */
void draw_background(float x, float y, bool rgb_mode);
long star_color(float y, float max_y);

/* point in y where color transition occurs */
#define TRANSITION 0.2
#define NUM_SMALL_STARS 2500
#define NUM_BIG_STARS 200

/* colors */
static long orange[] = {255,72,0};
static long blueish[] = {0,110,189};
static long black[] = {0,0,0};

static unsigned short half[16] = {
0x5555, 0xAAAA, 0x5555, 0xAAAA,
0x5555, 0xAAAA, 0x5555, 0xAAAA,
0x5555, 0xAAAA, 0x5555, 0xAAAA,
0x5555, 0xAAAA, 0x5555, 0xAAAA};

int main()
{
long gid, sizex, sizey;
bool redraw_needed = 0;
bool rgb_mode;
short val;
long dev;

rgb_mode =
getgdesc(GD_BITS_NORM_SNG_RED) &&
getgdesc(GD_BITS_NORM_SNG_GREEN) &&
getgdesc(GD_BITS_NORM_SNG_BLUE);

imakebackground();
gid = winopen("");
if (rgb_mode)
RGBmode();
gconfig();

if (!rgb_mode)
defpattern(1,16,half);

qenter(REDRAW,gid);

while (1)
{
if (redraw_needed)
{
getsize(&sizex, &sizey);
ortho2(-.5, (float)sizex-.5, -.5, (float)sizey-.5);
viewport(0, sizex-1, 0, sizey-1);
draw_background((float)sizex, (float)sizey, rgb_mode);
redraw_needed = FALSE;
}

while (qtest() || (! redraw_needed))
{
dev = qread(&val);
if (dev == REDRAW)
redraw_needed = TRUE;
}
}
    return 0;
}


void draw_background(float x, float y, Boolean rgb_mode)
{
    int i,j;
float v1[2],v2[2],v3[2],v4[2];

v1[0] = v4[0] = 0.0;
v2[0] = v3[0] = x;

v1[1] = v2[1] = 0.0;
v3[1] = v4[1] = y*TRANSITION;

if (rgb_mode)
{
bgnpolygon();
c3i(orange);
v2f(v1);
v2f(v2);
c3i(blueish);
v2f(v3);
v2f(v4);
endpolygon();

v1[1] = v2[1] = y;
bgnpolygon();
c3i(blueish);
v2f(v4);
v2f(v3);
c3i(black);
v2f(v2);
v2f(v1);
endpolygon();
}
else
{
color(BLACK);
clear();
color(BLUE);
setpattern(1);
clear();
setpattern(0);
}

srand48(0); /* seed so stars are always the same */

    bgnpoint();
for (i = 0; i < NUM_SMALL_STARS; i++)
{
float v[2];

v[0] = x*drand48();
v[1] = y*drand48();

if (rgb_mode)
cpack(star_color(v[1], y));
else
color(WHITE);

v2f(v);
    }
    endpoint();

for (i = 0; i < NUM_BIG_STARS; i++)
{
float v[2], size;

v[0] = x*drand48();
v[1] = y*drand48();
size = drand48();

pushmatrix();
translate(v[0],v[1],0.0);
scale(size,size,size);

if (rgb_mode)
cpack(star_color(v[1], y));
else
color(WHITE);

sboxf(0.0,1.0,3.0,2.0);
sboxf(1.0,0.0,2.0,3.0);
popmatrix();
}

swapbuffers();
}


long
star_color(float y, float max_y)
{
    int r,g,b;
float a;
float ratio;

if (y > max_y/2)
return(0xFFFFFF);

    if (y < TRANSITION*max_y)
{
ratio = y / (max_y * TRANSITION);

r = orange[0]*(1.0 - ratio) + blueish[0]*ratio;
g = orange[1]*(1.0 - ratio) + blueish[1]*ratio;
b = orange[2]*(1.0 - ratio) + blueish[2]*ratio;
    }
else
{
ratio = (y - max_y*TRANSITION)/(max_y - max_y*TRANSITION);

r = blueish[0]*(1.0 - ratio) + black[0]*ratio;
g = blueish[1]*(1.0 - ratio) + black[1]*ratio;
b = blueish[2]*(1.0 - ratio) + black[2]*ratio;
    }

/* r,g and b are now the sky color at y, now blend with white */

a = (y/(max_y/2.0));

r = r*(1.0-a) + 255*a;
g = g*(1.0-a) + 255*a;
b = b*(1.0-a) + 255*a;

    return (r&0xff) + ((g&0xff)<<8) + ((b&0xff)<<16);
}

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,247
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
11-06-2024, 10:40 PM
#22
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
Hi Vishnu,

I have packed up or am in processing packing my SGI gear due to house move.

Dreading the disassembly of big Onyx 350 rack :-( .

Will give this is spin once unpacked (might be at least 6 months away).

I wish someone could get their hands on this CD-ROM - "OpenGL Performer™ 3.2 for Linux®" and dump to image and post on "Internet Archive".

The install instructions and reference to CD-ROM are here: https://www.infania.net/misc1/sgi_techpu...20-005.pdf

Cheers from Oz,

jwhat/John
(This post was last modified: 11-06-2024, 11:21 PM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
11-06-2024, 11:19 PM
#23
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
Thanks, very kind!
Unfortunately I thought it would have been easier: I am glad it successfully installed (I didn't think it would), but now I am struggling with license: pfconv.exe and others CAN find it... but they anyway complain, and I can't undesrstand what they want, any idea?

Quote:PF Notice:                    level Info (4) set by environment variable PFNFYLEVEL
PF Info:                      Alpha version: PERFORMER_3.2a
PF                            ================================================
PF                            Checking for 'performer_windows_sgi' license.
PF                            Did not find a 'performer_windows_sgi' license.
PF                            ================================================
PF                            Checking for 'performer_windows' license.
PF                            'performer_windows' License check failed.  Reason:
PF                            Exact Error Message from License Manager is:
PF                            --> Terminal Server remote client not allowed (-103,577)
PF                            Performer was unable to acquire a license.
PF                            Visit http://www.sgi.com/software/performer/ for more details.
PF                            This is a fatal error condition.
PF                            Read the error messages for an explanation.

How do I fix this? 
Terminal Server remote client not allowed (-103,577)

I am simply launching from commandline (windows 11)
(This post was last modified: 11-09-2024, 11:38 AM by jumpjack.)
jumpjack
O2

Trade Count: (0)
Posts: 6
Threads: 0
Joined: Sep 2022
Location: italy
Find Reply
11-09-2024, 11:37 AM
#24
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
The Windows installer is now available here:

http://windowsdraw.altervista.org/abandonware.html

Without the licens data, it starts as a free evaluation version (but I can't anyway solve the flexlm error).
jumpjack
O2

Trade Count: (0)
Posts: 6
Threads: 0
Joined: Sep 2022
Location: italy
Find Reply
11-11-2024, 10:29 AM
#25
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
I've posted this before, but here are all the licenses I have for commercial SGI software (you'll have to find the binaries yourself. Well, okay, someday in a fit of inexplicable enthusiasm I might post the binaries too):
Code:
#
# FLEXlm license file
#
## FLEXlm License File FLMLF 1.0
## Filename:/var/flexlm/license.dat

FEATURE TV/Base toolworks 3.800 1-jan-0 0 1C466A88CDF55FAD72F6
HOSTID=ANY \
        ISSUER="Hax Force, Inc."
FEATURE TV/AnyChip-AnyOS toolworks 3.800 1-jan-0 0
ACB60AF81EC176CB3072 \
        HOSTID=ANY ISSUER="Hax Force, Inc."
FEATURE TV/AnyChip-AnyOS/MP/Big toolworks 3.800 1-jan-0 0
3C36AA98536D925B25EC \
        HOSTID=ANY ISSUER="Hax Force, Inc."
FEATURE TV/AnyChip-AnyOS/PE toolworks 3.800 1-jan-0 0
5CA6CA78FC82CD639C59 \
        HOSTID=ANY ISSUER="Hax Force, Inc."
FEATURE TV/AnyChip-AnyOS/PGIHPF toolworks 3.800 1-jan-0 0
ECC69A588D7C1EC842FA \
        HOSTID=ANY ISSUER="Hax Force, Inc."

FEATURE MPEG_Encoder sgifd 1.000 1-jan-0 0 FC06EA34D1949044BC74
HOSTID=ANY \
        vendor_info="MPEG ENCODER" ISSUER="Hax Force, Inc."

FEATURE CINEPAK_Encoder sgifd 1.000 1-jan-0 0 EC56AA04E319E54BF986 \
        HOSTID=ANY vendor_info="CINEPAK ENCODER" ISSUER="Hax Force, Inc."

FEATURE cosmoworlds sgifd 1.000 1-jan-0 0 3C864A245335146AE7E9
HOSTID=ANY \
        vendor_info="COSMO WORLDS" ISSUER="Hax Force, Inc."

FEATURE CosmoCode sgifd 2.000 1-jan-0 0 FCF66A54DDE13FDB4FDB
HOSTID=ANY \
        vendor_info="COSMO CODE" ISSUER="Hax Force, Inc."

FEATURE cpp sgifd 7.000 1-jan-0 0 8CE65AB48DDCD394E6E1 HOSTID=ANY \
        vendor_info="C++ <=128 CPU" ISSUER="Hax Force, Inc."

FEATURE cc sgifd 7.000 1-jan-0 0 ACE61A24A73E99462ECC HOSTID=ANY \
        vendor_info="C <=128 CPU" ISSUER="Hax Force, Inc."

FEATURE auto_pp sgifd 7.000 1-jan-0 0 8C862A14661D81BA12EB HOSTID=ANY \
        vendor_info="APO <=128 CPU" ISSUER="Hax Force, Inc."

FEATURE pcpcol sgifd 1.000 1-jan-0 0 2C160AA4D66A13FE9B31 HOSTID=ANY \
        vendor_info="PCP COLLECTOR" ISSUER="Hax Force, Inc."

FEATURE pcpmon sgifd 1.000 1-jan-0 0 7CD6BA645E2207A47581 HOSTID=ANY \
        vendor_info="PCP MONITOR" ISSUER="Hax Force, Inc."

FEATURE netvisualizer sgifd 2.000 1-jan-0 0 6C566A94B429608FA8DE HOSTID=ANY \
        vendor_info="NET DISPLY STN" ISSUER="Hax Force, Inc."

PACKAGE MayaCDS sgiawd 1.500 90B090A1BF3C146C7AFC \
        COMPONENTS="Maya:1.5:1 MayaFX:1.5:1 MayaArtisan:1.5:1" \
        OPTIONS=SUITE
FEATURE Maya sgiawd 1.500 1-jan-0 0 2CA6BAC4F3A1E748824F HOSTID=ANY \
        ISSUER="Hax Force Inc."

FEATURE Mayaf sgiawd 1.500 1-jan-0 0 2CA66A045CFD0D12C27E HOSTID=ANY \
        ISSUER="Hax Force Inc."
FEATURE MayaUpdate sgiawd 1.500 1-jan-0 0 1CB6DA74841741540791
HOSTID=ANY \
        ISSUER="Hax Force Inc."
FEATURE MayaFX sgiawd 1.500 1-jan-0 0 9C866A14954436B78283 HOSTID=ANY
\
        ISSUER="Hax Force Inc."
FEATURE MayaVFX sgiawd 1.500 1-jan-0 0 3C464AE43029A927CEBD HOSTID=ANY
\
        ISSUER="Hax Force Inc."
FEATURE MayaFXf sgiawd 1.500 1-jan-0 0 9C466A242075DF63CEC3 HOSTID=ANY
\
        ISSUER="Hax Force Inc."

FEATURE MayaCDS sgiawd 1.500 1-jan-0 0 AC96BA645F0E1391B9B3 HOSTID=ANY
\
        ISSUER="Hax Force Inc."
FEATURE AW_VP sgiawd 3.200 1-jan-0 0 DC462A84CF2755BD0650 HOSTID=ANY \
        ISSUER="Hax Force Inc."
FEATURE AW_UTIL sgiawd 1.000 1-jan-0 0 0C366AA46CB6B52FCE2D HOSTID=ANY
\
        ISSUER="Hax Force Inc."

PACKAGE MayaUnlimited sgiawd 1.500 A0B00041AEA500E897B3 \
        COMPONENTS="MayaLive:1.0:1 MayaCloth:1.0:1 MayaFur:1.0:1" \
        OPTIONS=SUITE
FEATURE MayaUnlimited sgiawd 1.500 1-jan-0 0 1C464AE4CAF95E7038DF \
        HOSTID=ANY ISSUER="Hax Force Inc."

PACKAGE MayaUnlimitedV sgiawd 1.500 00C000B13C5377DD97B1 \
        COMPONENTS=MayaFurV:1.0:1 OPTIONS=SUITE
FEATURE MayaUnlimitedV sgiawd 1.500 1-jan-0 0 1C86EA14550E27EDB606 \
        HOSTID=ANY ISSUER="Hax Force Inc."

PACKAGE MayaCDSV sgiawd 1.500 40903071139CC1EAC153 \
        COMPONENTS="MayaV:1.5:1 MayaVFX:1.5:1" OPTIONS=SUITE
FEATURE MayaCDSV sgiawd 1.500 1-jan-0 0 ACC62A9492820A092C80
HOSTID=ANY \
        ISSUER="Hax Force Inc."
FEATURE AW_MPM sgiawd 1.500 1-jan-0 0 6C66CAF45E76FA454397 HOSTID=ANY
\
        ISSUER="Hax Force Inc."

FEATURE cosmocreate sgifd 1.000 1-jan-0 0 0C568A9467B3290A3A6F
HOSTID=ANY \
        vendor_info=COSMOCREATE ISSUER="Hax Force, Inc." ck=23

FEATURE CosmoCode sgifd 2.000 1-jan-0 0 FCF66A54DDE13FDB4FDB
HOSTID=ANY \
        vendor_info="COSMO CODE" ISSUER="Hax Force, Inc." ck=119

FEATURE cosmoworlds sgifd 1.000 1-jan-0 0 3C864A245335146AE7E9
HOSTID=ANY \
        vendor_info="COSMO WORLDS" ISSUER="Hax Force, Inc." ck=248

FEATURE mediaserver sgifd 3.000 1-jan-0 0 ACE65AC4B75C79361600 \
        VENDOR_STRING=ANY HOSTID=ANY vendor_info="Media Base ANY" \
        ISSUER="Hax Force, Inc." ck=26 SN=234050

FEATURE mediaserver sgifd 1.000 1-jan-0 0 4CE6AA442DC5102ED5F9 \
        VENDOR_STRING=S,DM,L,XL HOSTID=ANY vendor_info="MEDIABASE XL"
\
        ISSUER="Hax Force, Inc." ck=35

FEATURE MineSet_client sgifd 2.500 1-jan-0 0 ECA6FA64807D0E89B52B \
        HOSTID=ANY vendor_info="MINESET CLIENT" ISSUER="Hax Force,
Inc." \
        ck=134 SN=234057

FEATURE MineSet_server sgifd 2.500 1-jan-0 0 5C669A9414032A215332 \
        HOSTID=ANY vendor_info="MINESET SERVER" ISSUER="Hax Force,
Inc." \
        ck=135 SN=234100

FEATURE MineSet_server sgifd 2.500 1-jan-0 0 2C666A841C486F95DDB5 \
        VENDOR_STRING=5up HOSTID=ANY vendor_info="MINESET SERVER" \
        ISSUER="Hax Force, Inc." ck=243 SN=234103

FEATURE f90 sgifd 7.000 1-jan-0 0 4C66BA143C7230ED9230 HOSTID=ANY \
        vendor_info="F90 <=128 CPU" ISSUER="Hax Force, Inc." ck=42

FEATURE f77 sgifd 7.000 1-jan-0 0 ACC63A346C444B7C99A7 HOSTID=ANY \
        vendor_info="F77 <=128 CPU" ISSUER="Hax Force, Inc." ck=0

FEATURE auto_pp sgifd 7.000 1-jan-0 0 8C862A14661D81BA12EB HOSTID=ANY
\
        vendor_info="APO <=128 CPU" ISSUER="Hax Force, Inc." ck=26

FEATURE netvisualizer sgifd 2.000 1-jan-0 0 6C566A94B429608FA8DE
HOSTID=ANY \
        vendor_info="NET DISPLY STN" ISSUER="Hax Force, Inc." ck=38

FEATURE netvis_datastation sgifd 2.000 1-jan-0 0 3CC65A04E920B402F84B
\
        HOSTID=ANY vendor_info="NETV DATA STN" ISSUER="Hax Force,
Inc." \
        ck=216

FEATURE normalizer sgifd 1.000 1-jan-0 0 DC968AE44FFB1573E7C8
HOSTID=ANY \
        vendor_info=normalizer ISSUER="Hax Force, Inc." ck=48

FEATURE WorkShop sgifd 2.000 1-jan-0 0 6C16DAD49AC3AF2388D3 HOSTID=ANY
\
        vendor_info="PRODEV WORKSHOP" ISSUER="Hax Force, Inc." ck=73

FEATURE WorkShopMPF sgifd 2.000 1-jan-0 0 BCF69A24F40E9748B2A2
HOSTID=ANY \
        vendor_info="WORKSHOP PRO MPF" ISSUER="Hax Force, Inc." ck=83

FEATURE propel sgifd 2.000 1-jan-0 0 1CC68A84F4DDE1C2776D HOSTID=ANY \
        vendor_info=Propel ISSUER="Hax Force, Inc." ck=86

FEATURE provision sgifd 1.000 1-jan-0 0 5C869AA411A952448575
HOSTID=ANY \
        vendor_info=Provision ISSUER="Hax Force, Inc." ck=222

FEATURE RapidApp sgifd 1.000 1-jan-0 0 7C963AA48668A9763CEE HOSTID=ANY
\
        vendor_info=RAPIDAPP ISSUER="Hax Force, Inc." ck=54

FEATURE wf_director sgifd 2.000 1-jan-0 0 DCB61A74211D71B5845A \
        VENDOR_STRING=WFD HOSTID=ANY vendor_info="WF Director" \
        ISSUER="Hax Force, Inc." ck=233 SN=234155

FEATURE cpp sgifd 7.000 1-jan-0 0 8CE65AB48DDCD394E6E1 HOSTID=ANY \
        vendor_info="C++ <=128 CPU" ISSUER="Hax Force, Inc."

FEATURE Insignia_SoftWindows95 insignia 4.000 01-jan-0 0 \
        ECE41259D5BE4700DC27 VENDOR_STRING="5100 0100 0000 0001" \
        HOSTID=ANY vendor_info=SOFTWINDOWS95 ISSUER="Silicon Graphics, \
        Inc."

FEATURE MPEG_Encoder sgifd 1.000 01-jan-0 0 5CC152087FDCAEDEA1AC \
        HOSTID=ANY vendor_info="MPEG ENCODER" ISSUER="Silicon Graphics, Inc."

FEATURE CINEPAK_Encoder sgifd 1.000 01-jan-0 0 3CD11288C0DE3AA0FB5C \
        HOSTID=ANY vendor_info="CINEPAK ENCODER" ISSUER="Silicon Graphics,
Inc."

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,247
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
11-11-2024, 09:57 PM
#26
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
Thanks but:
- I already found the Windows installer for OpenGL Performer 3.2: http://windowsdraw.altervista.org/abandonware.html
- in your license file there is everything.... but openGL Performer! ;-)
- I think it's not a matter of license, but a matter of configuration: the executable "thinks" is being executed remotely, so it locks
jumpjack
O2

Trade Count: (0)
Posts: 6
Threads: 0
Joined: Sep 2022
Location: italy
Find Reply
11-12-2024, 07:18 AM
#27
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
Flexlm license file syntax:

https://extras.csc.fi/math/comsol/3.4/do...chap10.htm

I tried everything, with no success. :-(
jumpjack
O2

Trade Count: (0)
Posts: 6
Threads: 0
Joined: Sep 2022
Location: italy
Find Reply
11-13-2024, 01:35 PM
#28
RE: OpenGL Performer 3.2+ 32/64-bit IRIX, Linux, Windows
We're not going to be able to walk you through it. But make sure that the file has a backslash anytime that a line break happens between different file licenses.

Part and parcel of working with old software like this is having to learn to troubleshoot things on your own because there is no technical support. We can lead you to water but we cannot make you drink

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
11-14-2024, 02:16 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)