Go to advanced search

by jmacey
Tue Jul 03, 2012 3:12 pm
Forum: Debian
Topic: GLX / OpenGL
Replies: 6
Views: 9296

Re: GLX / OpenGL

Got quite a few demos, have a look at my blog posts (start here) http://jonmacey.blogspot.co.uk/2012/06/opengl-es-on-raspberry-pi-pt-eglconfig.html There is a lot more in depth stuff here as well ( http://code.google.com/p/pingl/ ) which is a full 3D OpenGL ES2.0 library. If you just want to do simp...
by jmacey
Thu Jun 28, 2012 7:25 am
Forum: Off topic discussion
Topic: Podcast Recommendations?
Replies: 7
Views: 1549

Re: Podcast Recommendations?

Another couple of BBC ones I like

Infinite Monkey cage (Science and comedy)

also I'm currently working through the entire In our time archive as well, which cover such a diverse range of topics, each one is like a 40 minute lecture.
by jmacey
Tue Jun 26, 2012 7:03 am
Forum: General programming discussion
Topic: where to start? (learning C, C++)
Replies: 19
Views: 8780

Re: where to start? (learning C, C++)

I recommend these books to my students learning C++ http://www.mindview.net/Books/TICPP/Thi ... PP2e.html/
by jmacey
Mon Jun 25, 2012 1:03 pm
Forum: Graphics programming
Topic: headers/libs for cross-compiling graphics programs
Replies: 4
Views: 5990

Re: headers/libs for cross-compiling graphics programs

yes from the target system. IIRC the /opt/vc is part if the main firmware / kernel so all "official" distros should have it (I think vc stands for Video Core) You can also download it from here https://github.com/raspberrypi/firmware/
by jmacey
Mon Jun 25, 2012 12:20 pm
Forum: OpenGLES
Topic: "hello" example problems
Replies: 17
Views: 5151

Re: "hello" example problems

if you are in the /opt/vc/src/hello_pi directory it is owned by root, so you either need to do a sudo make or preferably copy the directory to you home and edit the make files to the correct place.
by jmacey
Mon Jun 25, 2012 12:05 pm
Forum: Graphics programming
Topic: headers/libs for cross-compiling graphics programs
Replies: 4
Views: 5990

Re: headers/libs for cross-compiling graphics programs

they are all in /opt/vc What I do is make a copy of this on my target machine and cross compile using a simple makefile like this one (see the hard coded paths etc just alter for your own system) For easy I also copy other libs I use (such as image magic to the same directory on the host machine as ...
by jmacey
Sun Jun 24, 2012 8:52 am
Forum: OpenGLES
Topic: GL extensions
Replies: 4
Views: 2515

Re: GL extensions

I think it's a standard header with switches turned on for what is implemented. When I was looking for Vertex Array Objects I found this in the header /* GL_OES_vertex_array_object */ #ifndef GL_OES_vertex_array_object #define GL_OES_vertex_array_object 1 #ifdef GL_GLEXT_PROTOTYPES GL_APICALL void G...
by jmacey
Sun Jun 24, 2012 8:23 am
Forum: OpenGLES
Topic: piNGL on google code
Replies: 7
Views: 2626

Re: piNGL on google code

Thanks for the feedback, glad your finding it useful. The Mouse.cpp / h files are no longer needed as I decided to let SDL do the hard work, if you pull the latest branch it should update the EGLWindow class to remove all the code. There are also a number of posts on how this was all designed on my ...
by jmacey
Fri Jun 22, 2012 9:39 pm
Forum: General discussion
Topic: Text Editor with decent syntax highlighting
Replies: 20
Views: 20996

Re: Text Editor with decent syntax highlighting

vim as well (my preferred console editor) just need to add syntax on to you .vimrc

http://www.cyberciti.biz/faq/turn-on-or ... vi-or-vim/
by jmacey
Wed Jun 20, 2012 1:31 pm
Forum: OpenGLES
Topic: Getting Started with EGL / OpenGL ES
Replies: 13
Views: 17037

Re: Getting Started with EGL / OpenGL ES

Just written up most of my design for the EGLWindow class etc http://jonmacey.blogspot.co.uk/2012/06/opengl-es-on-raspberry-pi-pt-eglconfig.html http://jonmacey.blogspot.co.uk/2012/06/opengl-es-on-raspberry-pi-pt-2.html http://jonmacey.blogspot.co.uk/2012/06/opengl-es-on-raspberry-pi-pt-3-creating.h...
by jmacey
Wed Jun 20, 2012 11:23 am
Forum: OpenGLES
Topic: Odd problem with alpha in the frame buffer
Replies: 19
Views: 13236

Re: Odd problem with alpha in the frame buffer

I was originally getting this, think it was more to do with not setting / clearing the depth buffer properly. I now use the following (with or without alpha) and it seems to work ok glClearColor(0.2, 0.2,0.2,1.0); glEnable(GL_DEPTH_TEST); // then before a draw glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH...
by jmacey
Tue Jun 19, 2012 9:16 pm
Forum: General discussion
Topic: RaspberryPi On/Off Switch Idea
Replies: 81
Views: 54476

Re: RaspberryPi On/Off Switch Idea

It's interesting to know that somebody else has had the lockup with SDL, I too have had the same problem and need to do a hard re-boot. Perhaps we should start another thread about this problem; I thought it was my code! Still the switch idea is a good one.
by jmacey
Tue Jun 19, 2012 9:09 pm
Forum: OpenGLES
Topic: piNGL on google code
Replies: 7
Views: 2626

Re: piNGL on google code

it seems this is a "know feature" of git (I usually use bzr) I fixed it by adding some empty .gitignore files to the directories (see this http://stackoverflow.com/questions/1159 ... repository)
by jmacey
Tue Jun 19, 2012 9:05 pm
Forum: OpenGLES
Topic: piNGL on google code
Replies: 7
Views: 2626

Re: piNGL on google code

that's strange I will check the branch and make sure I add them (they were most likely empty when I created the initial branch)
by jmacey
Tue Jun 19, 2012 5:27 pm
Forum: OpenGLES
Topic: piNGL on google code
Replies: 7
Views: 2626

piNGL on google code

I've finally uploaded all my 3D graphics library to google code http://code.google.com/p/pingl/ I've only uploaded the library at present but will add more demo programs once I get a chance, at present it seems to work ok for most things, I do however need to complete the Text rendering (using freet...
by jmacey
Fri Jun 15, 2012 8:49 am
Forum: Other projects
Topic: 250 PiHouses and counting!
Replies: 5
Views: 1948

Re: 250 PiHouses and counting!

my case arrived yesterday (clear) it's really good and the pi no longer skates across the desk when the monitor cable moves. Can't wait for the break out board looks interesting
by jmacey
Fri Jun 15, 2012 8:33 am
Forum: C/C++
Topic: An OpenGL Graphics Library for pi
Replies: 4
Views: 2100

Re: An OpenGL Graphics Library for pi

usually you would need to do this for each mesh using m_transformStack.pushTransform() m_transformStack.setScale.... m_transformStack.setPosition.... m_transformStack.setRotation.... loadMatricesToShader(m_transformStack) mesh1->draw m_transformStack.popTransform() m_transformStack.pushTransform() m...
by jmacey
Thu Jun 14, 2012 8:24 pm
Forum: OpenGLES
Topic: Keyboard and Mouse library for GL
Replies: 8
Views: 4093

Re: Keyboard and Mouse library for GL

thanks, for the suggestion of the 0 SDL window that does seem to improve things a little, I've got my own EGLWindow class that I use similar to the code you posted (however I have a EGLConfig class passed to the window creation) There are some demos here http://nccastaff.bournemouth.ac.uk/jmacey/Gra...
by jmacey
Thu Jun 14, 2012 6:27 pm
Forum: OpenGLES
Topic: Keyboard and Mouse library for GL
Replies: 8
Views: 4093

Re: Keyboard and Mouse library for GL

I spoke too soon, I've now managed to get SDL and EGL working fairly well together I do get the occasional crash but not sure if that's my code or SDL at present. For anyone else trying to mix the two the process is as follows 1). create an exit function incase SDL crashes and register it with atexi...
by jmacey
Wed Jun 13, 2012 8:45 pm
Forum: OpenGLES
Topic: Keyboard and Mouse library for GL
Replies: 8
Views: 4093

Keyboard and Mouse library for GL

I'm in the process of porting loads of code based on Qt and want a simple lightweight mouse and keyboard library for the demos (basically EGL windows using OpenGL) I know Qt is available on the pi but want to reduce overhead etc so I have a couple of options that I've been exploring but am having is...
by jmacey
Tue Jun 12, 2012 9:00 pm
Forum: Debian
Topic: Help test the next Debian image (wheezy)
Replies: 443
Views: 137491

Re: Help test the next Debian image (wheezy)

My OpenGL stuff works, however on every re-boot I get the following *failed to open vchiq instance. I can fix it using sudo chmod a+rw /dev/vchiq but this is not a permanent fix as after a re-boot the permissions revert back to the original, is there a fix for this (or shall I just add it to my own ...
by jmacey
Tue Jun 12, 2012 8:13 pm
Forum: Debian
Topic: Help test the next Debian image (wheezy)
Replies: 443
Views: 137491

Re: Help test the next Debian image (wheezy)

All working so far here, am doing some test build of OpenGL code now so will report if any problems, I really like the first boot options of memory partition and SD card re-size saves me loads of time.

thanks and good work all!
by jmacey
Mon Jun 11, 2012 8:44 pm
Forum: OpenGLES
Topic: glGetError() slow!
Replies: 8
Views: 3135

Re: glGetError() slow!

I must say I don't call glGetError that often and rely on visual feedback first, when I do need it I use the following call from my lib void NGLCheckGLError(const std::string &_file,const int _line) { int errNum = glGetError(); while (errNum != GL_NO_ERROR) { std::string str; errNum = glGetError(); ...
by jmacey
Mon Jun 11, 2012 8:24 pm
Forum: OpenGLES
Topic: Vnc & opengl es
Replies: 1
Views: 1969

Re: Vnc & opengl es

I usually run my GL apps via ssh, This means the pi renders to the DVI output but the text (using std::cout / std::cerr) prints to the console I ran the program from (the ssh window on my mac). If you use the windows equivalent of ssh it should do the same.
by jmacey
Mon Jun 11, 2012 8:21 pm
Forum: OpenGLES
Topic: Buffer objects not working
Replies: 2
Views: 1198

Re: Buffer objects not working

Do you mean Vertex Buffer Object? or Vertex Array Objects? VBO's seem to work fine, but VAO's are not implemented, I've wrapped my own VAO class you can grab the very alpha code and a simple demo from here http://nccastaff.bournemouth.ac.uk/jmacey/GraphicsLib/piNGL/index.html (it's a fully compiled ...

Go to advanced search