Go to advanced search

by Brian Beuken
Thu Jun 27, 2019 5:19 pm
Forum: Graphics programming
Topic: V3D/VC4 detection and legacy driver.
Replies: 8
Views: 1233

Re: V3D/VC4 detection and legacy driver.

ok so finally got my Pi4 up and running and tried out a my standard OpenGLES2.0 project with brcmEGL bcm_host pthread brcmGLESv2 vchiq_arm vcos khrn_static and they build fine, but fall down pretty quickly when trying to run things either creating EGLcontexts or eglSwapBuffers its not very consistan...
by Brian Beuken
Thu Jun 27, 2019 1:12 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 6705

Re: Thread from Pi4 discussion

ok if I read this right? if we want to use GLES3.0 we need to set up an Xwindow system and use Mesa libs? That is now the code that Dom pointed me at works, so I'm assuming that's the way to do it. I don't know if it can still be done full screen via dispmanx (i.e. without interaction with X) like ...
by Brian Beuken
Thu Jun 27, 2019 11:54 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 6705

Re: Thread from Pi4 discussion

ok if I read this right? if we want to use GLES3.0 we need to set up an Xwindow system and use Mesa libs?
by Brian Beuken
Thu Jun 27, 2019 11:14 am
Forum: OpenGLES
Topic: Is there a way to use gl_InstanceID in shaders?
Replies: 4
Views: 854

Re: Is there a way to use gl_InstanceID in shaders?

hmmm how could that work? All you did was define a couple of labels..if they are not supported in the GPU (and they are not) they will take a value from the shader compiler I suspect there's no increment on the ID value and it stays at null each shader call. But, if it does acutally work...thats ver...
by Brian Beuken
Thu Jun 27, 2019 11:06 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 807
Views: 77798

Re: Raspberry Pi 4 Thread - general discussion

No it will need minor changes to the code. The good news is after the changes the code will run unchanged on earlier Pi's with fkms/kms enabled as well at other linux platforms that support kms/drm/mesa. Can you be more specific on what changes are needed? I'm just tidying up a working triangle2 :-...
by Brian Beuken
Thu Jun 27, 2019 10:00 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 807
Views: 77798

Re: Raspberry Pi 4 Thread - general discussion

When I change to hello_triangle demo to not bail out on a Pi 4, it hangs in the same eglCreateContext. Is there any way to get OpenGL ES/Dispmanx applications working on the Pi 4? No it will need minor changes to the code. The good news is after the changes the code will run unchanged on earlier Pi...
by Brian Beuken
Thu Jun 27, 2019 9:26 am
Forum: OpenGLES
Topic: new to graphical programming on raspberrypi
Replies: 1
Views: 704

Re: new to graphical programming on raspberrypi

Do you mean this?

https://www.mathworks.com/products/conn ... tudio.html

if so, its possible, but needs a bit of understanding of the code GLStudio provides and you have to write a raspberry specific render window.
by Brian Beuken
Thu Jun 27, 2019 9:23 am
Forum: OpenGLES
Topic: GLES3.0 :D at last
Replies: 24
Views: 1267

GLES3.0 :D at last

So the Pi4 has GLES3.0 Fantastic, I can't wait to try out a few things on the Raspberry. But while I wait for my micro monitor cables to arrive (I mistook my mini HDMI convertors for micro), to arrive I installed the new Buster on my 3B+ to see what it could do, and all was fine. Buster seems stable...
by Brian Beuken
Mon Jun 24, 2019 8:42 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 807
Views: 77798

Re: Raspberry Pi 4 Thread - general discussion

complete nonsense that 3A power supply thing via USB-C! They must finally install a power jack like Arduinos for standard 7-12V power adapters! In addition, there is always a missing button to start and stop! I also do not understand why they stick to their puny form factor and not finally grow for...
by Brian Beuken
Mon Jun 24, 2019 7:39 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 807
Views: 77798

Re: Raspberry Pi 4 Thread - general discussion

Amazing to see such a leap in performance and its not even Pi Day

I notice the VC6 is the new GPU and it is lsted as OpenGLES3.x does that mean we have 3.1/3.2 ?
by Brian Beuken
Mon Mar 25, 2019 2:58 pm
Forum: OpenGLES
Topic: linking errors with eglGetProcAddress
Replies: 2
Views: 905

Re: linking errors with eglGetProcAddress

ah...
seems you need to include the libdl library

obvious when you see it....confusing as hell when you don't.
by Brian Beuken
Mon Mar 25, 2019 2:34 pm
Forum: OpenGLES
Topic: linking errors with eglGetProcAddress
Replies: 2
Views: 905

linking errors with eglGetProcAddress

Returning back to some extension coding. I seem to have hit a strange snag... I want to set up and test a GL_OES_mapbuffer extension, something I had issues with in the past... Im doing the normal methods.. PFNGLMAPBUFFEROESPROC glMapBuffer = NULL; glMapBuffer = (PFNGLMAPBUFFEROESPROC)eglGetProcAddr...
by Brian Beuken
Sun Mar 17, 2019 7:18 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

??? you can compile on VisualGDB, on PC, or on target :D debug and profile if you want too :D
by Brian Beuken
Sun Mar 17, 2019 7:16 pm
Forum: OpenGLES
Topic: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+
Replies: 3
Views: 2031

Re: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+

Awesome, keep pluggin away
by Brian Beuken
Fri Mar 15, 2019 11:15 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

time to try VisualGDB
by Brian Beuken
Fri Mar 15, 2019 5:45 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

ah they know, I wrote a book where it is featured and I regularly pester them when things are going wrong and I need help, and get generous discounts when I need licences for coding classes. So its not as if they don't know I'm pushing the system. I don't mind though as long as more people take up c...
by Brian Beuken
Fri Mar 15, 2019 3:36 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

lol I wish I were, I do promote it a lot, just because its really very good, and I want to encourage them to keep up the support and continue its improvement for Raspberry. I'm just very passionate about getting people coding in C/C++ and avoiding engines if they are serious about wanting to be game...
by Brian Beuken
Fri Mar 15, 2019 12:13 pm
Forum: OpenGLES
Topic: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+
Replies: 3
Views: 2031

Re: Depth buffer with OpenGL ES 1.1 on Raspberry Pi 3B+

setting the function to GL_NEVER means it will always fail, ie show everything, So you need one of the other functions for testing which are the same as used by stencil GL_NEVER GL_LESS GL_EQUAL GL_LEQUAL GL_GREATER GL_NOTEQUAL GL_GEQUAL GL_ALWAYS Try GL_LEQUAL But to actually get depth functions to...
by Brian Beuken
Fri Mar 15, 2019 11:12 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

And it looks like I may have found the answer to my question (I think I did, but am still downloading it, so cannot be 100% certain: http://gnutoolchains.com/raspberry/ by the same people that make VisualGDB, but this one seems free (it even includes a section oncompiling it all yourself, which wou...
by Brian Beuken
Fri Mar 15, 2019 11:02 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

A common situation on the Pi is someone wanting to experiment with physical computing, or simply learning Python or C. I am afraid I cannot see how it is 1000 times easier to spend days installing tool chains, cross compiler, cross debugger, etc in order to build a few lines of code (with no GUI ty...
by Brian Beuken
Fri Mar 15, 2019 1:59 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

as I say, www.VisualGDB.com you can use the toolchain to compile on the PC, or download the source to compile on the Pi, but debug on the PC, it works with the free community version of Visual Studio and is free for 30 days, and reasonably priced when the trial runs out. Setting up Arm GCC on PC tho...
by Brian Beuken
Thu Mar 14, 2019 11:34 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

Given the ridiculous difference in purchase price, electrical power consumption, physical size etc, I find the Pi is astonishingly good. There is no question of it being "100 times worse" ... The Pi is awesome, I love Pi's and other SBC's I've got dozens of them, from Zero's to Pi3b+ and much more ...
by Brian Beuken
Thu Mar 14, 2019 11:11 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

Cross compiling can be a little tricky to set up And are you going to tell us how to set it up? My main computer runs Windows 10x, I also have Cygwin on it, but I see nothing there that would let me cross compile anything for the Pi. I can easily compile Arduino code on Windows, but Raspberry Pi se...
by Brian Beuken
Thu Mar 14, 2019 6:51 pm
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

There's a very worrying trend in these discussions about finding the hardest way to do a simple thing. As a professional games developer and teacher in games programming, I'm utterly gobsmacked that people are advocating working on the Pi as a 1st choice.. No, hell no, cross platform dev, be that us...
by Brian Beuken
Thu Mar 14, 2019 8:57 am
Forum: C/C++
Topic: New to Raspberry, old to programming
Replies: 40
Views: 5232

Re: New to Raspberry, old to programming

I was going to chip in with my usual, use Visual Studio C++ for Linux, or Visual Studio with visualGDB plug in for almost painless compiling on your PC to your RPi. then I saw Windows XP...and I decided best not.. Is there no way you can upgrade to Wndows 8 or 10? It opens up a whole new world of to...

Go to advanced search