Go to advanced search

by PeterO
Thu Nov 29, 2012 11:49 am
Forum: General programming discussion
Topic: socket program setup
Replies: 3
Views: 4394

Re: socket program setup

man listen...... NAME listen - listen for connections on a socket SYNOPSIS #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> int listen(int sockfd, int backlog); DESCRIPTION listen() marks the socket referred to by sockfd as a passive socket, that is, as a socket that will be used to ac...
by PeterO
Wed Nov 28, 2012 10:17 pm
Forum: General discussion
Topic: opengl driver? (no)
Replies: 3
Views: 721

Re: opengl driver

opengl es !
by PeterO
Wed Nov 28, 2012 8:25 pm
Forum: General programming discussion
Topic: Which language?
Replies: 25
Views: 3160

Re: Which language?

krakjoe wrote: For a beginner, I'd never suggest you start with C. It is vastly complicated.
Are you mixing up C and C++ ?
PeterO
by PeterO
Wed Nov 28, 2012 7:56 pm
Forum: General programming discussion
Topic: /dev/input/eventX mappings
Replies: 1
Views: 722

/dev/input/eventX mappings

On my Pi in /dev/input/by-id i have the following links.. total 0 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-04f3_0103-event-if01 -> ../event1 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-04f3_0103-event-kbd -> ../event0 lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-Logitech_USB_Trackball-event-mouse -> ../event2...
by PeterO
Wed Nov 28, 2012 4:04 pm
Forum: General discussion
Topic: Disappointed
Replies: 13
Views: 1618

Re: Disappointed

So why are you still reading this forum when you don't have a PI anymore ? I'm with RaTTuS...
PeterO
by PeterO
Tue Nov 27, 2012 4:01 pm
Forum: General programming discussion
Topic: 3D world
Replies: 6
Views: 1161

Re: 3D world

I have a fairly basic openGL ES 2.0 3D space navigation example that I've written in C if that is any help. It's based on the example code in this book, but with some minor enhancements. http://opengles-book.com/ I wouldn't recommend the book unless you are already familiar with openGL in general an...
by PeterO
Mon Nov 26, 2012 9:37 am
Forum: User groups and events
Topic: Fourth Milton Keynes Jam
Replies: 11
Views: 2456

Re: Fourth Milton Keynes Jam

Glad you enjoyed it. Sorry I wasn't able to make it myself (due to car getting a puncture abut 100m after I set off....)
PeterO
by PeterO
Wed Nov 21, 2012 4:56 pm
Forum: Troubleshooting
Topic: ifconfig not found
Replies: 2
Views: 4382

Re: ifconfig not found

ifconfig is in /sbin which is not in normal users PATH by default.

If all you want to do is view network the settings you can use the full path to the executable
i.e. /sbin/config
If you need to change settings you'll have to use sudo config
PeterO
by PeterO
Wed Nov 21, 2012 10:27 am
Forum: Raspbian
Topic: can't build hello_pi examples in Raspbian
Replies: 17
Views: 11062

Re: can't build hello_pi examples in Raspbian

Looked at the source for triangle2 this morning & learnt that mouse wiggling has the GPU render new mandlebrot & julia sets. Cool. Onto the next. I think you will find the mandlebrot is only rendered once into a buffer that is just repositioned on the screen by mouse movements. I've spent some time...
by PeterO
Tue Nov 20, 2012 3:32 pm
Forum: Off topic discussion
Topic: Digital Computer History
Replies: 1
Views: 583

Re: Digital Computer History

This may be of interest to some of the Pi community : http://www.tnmoc.org/news/news-releases/worlds-oldest-original-working-digital-computer There is a good video on the BBC site here : http://www.bbc.co.uk/news/technology-20395212 I'm at TNMOC right now waiting for the "reboot" event to start :-)...
by PeterO
Sun Nov 18, 2012 6:12 pm
Forum: Graphics programming
Topic: GPU stats (free mem etc)
Replies: 20
Views: 24498

Re: GPU stats (free mem etc)

Thanks dom. I've increased GPU RAM by 32M (64M->96M) and it is telling me it has 32M free ! With my openGLES application running I see these "big" allocations: [ 22] 0x1b882080: used 7.9M (refcount 3 lock count 9, size 8294400, d1Rua) '0x1a127b00' [ 54] 0x1c06c080: used 7.9M (refcount 2 lock count 8...
by PeterO
Sun Nov 18, 2012 5:42 pm
Forum: Graphics programming
Topic: GPU stats (free mem etc)
Replies: 20
Views: 24498

GPU stats (free mem etc)

I've had a look around but I can't see any tool(s) that show how much of its allocated RAM the GPU is actually using. I've just spent some time trying to fathom out why my code to draw into a frame buffer wasn't working. When I finally found the cause it turns out the GPU was running out of memory. ...
by PeterO
Sun Nov 18, 2012 4:57 pm
Forum: General programming discussion
Topic: British-made programming language
Replies: 54
Views: 13736

Re: British-made programming language

hippy wrote:Ferranti Autocode was British, and my first introduction to programming languages courtesy of a book in the school library way back before anyone invented the micro.
Most of the earliest machines had their own autocode of one flavour or another.
PeterO
by PeterO
Sun Nov 18, 2012 6:27 am
Forum: OpenGLES
Topic: Fragment shader sometimes not working as expected.
Replies: 11
Views: 4838

Re: Fragment shader sometimes not working as expected.

Thanks for the explanation Jim. I realise the problem was a bug in MY code, but the inconsistent behaviour took me in the wrong direction looking for it :roll: As you say a fix will hopefully stop any other noob operGLES programmers falling into the same trap ! BTW I now have got as far as drawing a...
by PeterO
Fri Nov 16, 2012 5:37 pm
Forum: OpenGLES
Topic: Fragment shader sometimes not working as expected.
Replies: 11
Views: 4838

Re: Fragment shader sometimes not working as expected.

These are openGLES vertex and fragment shaders, so don't think of them as C functions !
"colour" is declared as varying, so it's value is passed from the vertex shader into the fragment shader.
PeterO
by PeterO
Fri Nov 16, 2012 4:40 pm
Forum: OpenGLES
Topic: Fragment shader sometimes not working as expected.
Replies: 11
Views: 4838

Re: Fragment shader sometimes not working as expected.

if you write gl_FragColor = colour; gl_FragColor.a = 1.0; this will probably work also. Jim I had tried that as well, and no it didn't work. I understand the explanation you gave, but how is that dependent on how I assigned a value to gl_FragColor ? colour was vec4, and vec4(1.0,1.0,1.0,1.0) was ob...
by PeterO
Fri Nov 16, 2012 1:33 pm
Forum: OpenGLES
Topic: Fragment shader sometimes not working as expected.
Replies: 11
Views: 4838

Re: Fragment shader sometimes not working as expected.

Well......

It seems the problem was that I had forgotten to sprcify "EGL_ALPHA_SIZE,8" to the attrib list in the call to eglChooseConfig!

Still, it doesn't really explain the odd behaviour I was seeing. Both methods now give the correct picture :D

PeterO
by PeterO
Fri Nov 16, 2012 1:10 pm
Forum: OpenGLES
Topic: Fragment shader sometimes not working as expected.
Replies: 11
Views: 4838

Fragment shader sometimes not working as expected.

I'm still finding my feet with openGLES, and I'm learning about shaders, but I don't understand what is going on with the code below. It is an attempt to make everything render as "white". GLbyte vShaderStr[] = "uniform mat4 u_mvpMatrix; \n" "attribute vec4 a_position; \n" "varying vec4 colour; \n" ...
by PeterO
Fri Nov 16, 2012 11:46 am
Forum: Beginners
Topic: Unspecified question(s) from a complete novice
Replies: 7
Views: 1800

Re: Unspecified question(s) from a complete novice

My son is obsessed with computers and is currently teaching himself Java and C++ languages from books he got fromt he library. [SNIP] What do you do with it ? If your son is teaching himself Java and C++ I don't think *you* need to worry about what to do with it, I think *he* will probably have ple...
by PeterO
Thu Nov 15, 2012 11:30 pm
Forum: OpenGLES
Topic: OenGL ES Sample problem
Replies: 17
Views: 5437

Re: OenGL ES Sample problem

GRRRR!!!!! I wish I had found this thread a few hours ago...... :(
PeterO
by PeterO
Wed Nov 07, 2012 3:41 pm
Forum: Beginners
Topic: Be aware of F3 polyfuse
Replies: 26
Views: 11035

Re: Be aware of adafruit 5.25V adapter

Check the voltage drop across the poly fuse. The volts could be being lost there if it has a higher resistance than expected.
PeterO
by PeterO
Wed Nov 07, 2012 3:02 pm
Forum: User groups and events
Topic: Fourth Milton Keynes Jam
Replies: 11
Views: 2456

Re: Fourth Milton Keynes Jam

I've passed your post on to the Learning Coordinator at TNMOC. I'll let you know his reply when I get it.
PeterO
by PeterO
Wed Nov 07, 2012 9:57 am
Forum: Graphics programming
Topic: Using /dev/inputX devices
Replies: 5
Views: 2922

Re: Using /dev/inputX devices

If you're reading from stdin, you don't want to be reading /dev/input/event, the latter being low level. stdin will give you the 'characters' coming from the keyboard, already mapped. There will be a difference between 'd' and 'D'. The keymapping has already occured. Yes. ... and ... ;) If you read...
by PeterO
Tue Nov 06, 2012 8:11 pm
Forum: Graphics programming
Topic: Using /dev/inputX devices
Replies: 5
Views: 2922

Re: Using /dev/inputX devices

Thanks. Google had already found the Linux Journal articles for me, but the other links are useful. I also found "evtest" which is very informative. One thing I'm not sure about at the moment is if my code watches the keyboard input device (eg for shift key presses) what should it be doing with the ...
by PeterO
Tue Nov 06, 2012 7:07 pm
Forum: General discussion
Topic: Simon's accelerated X development thread
Replies: 405
Views: 134968

Re: Simon's accelerated X development thread

The point is that there is NO accelerated X driver - anywhere. You could have something similar, if it existed - it doesn't yet. So even if you wanted to pay good money for it, you still cannot have it! You need to qualify that statement because there are LOTS X drivers that use hardware accelerati...

Go to advanced search