Go to advanced search

by PeterO
Sat Jul 11, 2020 5:56 am
Forum: OpenGLES
Topic: Best practice in shaders....
Replies: 0
Views: 74

Best practice in shaders....

In a vertex shader which has :

Code: Select all

in vec4 a_normal;
would you use

Code: Select all

normal = a_normal;
normal.w = 0.0;
or

Code: Select all

normal = vec4(a_normal.xyz,0.0);
Is this just a stylistic choice or would you expect there be any performance difference ?
PeterO
by PeterO
Thu Jul 09, 2020 12:07 pm
Forum: Raspberry Pi OS
Topic: How come the Serial Console needs to be enabled
Replies: 9
Views: 271

Re: How come the Serial Console needs to be enabled

topguy wrote:
Thu Jul 09, 2020 10:27 am
(*) 1 in a million just for effect
Since you added a "%" you made it 1:100.000.000 ;)
Oh yeah ! I carefully counted the zeros and then forgot about the "%" . :roll:
PeterO
by PeterO
Thu Jul 09, 2020 10:22 am
Forum: OpenGLES
Topic: Current "work in progress"
Replies: 25
Views: 3291

Re: Current "work in progress"

Lots of 3D modelling over the last few weeks !
Machine2.png
Machine2.png (199.54 KiB) Viewed 24 times
PeterO
by PeterO
Thu Jul 09, 2020 10:20 am
Forum: Raspberry Pi OS
Topic: How come the Serial Console needs to be enabled
Replies: 9
Views: 271

Re: How come the Serial Console needs to be enabled

Hello! How come the Serial Console needs to be enabled? And from an attached screen? :?: I'm asking this one because the Raspberry Pi OS image named: :!: Raspberry Pi OS (32-bit) Lite Minimal image based on Debian Buster Version:May 2020 Release date:2020-05-27 Kernel version:4.19 Was indeed in thi...
by PeterO
Thu Jul 09, 2020 6:27 am
Forum: Troubleshooting
Topic: Last Raspbian update destroyed performance[solved, wasn't the upgrade ]
Replies: 7
Views: 342

Re: Last Raspbian update DID NOT destroy performance.

Found the problem. A power flicker from a lightning storm set my wifi repeater into flooding the wireless network. All the Pi Zoroes are WiFi, so they showed very slow reaction time. No wired hosts showed any problem. The solution was to shut everything on the network down and bring everything back...
by PeterO
Mon Jul 06, 2020 4:13 pm
Forum: C/C++
Topic: Trying to run UDP message, compiles OK, but does not work.
Replies: 8
Views: 245

Re: Trying to run UDP message, compiles OK, but does not work.

Why are you trying to build code designed for a totally incompatible platform (Arduino) on a Pi ? Start from here instead : https://www.geeksforgeeks.org/udp-server-client-implementation-c/ PeterO I come from the Arduino world. I have seen that the Arduino IDE provides a toolchain to compile for th...
by PeterO
Mon Jul 06, 2020 3:22 pm
Forum: C/C++
Topic: Trying to run UDP message, compiles OK, but does not work.
Replies: 8
Views: 245

Re: Trying to run UDP message, compiles OK, but does not work.

Why are you trying to build code designed for a totally incompatible platform (Arduino) on a Pi ?

Start from here instead : https://www.geeksforgeeks.org/udp-serve ... ntation-c/

PeterO
by PeterO
Sun Jul 05, 2020 8:36 am
Forum: General discussion
Topic: Please improve the sound quality of the Raspberry Pi product.
Replies: 22
Views: 902

Re: Please improve the sound quality of the Raspberry Pi product.

Dear Sir or Madam. Will it please be possible to forward this message to the correct person or department? I would like to ask your company a question about the Raspberry Pi product. According to a video on the web site of Youtube, the audio quality of the product of your company isn’t very great. ...
by PeterO
Thu Jul 02, 2020 7:59 pm
Forum: OpenGLES
Topic: Current "work in progress"
Replies: 25
Views: 3291

Re: Current "work in progress"

The plotter is not working properly with "mipmaps" for the paper that means the drawings still look good when you move away from the plotter.

I've also spent most of the last few days reworking the code that controls and displays the two hands.
Plotter42.png
Plotter42.png (242.9 KiB) Viewed 166 times
PeterO
by PeterO
Thu Jul 02, 2020 6:06 am
Forum: OpenGLES
Topic: FBO free to render faster than monitor refresh?
Replies: 3
Views: 133

Re: FBO free to render faster than monitor refresh?

Does you code include a call to eglSwapInterval ?

PeterO
by PeterO
Wed Jul 01, 2020 4:38 pm
Forum: Raspberry Pi OS
Topic: Raspbian terminal does not support console-resize
Replies: 13
Views: 373

Re: Raspbian terminal does not support console-resize

A solution (as I pointed out earlier) is to use" wmctrl" which does work and can move and resize windows.
Or you could look at its source and see what the protocol is that it uses to talk to the window manager to get the changes you require.

PeterO
by PeterO
Tue Jun 30, 2020 9:30 pm
Forum: C/C++
Topic: C++ running Python Problems
Replies: 2
Views: 148

Re: C++ running Python Problems

It looks like you aren't linking the appropriate library.... Here's how I found out.... $ pkg-config --list-all | grep Python python Python - Python library python-3.7m Python - Python library python-3.7 Python - Python library python2 Python - Python library python3 Python - Python library python-2...
by PeterO
Tue Jun 30, 2020 10:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using Optoisolators at 115200 baudrate
Replies: 4
Views: 209

Re: Using Optoisolators at 115200 baudrate

Another option might be to use an isolator designed for higher speed signals like the H11L1 https://www.rapidonline.com/isocom-h11l1-schmitt-trigger-isolator-58-0858 I've used these at 115200 but with 5V on both sides. The data sheet says Vcc is OK down to 3V so should be OK on the Pi Rx side. PeterO
by PeterO
Tue Jun 30, 2020 8:08 am
Forum: Raspberry Pi OS
Topic: startx or xinit requires root since Release 2020-05-27
Replies: 12
Views: 384

Re: startx or xinit requires root since Release 2020-05-27

As far as I can tell this is the report, but just because there is a report doesn't mean it will get fixed. If this was a report of a problem with the release, then please explain why has it taken a month for someone to discover that something as fundamental as the X server is not working ? PeterO ...
by PeterO
Mon Jun 29, 2020 7:31 pm
Forum: Raspberry Pi OS
Topic: Raspbian terminal does not support console-resize
Replies: 13
Views: 373

Re: Raspbian terminal does not support console-resize

RichardRussell wrote:
Mon Jun 29, 2020 5:29 pm
PeterO wrote:
Mon Jun 29, 2020 4:30 pm
I just tried with a "real xterm" and the sequences don't even work with that .
They do if you run it with xterm -xrm 'xterm*allowWindowOps: true'
Not on my PIs or MINT-19 machines they don't. Where are you trying that command ?
PeterO
by PeterO
Mon Jun 29, 2020 4:44 pm
Forum: Raspberry Pi OS
Topic: startx or xinit requires root since Release 2020-05-27
Replies: 12
Views: 384

Re: startx or xinit requires root since Release 2020-05-27

As far as I can tell this is the report, but just because there is a report doesn't mean it will get fixed. If this was a report of a problem with the release, then please explain why has it taken a month for someone to discover that something as fundamental as the X server is not working ? PeterO
by PeterO
Mon Jun 29, 2020 4:30 pm
Forum: Raspberry Pi OS
Topic: Raspbian terminal does not support console-resize
Replies: 13
Views: 373

Re: Raspbian terminal does not support console-resize

LXTermnial is not Xterm and is quite "lite" so I'm not surprised it doesn't work.

I just tried with a "real xterm" and the sequences don't even work with that . But "wmctrl" does work and can move and resize windows.

PeterO
by PeterO
Mon Jun 29, 2020 3:27 pm
Forum: Raspberry Pi OS
Topic: Raspbian terminal does not support console-resize
Replies: 13
Views: 373

Re: Raspbian terminal does not support console-resize

Which terminal are you using ?
PeterO
by PeterO
Mon Jun 29, 2020 2:56 pm
Forum: Raspberry Pi OS
Topic: startx or xinit requires root since Release 2020-05-27
Replies: 12
Views: 384

Re: startx or xinit requires root since Release 2020-05-27

Is it somehow possible to start X without being root somehow with the newer Rasperry OS release? It's amusing that you think this a problem with the release rather than a consequence of something you have done that has broken your system. Do you not think that if it was a problem with the release t...
by PeterO
Mon Jun 29, 2020 2:51 pm
Forum: Raspberry Pi OS
Topic: startx or xinit requires root since Release 2020-05-27
Replies: 12
Views: 384

Re: startx or xinit requires root since Release 2020-05-27

ganzgustav22 wrote:
Mon Jun 29, 2020 2:42 pm
That file doesn't seem to exist on my system (isn't it created by X during runtime? not sure).
Yes, but if it already exits and is owned by root then when X is run by pi it can't access the file and won't start. Wrong ownership is the common cause of X failing to start.
PeterO
by PeterO
Mon Jun 29, 2020 1:45 pm
Forum: Raspberry Pi OS
Topic: startx or xinit requires root since Release 2020-05-27
Replies: 12
Views: 384

Re: startx or xinit requires root since Release 2020-05-27

Try

Code: Select all

cd
sudo chown pi:pi .Xauthority
PeterO
by PeterO
Mon Jun 29, 2020 5:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Pi4 3.5mm audio out cuts off at 19kHz
Replies: 7
Views: 407

Re: Pi4 3.5mm audio out cuts off at 19kHz

There is no D A C on the Pi 3.5mm audio jack. That output is analogue "In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal." (from wikipedia) So something on the PI board is acting as a DAC. The there is a list of...
by PeterO
Sun Jun 28, 2020 8:33 pm
Forum: Advanced users
Topic: -
Replies: 3
Views: 393

Re: HD GRAPHICS IMPROVEMENT

I think your suggestion about limiting the graphics to 30fps is appropriate. But would stress that a person know that this is under the system terminal command sudo raspi-config "7 Advanced Options" "A9 Compositor" "No" "Ok" "Finish" and not under Raspberry Pi operating system menu selections "Pi"....
by PeterO
Sun Jun 28, 2020 12:06 pm
Forum: Off topic discussion
Topic: Wish list for the foundation
Replies: 45
Views: 2210

Re: Wish list for the foundation

Heater wrote:
Sun Jun 28, 2020 10:53 am
That is somewhat shocking news. When did that happen?
Take a look at the the RPF 2019 review to get a better idea of the things they do that you've not noticed happening.
https://static.raspberrypi.org/files/ab ... ew2019.pdf
PeterO
by PeterO
Sun Jun 28, 2020 6:14 am
Forum: Off topic discussion
Topic: Window bug on Pi 2b-3b+-4
Replies: 6
Views: 650

Re: Window bug on Pi 2b-3b+-4

RomoBoom wrote:
Sat Jun 27, 2020 6:13 pm
This has happened consistently to my pi2b, 3b+, and pi4 after adding the Desktop Pager to the taskbar via "Add Panel Items" and editing the Desktop Pager settings.
Exactly what (and how) are you editing them ?
PeterO

Go to advanced search