Go to advanced search

by jmacey
Mon Jun 11, 2012 8:08 pm
Forum: OpenGLES
Topic: glGetError() slow!
Replies: 8
Views: 3355

Re: glGetError() slow!

I must say I alway limit my calls to glGet function as it seems to be a bottleneck in most drivers, at present I'm only calling it when I upload shaders and need to get locations of uniforms and when I debug (usually with a #ifdef GLDEBUG code block around it) I'm getting good GL performance at the ...
by jmacey
Mon Jun 11, 2012 6:21 pm
Forum: C/C++
Topic: Boost C++ libraries for Raspberry Pi
Replies: 15
Views: 45800

Re: Boost C++ libraries for Raspberry Pi

good work,

I'm using the debian squeeze and the boost libs are in the repo, just need to use apt-get libboost-dev but i think this is 1.42 not .49
by jmacey
Mon Jun 11, 2012 2:29 pm
Forum: C/C++
Topic: An OpenGL Graphics Library for pi
Replies: 4
Views: 2270

Re: An OpenGL Graphics Library for pi

I've just added a very alpha download here http://nccastaff.bournemouth.ac.uk/jmacey/GraphicsLib/piNGL/index.html it may work for you, it may not but please let me know issues etc (and this is subject to major changes in the next few days as I'm about to merge the latest desktop branch code with it ...
by jmacey
Mon Jun 11, 2012 1:58 pm
Forum: C/C++
Topic: An OpenGL Graphics Library for pi
Replies: 4
Views: 2270

An OpenGL Graphics Library for pi

I've nearly completed the port of my Graphics Library (NCCA Graphics Library or NGL) to the pi (piNGL) and I plan to release the code later this week as an alpha, so I thought I would ask people here where I should host it. For my main stable teaching branch I host here http://nccastaff.bournemouth....
by jmacey
Mon Jun 11, 2012 9:48 am
Forum: C/C++
Topic: GLES2 head ache....
Replies: 7
Views: 2483

Re: GLES2 head ache....

The main thing you need to add to get GLES2 to work is the follwing static const EGLint context_attributes[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE }; Then when you create the context instead of using a null as the final attribute do the following eglCreateContext(m_display, config, EGL_NO_CONT...
by jmacey
Mon Jun 11, 2012 8:14 am
Forum: OpenGLES
Topic: GL performance
Replies: 8
Views: 6153

Re: GL performance

I'm getting really good performance using my own library. I do matrix calculations on the CPU and then send to a shader on the GPU, here is a video http://www.youtube.com/watch?v=Jr1XL11ogJI&list=UUOs9ZDVMPIzzqTtJHm8Tb4w&index=1&feature=plcp showing it in action with very little code optimisation (I...
by jmacey
Fri Jun 08, 2012 11:04 am
Forum: OpenGLES
Topic: Getting Started with EGL / OpenGL ES
Replies: 13
Views: 17801

Re: Getting Started with EGL / OpenGL ES

On the latest kernel you need to add another include path for the pthreads. Not at the computer at the moment but if you look at the Makefile.include in /opt/vc directory with the demos you should see the new -I line you need. I've also added a new demo at the original link which should fix it. It's...
by jmacey
Thu Jun 07, 2012 10:24 pm
Forum: General discussion
Topic: I think I broke it
Replies: 7
Views: 2460

Re: I think I broke it

I had a similar problem when I first imaged my sd it turned out I'd just done it wrong. I suggest doing a new image on the card just in case as if the boot image is not found you just get the pwr led and nothing else
by jmacey
Thu Jun 07, 2012 10:05 pm
Forum: Python
Topic: Python and opengl es on raspberry pi linux - status?
Replies: 23
Views: 12454

Re: Python and opengl es on raspberry pi linux - status?

I do have a boost python wrapper for the desktop version of my OpenGL library http://nccastaff.bournemouth.ac.uk/jmacey/GraphicsLib/index.html I'm in the process of porting it to the pi at the moment using C++ but will at some stage build the python version as well. All it would then need is some py...
by jmacey
Thu Jun 07, 2012 8:35 pm
Forum: C/C++
Topic: - Help - Programming a simple OS
Replies: 28
Views: 10224

Re: - Help - Programming a simple OS

The classic text is Modern Operating Systems by Tanenbaum http://www.amazon.co.uk/Modern-Operating-Systems-Andrew-Tanenbaum/dp/0136006639 but I also like some of his other books such as http://www.amazon.co.uk/Operating-Systems-Design-Implementation-Tanenbaum/dp/0135053765/ref=sr_1_1?s=books&ie=UTF8...
by jmacey
Thu Jun 07, 2012 8:01 pm
Forum: Debian
Topic: Root Password.
Replies: 4
Views: 6820

Re: Root Password.

try doing

sudo su

and enter your password
by jmacey
Thu Jun 07, 2012 5:47 pm
Forum: Off topic discussion
Topic: Impressive GPU
Replies: 9
Views: 2504

Re: Impressive GPU

Wow, just done a 128/128 split and it makes loads of difference, lost count of how many triangles this is, but all of the previous one plus more http://youtu.be/Jr1XL11ogJI As a bit of background to the processing load, all of the matrix calculations are done on the CPU, by a function that looks a b...
by jmacey
Thu Jun 07, 2012 4:52 pm
Forum: Off topic discussion
Topic: Impressive GPU
Replies: 9
Views: 2504

Re: Impressive GPU

the compilation problems are because the data files are huge I get the same problems on some low end desktops (2G Ram) at present I've got the bunny, dragon, buddha, troll and teapot all running with the highest GPU split. I will post a video soon, just seeing how much more I can push it before it b...
by jmacey
Thu Jun 07, 2012 4:37 pm
Forum: Off topic discussion
Topic: Impressive GPU
Replies: 9
Views: 2504

Re: Impressive GPU

cool will see how much I can push it
by jmacey
Thu Jun 07, 2012 4:17 pm
Forum: Off topic discussion
Topic: Impressive GPU
Replies: 9
Views: 2504

Re: Impressive GPU

Not sure about the GPU memory I presume it's whatever the default setting is, do you know how to re-set this? For the window etc I use EGL and set the buffers to RGBA 0,0,0,0 which gives the default to 8 bits per channel IIRC, and I set the depth buffer to 24 apart from that it's pure EGL / vc comma...
by jmacey
Thu Jun 07, 2012 4:06 pm
Forum: C/C++
Topic: OpenGL ES 2 Compatibility and weird behaviours
Replies: 11
Views: 4323

Re: OpenGL ES 2 Compatibility and weird behaviours

They are discrete triangles, basically I have a program that reads an OBJ file and converts it to triangles / normals /uv's per face. It's done for quick tests rather than speed / efficiency of storage. I'm about to test some of my index array models soon
by jmacey
Thu Jun 07, 2012 3:16 pm
Forum: Off topic discussion
Topic: Impressive GPU
Replies: 9
Views: 2504

Impressive GPU

just been putting the GPU through it's paces, really impressed. http://youtu.be/yFqSF37v1uM I run out of GPU memory quite quickly but the teapot is 5345 Triangles (Vertex Normal UV sets in a VBO ) and the Troll 36512 I then draw 1 instance of the Teapot and two of the troll. I also have to build the...
by jmacey
Thu Jun 07, 2012 3:16 pm
Forum: C/C++
Topic: OpenGL ES 2 Compatibility and weird behaviours
Replies: 11
Views: 4323

Re: OpenGL ES 2 Compatibility and weird behaviours

It's all working well now decided to push the gpu http://youtu.be/yFqSF37v1uM and 3 bunnies ;-) http://youtu.be/uMxtTFI1hFs The models are statically linked into my lib so I have to cross compile them on the mac as the pi runs out of virtual memory building the lib, but apart from that a very impres...
by jmacey
Thu Jun 07, 2012 2:07 pm
Forum: Beginners
Topic: Configuring FTP?
Replies: 8
Views: 8130

Re: Configuring FTP?

btw I don't think ssh or ftp servers are on by default (and ftp isn't installed by default)

you may have to log into the pi and do the following
apt-get install ftp ftpd


for sftp (preferred) do the following
cd /etc
sudo su
./ssh restart

If you want it to boot by default

update-rc.d ssh defaults
by jmacey
Thu Jun 07, 2012 1:59 pm
Forum: Beginners
Topic: Configuring FTP?
Replies: 8
Views: 8130

Re: Configuring FTP?

If OpenSSH is installed you could try sftp or even scp I usually use scp to copy files to and from the pi (and if you setup with no password this is even easier) Another thing I do is use rsync on the mac to keep a fresh copy of the pi home directory on my mac for safety. I have a directory called f...
by jmacey
Thu Jun 07, 2012 1:34 pm
Forum: C/C++
Topic: OpenGL ES 2 Compatibility and weird behaviours
Replies: 11
Views: 4323

Re: OpenGL ES 2 Compatibility and weird behaviours

My library does all the math operations etc as well as Camera, Light, Texture Material , Shaders Primitives, Text etc (all OpenGL 3.2 core profile for Desktop) so it's just a matter of porting the main code over to ES (and replacing the Qt dependancies from the Desktop version with more lightweight ...
by jmacey
Thu Jun 07, 2012 1:06 pm
Forum: General programming discussion
Topic: Any GUI?
Replies: 2
Views: 1634

Re: Any GUI?

type
startx

int the shell and press return
by jmacey
Thu Jun 07, 2012 1:01 pm
Forum: C/C++
Topic: OpenGL ES 2 Compatibility and weird behaviours
Replies: 11
Views: 4323

Re: OpenGL ES 2 Compatibility and weird behaviours

It does actually seem to be an order thing, I managed to get my library working now (with some hard coded emulation of how Vertex Array objects work) I'm now in the process of wrapping my own VAO class. Here is a demo http://www.youtube.com/watch?v=eF81aRHsuwg&feature=youtu.be Unfortunately I'm also...
by jmacey
Thu Jun 07, 2012 12:34 pm
Forum: Python
Topic: Running python files using geany
Replies: 7
Views: 8005

Re: Running python files using geany

There are two things you need to do to make the script run. First add to the first line of your python file #!/usr/bin/python the shell will then know which interpretor to use to run the script (this is know as a hash bang http://en.wikipedia.org/wiki/Shebang_(Unix) ) next in the shell where your fi...
by jmacey
Thu Jun 07, 2012 9:05 am
Forum: C/C++
Topic: OpenGL ES 2 Compatibility and weird behaviours
Replies: 11
Views: 4323

Re: OpenGL ES 2 Compatibility and weird behaviours

looking at the makefile.include for both it uses -lGLESv2 so I presume that it's a combined library (on the vanilla install with the old kernel there are two different libs so I presume they have been combined for ease) IIRC glScale etc were still not part of ES 1.1 so not sure why that is in the li...

Go to advanced search