Author Topic: RacketScheme gl/glu/glut  (Read 3692 times)

0 Members and 1 Guest are viewing this topic.

RobbeK

  • Guest
RacketScheme gl/glu/glut
« on: February 14, 2015, 01:19:45 AM »
Hi all,

Got something working (overriding classes etc.. is not my piece of cake  :-\   )
The documentation gives a gl-frame.rkt file that on its turn is called by the other examples - this is a standalone source.

Wonder it works on an alien computer, it's packed as a distribution (Linux only )  running it for Win (under Wine) there are some gaps/holes in frame (however it may run under native windows (?) )

Thanks in advance if someone could test it ,   Rob  (i also give the source to test this under Windows/Linux/MacOS)

.

JRS

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #1 on: February 14, 2015, 02:12:24 AM »
Rob,

All I get is the Gtk form and no graphics window. I'm trying to run your 32 bit application on my Ubuntu 64 bit laptop with i386 libraries installed for the most part. What are the shared object dependencies for this demo?

John

RobbeK

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #2 on: February 14, 2015, 02:38:45 AM »
Hi John,   thanks -- I must do something wrong , I had my doubts because it did not run on my native Win32.

It uses GL 1.5 and GLU 1.3 libs  (glut is not used) ,,   there may be something wrong with my timers -- there are two , one for an empty window and one for the rotating fractal.
Do you get a black frame or is it filled with digital garbage ??  (if you get a black, one of the timing loops is correctly working)

Attached file (second test) source runs both under Windows and Linux ,  without timer events but a sleep/yield loop.

Use left mouse to end --   works on full screen.

thanks again, Rob

.

JRS

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #3 on: February 14, 2015, 02:44:50 AM »
That one doesn't run at all.

There was no graphics windows created in the last example.

.

RobbeK

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #4 on: February 14, 2015, 02:54:06 AM »
Hi John,


sigh  :-\    Gauche runs everywhere here (also less academic , imho more straightforward in use) --  is this a 32 vs 64 bit issue ??

Going to try the distribution on another Linux32 machine,   that's all I can do now.

Many thanks being helpful ,  Rob

JRS

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #5 on: February 14, 2015, 03:00:23 AM »
32 bit on my 64 bit Linux is hit and miss. I'll try it on my 32 bit Ubuntu I have in a VirtualBox. It's no speed demon for sure. It's WAY past my bedtime so I'll give it a go in the morning.


jack

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #6 on: February 14, 2015, 12:14:26 PM »
tried it on my Mac, it runs without errors but the display is black, btw is Dr. Racket celebrating valentine's day? when I launch Dr. Racket the splash logo is in the shape of a heart. :)


.

RobbeK

  • Guest
Re: RacketScheme gl/glu/glut
« Reply #7 on: February 17, 2015, 11:35:26 AM »
Hi Jack , John ,

 celebrating valentine's day?    :)   yep

ok, problems ::

Racket : most one can find on the web , is based on gears.rkt which is translated from C -  Racket uses two flavors for gl/glu : one somewhat Schemish , the other Cish - rather confusing and puzzling.

I tried to translate a simple program into several languages (the distribution of sunflower seeds )

- thinBasic with TBGL  works fine ,  runs in native Win and Wine  ,  CPU usage 60%  during the main loop.
-newLISP (attached) runs fine under Linux, Win and Wine , CPU usage around 50% d t m l
-GFA compiler :  can not set up the glFloat's needed setting up the Lights --  tried a lot like : cAllot , mAllot with single float pointers and addresses. (it runs around 25% CPU usage -- but no lights, materials there)
-Gauche , (attached)  easy,,   but runs at 100% CPU usage all the time --  I do not see any timer events nor sleep /  yield  (?)

**   as for the sunflower http://www.greenr.com/2012/01/12/sunflowers-inspire-solar-power 


best Rob (the newLISP seeds.lsp contains the bindings for gl/glu/glut for Linux (tested) , Win32 and MacOS )


.