Search found 795 matches

by pik33
Wed Dec 19, 2018 9:29 am
Forum: Discussion
Topic: Tricks and hints
Replies: 4
Views: 66

Re: Tricks and hints

To enable alpha in egl/opengl: (1) in DispmanX initialization: Alpha.flags:=DISPMANX_FLAGS_ALPHA_FROM_SOURCE; (2) in EGL initialization: - make ConfigAttributes table 2 position bigger: ConfigAttributes:array[0..12] of EGLint; instead of 10 in the Ultibo OpenGL example - then ConfigAttributes[10]:=E...
by pik33
Tue Dec 18, 2018 8:14 pm
Forum: Graphics
Topic: OpenGL learning phase #1 completed :)
Replies: 0
Views: 22

OpenGL learning phase #1 completed :)

I was learning basics of OpenGL ES 2.0 while rewriting the Ultibo example code. The result is gltest2 unit in the ultibo-retro-gui repository. You can double click gltest there. The unit can be used in the place of original example unit in a pure Ultibo environment. In the main example unit replace ...
by pik33
Tue Dec 18, 2018 7:07 am
Forum: Discussion
Topic: Windows in OpenGL ES or OpenGL ES in window?
Replies: 5
Views: 76

Re: Windows in OpenGL ES or OpenGL ES in window?

The real limit is RPi's memory bandwidth; no more than 3 dispmanx fullhd layers, or maybe 5 if overclocked. Every dispmanx layer eats the bandwidth and makes the RPi slower. This means if you don't need a framebuffer, destroy it.
by pik33
Tue Dec 18, 2018 5:33 am
Forum: Discussion
Topic: Adding ultibohub/Demo to the kernel sampler
Replies: 8
Views: 84

Re: Adding ultibohub/Demo to the kernel sampler

No, something went wrong. The /colors contains the desktop wallpaper, the player skns and 2 experimental icons by pjde. The rest of icons, fonts and the mouse cursor shape is intermal, so you shoud see them There is a bug in the code which needs /ultibo folder with Raspbian.u in it (look at my earli...
by pik33
Mon Dec 17, 2018 8:12 pm
Forum: Discussion
Topic: Adding ultibohub/Demo to the kernel sampler
Replies: 8
Views: 84

Re: Adding ultibohub/Demo to the kernel sampler

The GUI uses Microdos like convention: before start, Raspbian kernel is renamed to kernel7_l.img by a shell script. The same script copies GUI kernel to /boot/kernel7.img so the GUI will start after this every time the RPi is swtched on The return to Raspbian is done after double clicking its icon o...
by pik33
Mon Dec 17, 2018 5:18 pm
Forum: Discussion
Topic: Adding ultibohub/Demo to the kernel sampler
Replies: 8
Views: 84

Re: Adding ultibohub/Demo to the kernel sampler

As I can understand the code, you implemented kernel selecting via config.txt "kernel=" line instead of copying full kernels as I did in MicroDOS??
by pik33
Mon Dec 17, 2018 5:10 pm
Forum: Discussion
Topic: Windows in OpenGL ES or OpenGL ES in window?
Replies: 5
Views: 76

Re: Windows in OpenGL ES or OpenGL ES in window?

It seems to be 8 textures limit. Bitmaps are up to 2048x2048 and this is good. It also seems to be hackable but I have to experiment first Possible hack #1: use cubic texture. It occupies one slot and has 6 bitmaps. Possible hack #2: maybe textures can be reloaded between objects. Load texture-draw ...
by pik33
Sat Dec 15, 2018 10:20 am
Forum: Discussion
Topic: Tricks and hints
Replies: 4
Views: 66

Re: Tricks and hints

Dispmanx element change flags bits. Very hard to find.

bit 0 layer, bit 1 opacity, bit 2 dest rect, bit 3 src rect, bit 4 mask, bit 5 transform
by pik33
Sat Dec 15, 2018 8:18 am
Forum: Discussion
Topic: Tricks and hints
Replies: 4
Views: 66

Tricks and hints

I started the topic for unusual things you can find in your RPi which can be useful and are hard to find. --------------- 1. Do you want a transparent framebuffer and setting attribute in Ultibo doesn't work? In config.txt framebuffer_ignore_alpha=1; You can also add framebuffer_depth=32; then in Ul...
by pik33
Fri Dec 14, 2018 4:37 pm
Forum: General
Topic: Programming with FPC
Replies: 33
Views: 2893

Re: Programming with FPC

Before the Pascal code starts, you have to do some cpu/chip initialization which is different for 64 bit than for 32 bit. This means changing fpc compiler to 64 bit and then simply recompiling Ultibo will not work.

Go to advanced search