Go to advanced search

by djazz
Fri Aug 30, 2019 1:51 pm
Forum: Raspbian
Topic: Mesa 19.2.0-rc1 available for testing
Replies: 4
Views: 746

Re: Mesa 19.2.0-rc1 available for testing

Hopefully it'll make its way to stable Raspbian once 19.2 releases!

Before Mesa 19.2: https://www.youtube.com/watch?v=xUokv61i6iI
After: https://www.youtube.com/watch?v=sTlY_hbe51Y
by djazz
Mon Aug 26, 2019 5:48 pm
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

I got it working on the Raspberry Pi 4! I needed to compile latest Mesa to fix the visual artefacts.
https://www.youtube.com/watch?v=sTlY_hbe51Y
by djazz
Wed Jul 03, 2019 5:07 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

Reported the OpenGL texture bug to Mesa, hopefully they know what's wrong and how to fix it. https://bugs.freedesktop.org/show_bug.cgi?id=111052
by djazz
Wed Jul 03, 2019 12:07 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

Something wrong with OpenGL and textures on the RPi 4? :( Pi 3: https://i.imgur.com/FqkEZlB.png Pi 4 with 4 GB: https://i.imgur.com/IDf8K9y.png Mesa: User error: GL_INVALID_ENUM in glTexParameter(pname=GL_TEXTURE_MAX_ANISOTROPY) is the only debug message Mesa gives me. Game runs otherwise, just wron...
by djazz
Wed Jul 03, 2019 11:59 am
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

Hmm, not very successful. Seems to be something wrong with texture mapping on the Pi 4. And it runs 1-2 fps slower than a Pi 3! What?! Pi 3: https://i.imgur.com/FqkEZlB.png Pi 4 with 4 GB: https://i.imgur.com/IDf8K9y.png Reported the bug to Mesa, hopefully they know what's wrong and how to fix it. h...
by djazz
Tue Jul 02, 2019 9:29 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

Okay, so OpenGL memory allocation should just work then without messing with Cma? Great news!
by djazz
Tue Jul 02, 2019 9:26 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

jamesh wrote:
Tue Jul 02, 2019 9:22 am
Just tried that but got no results.
Hmm... Can you upload the output of

Code: Select all

glxinfo -l
and upload it somewhere. Also note the memory capacity (1/2/4)
by djazz
Tue Jul 02, 2019 9:21 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

On the Pi 4 with 1/2/4 GB is the CMA dynamic allocation still total 256 MB by default with the fkms driver?

Code: Select all

grep Cma /proc/meminfo
by djazz
Tue Jul 02, 2019 9:19 am
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

https://www.raspberrypi.org/forums/view ... 2#p1490532

The Raspberry Pi 4 should be able to run Celeste without the texture shrinking/patching :D
by djazz
Tue Jul 02, 2019 9:17 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

jamesh wrote:
Tue Jul 02, 2019 9:13 am
Currently 7680x7680.
Great! I guess "glxinfo -l | grep MAX_TEXTURE_SIZE" would give 7680 as value then?
by djazz
Tue Jul 02, 2019 9:07 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88617

Re: Raspberry Pi 4 Thread - general discussion

I am running OpenGL games on a RPi 3B currently. To do that I use the fkms driver with cma=732M (maximum) and gpu_mem=16, to support loading of textures. With a Pi 4 with more RAM, can the CMA go even higher? Or is there another way video memory is allocated to the 3D hardware? Also, what is the max...
by djazz
Mon Jul 01, 2019 9:40 pm
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

I got it running on a RPi 2B by following the guide! It runs slower, who would've thought! This works because the 2B also has 1 GB of RAM.
Watch it here: https://www.twitch.tv/videos/446954756?t=52m9s
by djazz
Mon Jul 01, 2019 7:26 pm
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

gl4es will need an GLES2 driver. Not sure is needed to provide GLES2 driver on the RPi (CMA?). I got it to work with "LIBGL_FB=3 LIBGL_ES=2 LIBGL_GL=21" and "gpu_mem=700" but it runs very slow, less than 10 fps ingame. So I'll stick to OpenGL from v3d fkms for now. CMA seems to be dynamic memory al...
by djazz
Mon Jul 01, 2019 2:31 pm
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

Is CMA needed for gl4es? That's the biggest issue right now. gl4es doesn't require the v3d fkms/kms driver, right?
by djazz
Mon Jul 01, 2019 12:21 pm
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Re: Celeste on the Raspberry Pi

Nice one! The resize of the Atlas is nice touch. And thanks for mentioning my article :) I found your article and decided to try it on Celeste! Thanks for writing it! :) I tried your gl4es project first but it didn't work. Now after playing around and having learned more I will give it another try....
by djazz
Mon Jul 01, 2019 10:44 am
Forum: Gaming
Topic: Celeste on the Raspberry Pi
Replies: 12
Views: 938

Celeste on the Raspberry Pi

https://i.imgur.com/LkxhI9l.png I have managed to get Celeste running on a Raspberry Pi 3B! The game uses Mono + FNA, so it's cross platform. Needs the fkms v3d driver and lots of CMA memory to run. Textures need shrinking, the pi3 only supports 2048x2048 pixels per texture, while Celeste use many ...
by djazz
Mon May 16, 2016 12:45 pm
Forum: Graphics, sound and multimedia
Topic: Pi Zero + Camera Board = USB webcam gadget?
Replies: 13
Views: 12313

Re: Pi Zero + Camera Board = USB webcam gadget?

If you can make the camera appear as a video device on the pi (like an usb camera) you could try set up the usb gadget mode with UVC. Have a look at the documentation for UVC gadget: https://github.com/torvalds/linux/blob/master/Documentation/usb/gadget-testing.txt#L656 Here is a guide on how to set...
by djazz
Fri Mar 11, 2016 2:48 pm
Forum: Graphics, sound and multimedia
Topic: Pi Zero Unicorn Hat FFT audio visualizer
Replies: 2
Views: 3278

Pi Zero Unicorn Hat FFT audio visualizer

I just released the code for my Unicorn Hat FFT audio visualizer! It's really cool! It's all written in C and takes a stream input from stdin, meaning you can pipe any realtime audio stream to it. It's only a visualizer, it won't play the audio you pipe to it. You can watch a demo here : http://img....
by djazz
Tue Mar 01, 2016 8:21 am
Forum: Beginners
Topic: Sleep Mode - and or turn off backlight?
Replies: 202
Views: 93345

Re: Sleep Mode - and or turn off backlight?

mquinteiro wrote:Can we buy the 1.1 controller board?
I want this too.
I got my screen from Pimoroni back in September, and on their site they still have the 1.0 board on the photos.
by djazz
Wed Dec 09, 2015 2:26 pm
Forum: General discussion
Topic: WebGL on Pi [Video]
Replies: 5
Views: 1368

Re: WebGL on Pi [Video]

Wow! :D
by djazz
Tue Dec 01, 2015 9:23 pm
Forum: Graphics, sound and multimedia
Topic: PiGlow FFT audio visualizer
Replies: 1
Views: 1602

PiGlow FFT audio visualizer

To practice my Python skills I decided to code a Fast-Fourier-Transform audio visualizer script for Pimoroni's PiGlow . This little expainsion board features 18 leds arranged in three spirals with six in each arm in different colors. It's nice for stuff like a binary clock, cpu/memory/temp monitorin...
by djazz
Fri Apr 03, 2015 10:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry pi with Adafruit fm Transmitter
Replies: 4
Views: 2685

Re: Raspberry pi with Adafruit fm Transmitter

I ported Adafruit's arduino C++ class to Python that runs on the pi, and talks with the FM transmitter over I2C. It uses GPIO4 (next to the I2C pins) to reset the device. https://github.com/daniel-j/Adafruit-Si4713-RPi Simple sample code: from Adafruit_Si4713 import Adafruit_Si4713 FMSTATION = 10100...
by djazz
Wed May 22, 2013 10:13 pm
Forum: Beginners
Topic: 100M Ethernet LED
Replies: 4
Views: 1132

Re: 100M Ethernet LED

I have the same issue with my latest Model B pi (got it january, from a farnell reseller). Well, the 100M LED worked the first day, but have been broken since. I have not noticed any performance issues though, I can stream high quality 1080p to it over the network without trouble. Here's a picture f...
by djazz
Thu Jan 03, 2013 7:24 pm
Forum: Graphics, sound and multimedia
Topic: omxplayer play controls / input
Replies: 61
Views: 98930

Re: omxplayer play controls / input

Try out omxradio, a web interface for playing webradio, youtube clips and local files on the pi, all controlled from a web interface on mobile/laptop. Written in nodejs and uses some HTML5 features to sync play queue and Now Playing across clients. More info: https://github.com/daniel-j/omxradio Dem...
by djazz
Fri Sep 07, 2012 11:52 pm
Forum: Other programming languages
Topic: NBC/NXC compiler on the Raspberry Pi
Replies: 1
Views: 3281

NBC/NXC compiler on the Raspberry Pi

Today I wanted to code some NXC code for my Lego Mindstorms NXT. I tried to download the NBC compiler, but it was for x86 linux only, so I had to compile it myself. Here is how I did it. HOW-TO GET THE NBC/NXC COMPILER ON THE RASPBERRY PI I assume you are using Raspbian. $ cd ~/path/where/i/want/to/...

Go to advanced search