Go to advanced search

by redneon
Thu May 31, 2012 2:08 pm
Forum: OpenGLES
Topic: OenGL ES Sample problem
Replies: 17
Views: 5390

Re: OenGL ES Sample problem

It could be related to a similar issue I had last week. See this thread I posted here: http://www.raspberrypi.org/phpBB3/viewt ... =33&t=6360

I'd be interested to know what your eglConfig looks like. What attributes are you using?
by redneon
Thu May 31, 2012 1:41 pm
Forum: C/C++
Topic: OpenGL capabilties
Replies: 8
Views: 5463

Re: OpenGL capabilties

Ah, yeah. Sorry, I forgot about that.

Also, to quote dom from another thread: "Update firmware (e.g. with hexxeh's firmware updater) and you will get "hello_triangle2", a GL ES 2 example."

I haven't updated my firmware yet so I didn't know about this but it's a handy thing to know.
by redneon
Thu May 31, 2012 1:11 pm
Forum: OpenGLES
Topic: OenGL ES Sample problem
Replies: 17
Views: 5390

Re: OenGL ES Sample problem

I've just thought of something that might be worth trying. I had problems with culling when I didn't specify a depth size in my attributes. I ended up using 8, 8, 8, 8, 24, 0 for Red, Green, Blue, Alpha, Depth and Stencil respectively. Might be worth given that a try?
by redneon
Thu May 31, 2012 11:59 am
Forum: C/C++
Topic: OpenGL capabilties
Replies: 8
Views: 5463

Re: OpenGL capabilties

Also, just in case you haven't spotted it, there are some samples in /opt/vc/src/hello_pi which demonstrate using the bcm_host lib to do stuff directly. Have a look at the hello_triangle example for GLES.
by redneon
Thu May 31, 2012 11:50 am
Forum: OpenGLES
Topic: OenGL ES Sample problem
Replies: 17
Views: 5390

Re: OenGL ES Sample problem

I'm only guessing but I'd assume gl2.h forces the use of non-deprecated fixed-functions pipeline functions.
by redneon
Thu May 31, 2012 11:47 am
Forum: C/C++
Topic: OpenGL capabilties
Replies: 8
Views: 5463

Re: OpenGL capabilties

Well, as X doesn't currently have accelerated graphics I'm just using the bcm_host lib to access the GPU directly so I'm doing no GUI stuff at all. My framework on desktop is currently using SDL 2.0 for the windowing but I'm going to have to rip that out for Pi. At the minute I'm still finishing off...
by redneon
Thu May 31, 2012 10:59 am
Forum: C/C++
Topic: OpenGL capabilties
Replies: 8
Views: 5463

Re: OpenGL capabilties

If you're currently using the old OpenGL fixed-function stuff (glVertex3f, glRotate, glMatrixMode etc.) then you're in for a bit of a shock as that's all been deprecated now. Technically you CAN use them in standard OpenGL 3 and 4 but you really shouldn't as they'll be removed at some point. It's al...
by redneon
Thu May 31, 2012 10:53 am
Forum: OpenGLES
Topic: OenGL ES Sample problem
Replies: 17
Views: 5390

Re: OenGL ES Sample problem

Yeah, I saw this too but I didn't look into it as I already have my own working code. I'm at work at the minute but if no-one else knows I'll have a look when I get home and see if I can find out what the issue is.
by redneon
Fri May 25, 2012 4:48 pm
Forum: General programming discussion
Topic: how do i set up so i can ftp to pi?
Replies: 12
Views: 5631

Re: how do i set up so i can ftp to pi?

now I just have to figure out how to make it work. Coming from Windows, I'm more accustomed to "drag & drop" I'd use Filezilla in Windows. It's just an S/FTP client but it allows you to drag and drop etc. Just put in the IP of your Pi and use "pi" and "raspberry" for username and password (assuming...
by redneon
Fri May 25, 2012 9:41 am
Forum: General programming discussion
Topic: how do i set up so i can ftp to pi?
Replies: 12
Views: 5631

Re: how do i set up so i can ftp to pi?

Why not just use sftp? If you're using the Debian distribution it's actually incredible easy. You just rename /boot/boot_enable_ssh.rc to /boot/boot.rc and then restart your Pi and you can SSH and SFTP in to your Pi.
by redneon
Thu May 24, 2012 9:26 am
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

Re: GLSL weirdness / possible bug?

I've just run eglGetConfigs to return a list of all the supported configs and this is the output: Num configs: 28 Red: 8 Green: 8 Blue: 8 Alpha: 8 Depth: 24 Stencil: 8 Red: 8 Green: 8 Blue: 8 Alpha: 0 Depth: 24 Stencil: 8 Red: 8 Green: 8 Blue: 8 Alpha: 8 Depth: 24 Stencil: 0 Red: 8 Green: 8 Blue: 8 ...
by redneon
Thu May 24, 2012 8:56 am
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

Re: GLSL weirdness / possible bug?

1) The config for GPU is garbage 5,6,5,8 is an unsupported output format. Yeah, I saw what I'd done after I posted my reply. I actually changed it to 4, 4, 4, 4 though so it's 16 bit with alpha. if you issue. ... after you have selected the config (5,6,5,8), what does it return you for the various ...
by redneon
Wed May 23, 2012 4:42 pm
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

Re: GLSL weirdness / possible bug?

Yeah, I think it probably is. I would expect the GPU to ignore the alpha values given if the configuration doesn't include alpha (which it shouldn't with no alpha size). Moreover, with that kind of configuration it should only ever be possible to have fully opaque primitives.
by redneon
Wed May 23, 2012 11:05 am
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

Re: GLSL weirdness / possible bug?

Crap, I've just figured out what it is. User error as always. *doh!* It's because I was only passing the following into eglChooseConfig: EGLint const attribList[] = { EGL_RED_SIZE, 5, EGL_GREEN_SIZE, 6, EGL_BLUE_SIZE, 5, EGL_NONE }; I stupidly assumed that this would default to no alpha but as soon ...
by redneon
Wed May 23, 2012 9:53 am
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

Re: GLSL weirdness / possible bug?

I've added my voice. The reason I suggested it be moved into Feedback is that it's looking like it might actually be a bug. I can't imagine what else it could be but I'm hoping someone can prove me wrong :)
by redneon
Wed May 23, 2012 9:51 am
Forum: General discussion
Topic: section for GL?
Replies: 21
Views: 4151

Re: section for GL?

I like to see a GPU coding section too.
by redneon
Wed May 23, 2012 8:51 am
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

Re: GLSL weirdness / possible bug?

Thinking about it, is this the correct section for this question? Perhaps it should be moved into the feedback section?
by redneon
Tue May 22, 2012 8:22 pm
Forum: C/C++
Topic: GLSL weirdness / possible bug?
Replies: 20
Views: 6624

GLSL weirdness / possible bug?

I'm wondering if I've spotted a bug with some sample code I've written. All I'm doing is rendering a triangle on screen with very simple vertex and fragment shaders. If I set gl_FragColor explicitly in the fragment shader like this... //Fragment shader. void main() { gl_FragColor = vec4(1.0, 0.0, 0....
by redneon
Mon May 21, 2012 1:18 pm
Forum: User groups and events
Topic: The South Yorkshire Pi Group
Replies: 53
Views: 9549

Re: The South Yorkshire Pi Group

I live in Rotherham (Dearne Valley) but I work in Sheffield and am definitely up for it.
by redneon
Mon May 21, 2012 11:28 am
Forum: OpenGLES
Topic: GL performance
Replies: 8
Views: 5695

Re: GL performance

The problem with running glxgears is that it'll be using the unaccelerated X driver so it will be incredibly slow. A better benchmark would be to compile and run the sample hello_triangle application in /opt/vc/src/hello_pi as that uses the bcm_host lib and will therefore use accelerated graphics.
by redneon
Mon May 21, 2012 11:22 am
Forum: C/C++
Topic: Recommeded C++ dev environment ?
Replies: 108
Views: 77625

Re: Recommeded C++ dev environment ?

Personally, I find X far too slow to be usable at the minute so I'm using Emacs (with integrated gdb) for all my coding so far and it suits me fine.

Go to advanced search