Go to advanced search

by scotty101
Sun Apr 30, 2017 10:08 pm
Forum: Python
Topic: pi3d string text color ??
Replies: 2
Views: 272

Re: pi3d string text color ??

Looks like you can change colour with TextBlock

https://pi3d.github.io/html/pi3d.util.h ... .TextBlock

And you can change String colour by defining the colour of the font used

https://pi3d.github.io/html/pi3d.util.h ... .util.Font
by AshPowers
Sun Apr 30, 2017 7:55 pm
Forum: Python
Topic: pi3d string text color ??
Replies: 2
Views: 272

pi3d string text color ??

Hi,

Having issues with trying to change the color of the text put on the screen using pi3d.String.

Cannot seem to find any documentation on how to do this. It is limited to just white characters??

Thanks!
-Ash
by paddyg
Fri Apr 28, 2017 10:56 pm
Forum: Python
Topic: imports 2 to 3
Replies: 4
Views: 398

Re: imports 2 to 3

in pi3d we used the six module functions so the code gets converted 'on the fly' which means the same code runs with py2 or py3 (and pypy) However there is a small processing cost for doing this. You *could* patch the 'wrong' ...
by paddyg
Tue Apr 25, 2017 2:06 pm
Forum: Python
Topic: pypy with numpy
Replies: 1
Views: 328

pypy with numpy

I've just been checking out the progress of pypy (specifically whether or not pi3d will 'just' work with it now) On ubuntu it was surprisingly straightforward and worked very well, just four numpy functions missing (that had little impact). On the Raspberry Pi, ...
by Cigano1434
Mon Apr 24, 2017 6:48 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Paddy, Thanks for the update and the fixes. I had noticed the console issue, but I was tackling one issue at a time. Thanks for the information on the Context. I will be using that from now on, even though I am only using the keyboard for debug purposes as this app will have no keyboard input. :) Ja...
by kusti8
Mon Apr 24, 2017 3:08 pm
Forum: General discussion
Topic: which 3d game engine??
Replies: 3
Views: 392

Re: which 3d game engine??

Pi3D should work since it uses OpenGLES. AFAIK it works pretty well for others.
by paddyg
Sat Apr 22, 2017 9:24 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

As a quick post script - I have added LOGGER.critical('Out of GPU memory') to Texture and altered pi3d.Log so that it uses the root logger (reverted as it did this already if no name argument given). Now if you create a pi3d.Log object before the Texture is created then ...
by paddyg
Sat Apr 22, 2017 11:34 am
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... the example program closes it leaves curses in an annoying state as there is no Keyboard.close() after the break. See here for suggestions. Also pi3d has a wrapper for the python logger so you can simply do LOGGER = pi3d.Log(level='INFO', file='test.log') LOGGER.info('display size: {} x {}'.format(display.width, ...
by Cigano1434
Sat Apr 22, 2017 1:36 am
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Paeryn, You are right. For some reason, the split memory had switched back to the default 64 MB. I'll have to look into why that is. I have switched it to 128, which is where I have had it for all my other testing. I switched it and it works fine. I didn't think to look there for two reasons: 1) I h...
by Paeryn
Sat Apr 22, 2017 1:25 am
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... you get a black screen, 3) When gpu_mem is set > 64 you get the image as expected. So it looks like you are hitting a memory limit somewhere and pi3d isn't reporting back an error in creating the texture. Possibly not a big enough contiguous block of memory to hold the texture so you end up with ...
by Cigano1434
Sat Apr 22, 2017 12:30 am
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

I noticed that the larger 1920x1080 image was 96 dpi, so I converted it to 72 dpi (no change.) I've uploaded the three files I'm using for testing to the following links: 1920 x 1080 JPG (doesn't work) https://drive.google.com/open?id=0B20sGtQ0Ln1JVTdKYTFKakJnQU0 1920 x 1080 PNG (doesn't work) https...
by Cigano1434
Sat Apr 22, 2017 12:06 am
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Paddy, The screen resolution is 1920 x 1080 (the max for this TV I'm testing with). I added logging code as below: import pi3d import logging log = logging.getLogger('radar') log_handler = logging.FileHandler('test.log') log_handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s ...
by paddyg
Fri Apr 21, 2017 9:59 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Hmm, that seems odd. I've just run your code on a RPi3 with an image resized to 1920x1080 and it seems fine. There is a GPU limit of 2048x2048 which I have discussed here but that's well beyond this size. I think insufficient GPU memory allocation always causes an explicit error rather than a blank ...
by Cigano1434
Fri Apr 21, 2017 6:45 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... all sorts of images into a slideshow, but as soon as the image is 1920x1080, it just shows a blank screen. Here is what I mean: My code: import pi3d display = pi3d.Display.create() camera = pi3d.Camera(is_3d=False) shader = pi3d.Shader('uv_flat') slide = pi3d.ImageSprite('/home/pi/radar/media3/bg1.jpg', ...
by Cigano1434
Thu Apr 20, 2017 11:03 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Paddy,

That makes total sense. Thanks for the help and enlightenment. And thanks for a great library. You have already made my life a ton easier.

Jason
by paddyg
Thu Apr 20, 2017 6:46 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... such as phones. It has reduced functionality compared with OpenGL but is more ubiquitous and ES2.0 is the native system used on the Raspberry Pi; Pi3d uses this. To run pi3d on laptops and desktop computers you need to install libraries that will emulate OpenGL ES behaviour on the OpenGL graphics ...
by Cigano1434
Thu Apr 20, 2017 5:37 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Paddy, Thanks for your response. I've been able to run most of the demos now. The short answer is the GL driver change. I imaged a different SD card with Raspian (Not using NOOBS) and configured it and received the same error. I began to suspect that it was the driver. I had been changing the GL dri...
by paddyg
Thu Apr 20, 2017 12:03 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... out. On my RPi 3 I did $ ls /opt/vc/lib -l and saw that date of the libbcm_host.so file was some time in 2016. The /opt/vc/src/hello_pi demos and pi3d worked ok. Then I updated the system: $ sudo apt-get update $ sudo apt-get dist-upgrade and the file date had changed to Mar 31 2017 and the demos ...
by Amrutha Saseendran
Wed Apr 19, 2017 8:41 pm
Forum: Python
Topic: Qt without x11 on Raberry pi 2
Replies: 6
Views: 790

Re: Qt without x11 on Raberry pi 2

No. You can access the display surface directly without running x11. Most of my involvement is with the development of pi3d and that uses the OpenGL ES library for the GPU and gets a display surface directly using the libbcm_host.so library. It runs significantly better without the ...
by paddyg
Wed Apr 19, 2017 8:38 pm
Forum: Python
Topic: Qt without x11 on Raberry pi 2
Replies: 6
Views: 790

Re: Qt without x11 on Raberry pi 2

No. You can access the display surface directly without running x11. Most of my involvement is with the development of pi3d and that uses the OpenGL ES library for the GPU and gets a display surface directly using the libbcm_host.so library. It runs significantly better without the ...
by Cigano1434
Wed Apr 19, 2017 5:39 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... the issue currently on a brand new RaspberryPi 3. I installed the Full Raspian using NOOBS, then followed the instructions found here: https://pi3d.github.io/html/ReadMe.html#setup-on-the-raspberry-pi After completing the installation and attempting to run any of the examples, I get the same ...
by eladbar
Fri Apr 07, 2017 6:16 am
Forum: Python
Topic: putting 3d model Apollo soyuz on freeboard
Replies: 1
Views: 209

putting 3d model Apollo soyuz on freeboard

hello,
i am interested of running pi3d apollo soyuz 3d model
on node red freeboard dashboard.

is it possible?
by dlleigh
Sun Apr 02, 2017 11:29 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Yes, very frustrating. Another data point of interest is that the demos in /opt/vc/src/hello_pi were also failing, but are now working. If I recall correctly, the particular program hello_dispmanx was reporting a weird display size, something like 2 by something large and bizarre. I don't remember t...
by paddyg
Sun Apr 02, 2017 1:51 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

Hi, it's frustrating that it 'just' started working without a satisfactory explanation for what caused the error. When you had the assertion error was there anything else installed and possibly running on the RPi that could have conflicted? I don't really know what might cause that error generally b...
by dlleigh
Fri Mar 31, 2017 5:57 pm
Forum: Python
Topic: Pi3D AssertionError on all demos
Replies: 18
Views: 862

Re: Pi3D AssertionError on all demos

... clean re-install and everything works fine now in the original RPi 3. I'm not sure what the problem was before, but now it's gone. I can play with Pi3D now. I hope the problem doesn't return.

Go to advanced search