Go to advanced search

by jmacey
Wed Jul 18, 2012 9:40 am
Forum: Beginners
Topic: how install the new raspbian image?
Replies: 3
Views: 1380

Re: how install the new raspbian image?

For the applications I think you would need to install them again from the new raspbian repo, as most will be re-built to use the hardfloat libs etc. To get a list of packages use dpkg –get-selections which will list all things you have installed on your current system. You can then use this list to...
by jmacey
Wed Jul 18, 2012 9:19 am
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

A bit more detail. I've built both libusb and libusb-compat, It seems that the compat lib is for using older USB devices, however when linking the kinect lib it only seems to use the libusb. I've hacked things to use just the compat lib and it built but when running it complains that libusb_init is ...
by jmacey
Wed Jul 18, 2012 9:08 am
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

trying now but now luck so far
by jmacey
Tue Jul 17, 2012 9:00 am
Forum: Troubleshooting
Topic: tar compressed files
Replies: 2
Views: 4272

Re: tar compressed files

.tar.gz is actually two different methods of file processing. The .gz is gzip and this is used to compress the file. .tar is "tape archive" and literally creates a single file of all the files in the directory(s) you wish to archive. To extract you need to unzip as well are un-archive to I usually u...
by jmacey
Sun Jul 15, 2012 7:45 am
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

I actually hacked out all the threading code in the libraries, and it seems to be a USB bottleneck, I'm presuming it's just USB timeouts / async type problem. There was an issue with the mac version and there had to be a patch for libUSB to make it work, my suspicion is that there is a similar probl...
by jmacey
Wed Jul 11, 2012 9:31 pm
Forum: OpenGLES
Topic: extension not supported...
Replies: 2
Views: 2401

Re: extension not supported...

The main problem will be that GLUT and other standard OpenGL packages whilst building on the PI will most likely not work as they are for Desktop OpenGL and not OpenGL ES. You will need to build an EGL OpenGL window and use OpenGL ES 1.1 or preferably 2.0, this will require quite a lot of different ...
by jmacey
Tue Jul 10, 2012 11:03 pm
Forum: OpenGLES
Topic: Performance?
Replies: 12
Views: 2914

Re: Performance?

Switching textures on a per tri basis is ok just set the bind to the id of the texture you need. I think the main slowdown is the actual loading of the texture to texture memory. What is it you are actually trying to do?
by jmacey
Tue Jul 10, 2012 4:37 pm
Forum: Python
Topic: Upgrading to Pythom 3
Replies: 4
Views: 1594

Re: Upgrading to Pythom 3

On my wheezy build they are both already installed, the default python is 2.7 and to get python 3 just type python3 in the shell
by jmacey
Tue Jul 10, 2012 9:06 am
Forum: OpenGLES
Topic: Performance?
Replies: 12
Views: 2914

Re: Performance?

BTW if it's just image data how about blitting the data using the dispmanx stuff, there is an interesting thread here http://www.raspberrypi.org/phpBB3/viewt ... =33&t=7672
by jmacey
Tue Jul 10, 2012 8:54 am
Forum: OpenGLES
Topic: Performance?
Replies: 12
Views: 2914

Re: Performance?

not tried yet but have got textures working ok, but did find larger textures (1K Square) were very slow to load / process. Ended up using a 512x512 and that worked ok.
by jmacey
Tue Jul 10, 2012 8:46 am
Forum: Troubleshooting
Topic: Making SD image with Mac?
Replies: 4
Views: 2990

Re: Making SD image with Mac?

If you still have issues (took me a couple of tries to get it working) I wrote my attempts up here http://jonmacey.blogspot.co.uk/2012/06/ ... c-osx.html
by jmacey
Tue Jul 10, 2012 8:41 am
Forum: OpenGLES
Topic: Performance?
Replies: 12
Views: 2914

Re: Performance?

the Julia shader is generally quite slow due to the loops in it, I've managed to get quite high poly / frame rate using simple Ambient, Specular Diffuse shader with 1 light. This video is about the most polys I've pushed http://youtu.be/Jr1XL11ogJI The biggest problem I've encountered is CPU bound p...
by jmacey
Mon Jul 09, 2012 8:35 pm
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

So it does seem to be a sync / timeout error, turning on USB debug gives this (and I've changed the timeout values in the kinect lib to loads of different values to no avail) [Stream 80] Invalid magic 0000 libusb: 0.734725 debug [submit_iso_transfer] need 1 32k URBs for transfer libusb: 0.735193 err...
by jmacey
Mon Jul 09, 2012 7:53 pm
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

So far I can get the depth and the video camera's to initialise ok, I can see the IR glowing, however there seems to be an issue that the freenect_set_video_callback and freenect_set_depth_callback don't properly register my callbacks and I just grab the initial zero buffer. I'm going to see If I ca...
by jmacey
Mon Jul 09, 2012 3:52 pm
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

Here is my first blog post about getting the tilt stuff working, http://jonmacey.blogspot.co.uk/2012/07/ ... inect.html will start on the video stuff later.
by jmacey
Mon Jul 09, 2012 3:39 pm
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

For some reason I didn't work for me but once I used the freenect_set_led rather than the sync versions it was all fine. Am working on a video demo now will report back later
by jmacey
Mon Jul 09, 2012 2:24 pm
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

Let me tidy it up a bit first, it's a major hack ;-)
Here is the video of it working http://www.youtube.com/watch?v=UfmiPEVQ ... e=youtu.be
by jmacey
Mon Jul 09, 2012 10:33 am
Forum: Automation, sensing and robotics
Topic: Kinect - Would it ever work with a Raspberry Pi?
Replies: 117
Views: 78332

Re: Kinect - Would it ever work with a Raspberry Pi?

I've managed to compile the freenect libraries (didn't bother with the demos etc) as well as libusb from source. I've managed to get a hacked version of the tiltdemo.c program to work, by not using the sync commands but using a proper contex from the device. I will see if I can get video later today...
by jmacey
Sun Jul 08, 2012 8:16 am
Forum: OpenGLES
Topic: Best way to time this chip?
Replies: 6
Views: 7077

Re: Best way to time this chip?

I usually use the boost timers http://www.boost.org/doc/libs/1_50_0/do ... _time.html

There is a particularly good cpu timer class http://www.boost.org/doc/libs/1_48_0/li ... imers.html
by jmacey
Wed Jul 04, 2012 9:59 pm
Forum: OpenGLES
Topic: Announcement: pishadertoy
Replies: 24
Views: 16409

Re: Announcement: pishadertoy

Great stuff, glad my code is of use, think this will come in handy for simple shader test.

All seems to work well on my system.

Jon
by jmacey
Wed Jul 04, 2012 6:31 am
Forum: OpenGLES
Topic: GL performance
Replies: 8
Views: 6103

Re: GL performance

yes texture support is now in the lib, it uses ImageMagick for loading (which is in the apt repo). The latest code is now available on google code (with a demo of loading an textured model .obj in the downloads section) http://code.google.com/p/pingl/ The only thing I need to complete now is the tex...
by jmacey
Tue Jul 03, 2012 10:18 pm
Forum: Python
Topic: Keystroke detection without drawing a window...
Replies: 6
Views: 12030

Re: Keystroke detection without drawing a window...

you could try curses which is installed with the default python, something like this import curses #init the curses screen stdscr = curses.initscr() #use cbreak to not require a return key press curses.cbreak() print "press q to quit" quit=False # loop while quit !=True: c = stdscr.getch() print cur...
by jmacey
Tue Jul 03, 2012 7:12 pm
Forum: OpenGLES
Topic: OpenGL ES From the Ground Up - Vertex way off
Replies: 10
Views: 3742

Re: OpenGL ES From the Ground Up - Vertex way off

For learning purpose (OpenGL or GL ES) I recommend using "Glut" because it does the whole OpenGL Setup for you. I'm afraid for OpenGL ES and the PI glut isn't that good as you need to use EGL to create a context, and if you are using ES 2.0 most of what come with glut (and free glut etc) is depreca...
by jmacey
Tue Jul 03, 2012 3:29 pm
Forum: Debian
Topic: GLX / OpenGL
Replies: 6
Views: 9630

Re: GLX / OpenGL

another thought could be to use SDL, it does some basic blitting from bmp files and is good with 2D sprites etc and much simpler that OpenGL
by jmacey
Tue Jul 03, 2012 3:26 pm
Forum: Debian
Topic: GLX / OpenGL
Replies: 6
Views: 9630

Re: GLX / OpenGL

the only problem with these demos is the fact that they will be running software OpenGL and be slow if they work at all. For OpenGL ES 1.1 you don't need to write shaders etc, so it should be much easier as it uses the fixed function pipeline. The triangle.c demo in the /opt dir has a basic demo of ...

Go to advanced search