Author Topic: GLBasic and RaspberryPi  (Read 230 times)

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1641
    • View Profile
    • http://lostrevenant.blogspot.com
GLBasic and RaspberryPi
« on: 2017-Jul-10 »
Hi,

I'm working on a little program for my girlfriend, so I built up a Raspberry PI with a 3.5" TFT.

Now I tried to start the software but I only get a yellow display (the background should be white) on the Raspberry.

Pictures are not working, text is working.

Do you have any experience with something like this?

W.
« Last Edit: 2017-Jul-10 by WPShadow »
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4072
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: GLBasic and RaspberryPi
« Reply #1 on: 2017-Jul-10 »
IIRC Matchy got stuff working on the Pi. I'm not sure if anyone else has tried.
I came. I saw. I played.

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1641
    • View Profile
    • http://lostrevenant.blogspot.com
Re: GLBasic and RaspberryPi
« Reply #2 on: 2017-Jul-10 »
I fixed the problem.

There was an driver issue and also a problem with the media path. Now it works.

I try to make an mobile tamagotchi for my girlfriend. Battery pack, a raspberry pi 3 b and a 3.5" tft and it works now.

AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4072
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: GLBasic and RaspberryPi
« Reply #3 on: 2017-Jul-10 »
Sounds cool. Don't forget to post your progress :)
I came. I saw. I played.

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1641
    • View Profile
    • http://lostrevenant.blogspot.com
Re: GLBasic and RaspberryPi
« Reply #4 on: 2017-Jul-10 »
Here is the first screenshot

It will take a few days to make more, but at the moment this works fine
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3987
    • View Profile
    • Portfolio
Re: GLBasic and RaspberryPi
« Reply #5 on: 2017-Jul-11 »
nice!

Offline r0ber7

  • Dr. Type
  • ****
  • Posts: 469
    • View Profile
Re: GLBasic and RaspberryPi
« Reply #6 on: 2017-Jul-11 »
I try to make an mobile tamagotchi for my girlfriend.

Awww!  <3

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1538
    • View Profile
Re: GLBasic and RaspberryPi
« Reply #7 on: 2017-Jul-12 »
Great!  8) I haven't tested GLBasic on my second Raspberry Pi Zero W with 2.5"tft yet.

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1641
    • View Profile
    • http://lostrevenant.blogspot.com
Re: GLBasic and RaspberryPi
« Reply #8 on: 2017-Jul-16 »
I've got big troubles with GLBasic on Raspbian.

The fullscreen window is losing focus, so the input is running in the background, it isn't possible to us the PRINT - command, because the positioning isn't working, so every single text is in the upper left corner, the texts are yellow and changing their colors, drawrect isn't working and if it works (50% chance) the colors are inverted...

I'm not sure if I'm possible to finish a bigger project with all this troubles.
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4072
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: GLBasic and RaspberryPi
« Reply #9 on: 2017-Jul-17 »
Have you tried using a bitmap font function for text and POLYVECTORs instead of DRAWRECT?

Both are simple routines. If they work on the Pi, then problem solved.
I came. I saw. I played.

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1641
    • View Profile
    • http://lostrevenant.blogspot.com
Re: GLBasic and RaspberryPi
« Reply #10 on: 2017-Jul-17 »
atm I use POLYVECTOR.

That isn't my biggest issue.

The bigger problem is, that I try to fix the focus. I start the program on the linux desktop (raspbian). Now I can see the program running, but the input is still on the desktop. So I try to move the mouse but I'm starting things in the background. The program is fullscreen but the input isn't there.

And atm I'm not able to start it via console because I've troubles with the touchscreen input in the console.  :D
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4072
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: GLBasic and RaspberryPi
« Reply #11 on: 2017-Jul-17 »
Have you looked at 'GLB_ON_PAUSE' and 'GLB_ON_RESUME'?
I came. I saw. I played.

Offline WPShadow

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1641
    • View Profile
    • http://lostrevenant.blogspot.com
Re: GLBasic and RaspberryPi
« Reply #12 on: 2017-Jul-17 »
not really. I guess you are right.

I should set "AUTOPAUSE FALSE", perhaps that could fix the problem.

I also will test an other thing I found in an other forum:

Quote
Set the "Lines" mode to "full" (screen) and the video mode to "full" or "refresh" to play video full screen and not inside the window. These settings can be pre-configured. The window covers the whole screen and contact to keyboard commands cannot be lost.

With this two changes it should work
« Last Edit: 2017-Jul-17 by WPShadow »
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline dreamerman

  • Mr. Polyvector
  • ***
  • Posts: 141
    • View Profile
    • my personal website
Re: GLBasic and RaspberryPi
« Reply #13 on: 2017-Jul-17 »
For drawrect You are using polyvector with custom texture or this trick? (check both)
Code: GLBasic [Select]
STARTPOLY -1, 2
Check my source code editor for GLBasic - link