Go to advanced search

by peterpi
Wed Nov 16, 2016 10:58 am
Forum: Graphics programming
Topic: Model file formats, is FBX possible?
Replies: 2
Views: 2080

Re: Model file formats, is FBX possible?

I think that the FBX SDK is only available for x86 (you download the built library and headers) so you couldn't load and manipulate a .fbx file on the Pi itself. You could however load a .fbx on your PC, save it in some custom format, and load that on the Pi. I've not used the SDK a great deal (and ...
by peterpi
Fri May 30, 2014 1:33 pm
Forum: C/C++
Topic: Memory management within a malloc'd block.
Replies: 1
Views: 770

Memory management within a malloc'd block.

In Linux, is there a library that takes a large block of memory (e.g. a megabyte returned from malloc), and then carries out allocations and frees from within that larger block ? I sometimes work with games consoles whose SDKs come with similar functions, but I can't find anything like that for Linu...
by peterpi
Tue Jan 21, 2014 9:06 am
Forum: Graphics programming
Topic: OpenGL ES render depth to texture
Replies: 4
Views: 3051

Re: OpenGL ES render depth to texture

The why (fog) is simply to prove to myself that I can. :) I deal with a lot of the theory at my work, but I rarely get the chance to get down to the nuts and bolts of it all. I'm having such fun.
by peterpi
Sun Jan 12, 2014 3:40 pm
Forum: Graphics programming
Topic: OpenGL ES render depth to texture
Replies: 4
Views: 3051

OpenGL ES render depth to texture

I'm messing around in OpenGL making a homebrew game engine. I've recently stared rendering my main scene to a texture (using a framebuffer), and then using that as the input to a post processing stage, to do things like blurring and altering the colour balance. I've just discovered that vanilla Open...
by peterpi
Sat Oct 27, 2012 3:14 pm
Forum: General discussion
Topic: Checking the .img file copied correctly
Replies: 2
Views: 546

Re: Checking the .img file copied correctly

cmp confirmed that my original copy was bad.

I did another dd with "conv=fdatasync" on the command line, and cmp now says "EOF on 2012-09-18-wheezy-raspbian.img".

Thanks for the tip.
by peterpi
Sat Oct 27, 2012 11:24 am
Forum: General discussion
Topic: Checking the .img file copied correctly
Replies: 2
Views: 546

Checking the .img file copied correctly

On Linux (on my PC, not my Pi), after doing a "dd" to copy the Raspbian .img file over to an SD card (e.g. /dev/sdc), is there a way to check that the copy was successful? I tried doing "md5sum /dev/sdc", and the result was different to the md5sum of the .img file. Should it be the same? The reason ...
by peterpi
Mon Sep 24, 2012 9:48 pm
Forum: Graphics programming
Topic: I can see X through my OpenGL pixels
Replies: 3
Views: 2074

Re: I can see X through my OpenGL pixels

Ah, that did it, thanks very much!

Also, digging around in that area, I noticed I had failed to set an EGL_ALPHA_SIZE in my eglChooseConfig call. hello_triangle and hello_triangle2 both request 8 bits.

This has made a rainy Monday evening 100% better :) Thanks.
by peterpi
Sat Sep 22, 2012 6:19 pm
Forum: Graphics programming
Topic: I can see X through my OpenGL pixels
Replies: 3
Views: 2074

I can see X through my OpenGL pixels

I'm doing some simple OpenGL ES coding. I've just got to the state where I'm sending vertex normals as well as positions into my shaders. Advanced 8-) Up until now, my fragment shaders have just set the fragment to a constant colour, such as gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); . Now I'm computi...
by peterpi
Mon Apr 30, 2012 2:23 pm
Forum: General discussion
Topic: Programming advice
Replies: 8
Views: 1945

Re: Programming advice

A very good way to let other people use your program is to put it on a website called GitHub (Just Google it).  This uses the git source control system.  If you're not using source control already, now's a good time to learn!  Source control is useful even for projects you're doing on your own.
by peterpi
Mon Apr 30, 2012 9:03 am
Forum: General discussion
Topic: Programming advice
Replies: 8
Views: 1945

Re: Programming advice

PS:  Learn Python the Hard Way mentioned above is a great set of tutorials.
by peterpi
Mon Apr 30, 2012 9:00 am
Forum: General discussion
Topic: Programming advice
Replies: 8
Views: 1945

Re: Programming advice

<t>Nagase said: <br/> <br/> <br/> I'm looking mostly for naming schemes for variables, methods, and classes.<br/> <br/> <br/> Worry about something else.  While you're learning, do whatever works for you.  It's a personal choice that even the pros rarely agree on, and it's the last thing you want to...
by peterpi
Mon Apr 30, 2012 8:49 am
Forum: General discussion
Topic: Does Raspberry support MultiThreading?
Replies: 17
Views: 37212

Re: Does Raspberry support MultiThreading?

<r>marwan90; If you will be programming in Python, see <URL url="http://docs.python.org/library.....ading.html">http://docs.python.org/library.....ading.html</URL><br/> <br/> If you will be programming in Java, see any of the documentation available.  It'll be exactly the same on the Pi as on anythi...
by peterpi
Wed Apr 25, 2012 11:53 am
Forum: General discussion
Topic: Using openGL?
Replies: 89
Views: 14339

Re: Using openGL?

<t>Demos and homebrew games are an area that excites me, and one that the Pi ought to excel at; partly because of the uniformity of hardware.  If I write something that works to my satisfaction on my Pi, then it'll run exactly the same on anybody else's.  For graphics code especially, there are no s...
by peterpi
Tue Apr 24, 2012 10:33 am
Forum: General discussion
Topic: Using openGL?
Replies: 89
Views: 14339

Re: Using openGL?

<t>The book I linked to above may have a phone on the cover, but it's generic to anything and has a good balance of theory and code.  It's almost all in vanilla C, apart from the get-set-up-on-an-iPhone chapter.<br/> <br/> I've been using it to code GL ES within an EGL context within an X window on ...
by peterpi
Tue Apr 24, 2012 8:53 am
Forum: General discussion
Topic: Using openGL?
Replies: 89
Views: 14339

Re: Using openGL?

rmm200 said:


Any good reference books on OpenGL ES anyone would like to recommend?


I have this one and I found it spot on:  http://opengles-book.com/
by peterpi
Fri Apr 20, 2012 1:27 pm
Forum: General discussion
Topic: RPi for 5-7 year olds?
Replies: 5
Views: 1222

Re: RPi for 5-7 year olds?

<t>Show them a program in a high level language that asks for them to type in their name, and then prints it back out at them.  If you can, memorize it and type it in as they watch.  Then run it.<br/> <br/> Showing them a Pi and going "It's just like a real computer but it's smaller and cheaper" won...
by peterpi
Thu Apr 19, 2012 10:18 am
Forum: General discussion
Topic: Startups.com talk to Eben about funding, business models etc.
Replies: 8
Views: 1987

Re: Startups.com talk to Eben about funding, business models etc.

Is Eben really just 33?  I'm 32 and I can hardly tie my shoelaces.
by peterpi
Mon Apr 16, 2012 3:18 pm
Forum: General discussion
Topic: Delivery !
Replies: 72
Views: 24794

Re: Delivery !

XAPBob, your serial number 888 is very lucky for Chinese* people!

* Ones that believe in luck, anyway
by peterpi
Wed Apr 04, 2012 3:27 pm
Forum: General discussion
Topic: Need for R-Pi 'user guide'
Replies: 15
Views: 2421

Re: Need for R-Pi 'user guide'

<t>hippy said: <br/> <br/> <br/> people considering plugging their R-Pi computers into USB sockets of set-top boxes, TV's, wallwart power supplies and anything else that has one and not everyone understands the potential consequences of doing that.<br/> <br/> <br/> I was intending on plugging my Pi ...
by peterpi
Wed Apr 04, 2012 11:01 am
Forum: General discussion
Topic: learning to program
Replies: 3
Views: 1252

Re: learning to program

<t>I really like the approach taken by Learn Python the Hard Way.  Precision, determination in the face of failure and untangling subtle bugs are what programming is.  The lessons are just the right size (and grow at just the right rate) to keep the student's interest.<br/> <br/> I would love to hav...
by peterpi
Mon Mar 26, 2012 7:36 am
Forum: General discussion
Topic: Programming with *insert language here*?
Replies: 49
Views: 9177

Re: Programming with *insert language here*?

<t>lazybum said:<br/> <br/> <br/> An OOP language<br/> supplies a decent runtime library<br/> running on ARM given the CPU power<br/> capable of talking to Gertboard (if I didn't mishear, any would do which can write chars to a stream, so pretty much any?)<br/> <br/> C++ would be an excellent choice...
by peterpi
Fri Mar 23, 2012 1:18 pm
Forum: General discussion
Topic: Has anyone actually received a board yet?
Replies: 25
Views: 5803

Re: Has anyone actually received a board yet?

poing said:


The first thing I bought, even before ordering the Pi, was two of these for both my kids:


Is that an internet-discussion-forum flame suit?
by peterpi
Mon Mar 19, 2012 9:43 am
Forum: General discussion
Topic: Pictures of screen displaying example of RPi composite output?
Replies: 29
Views: 11991

Re: Pictures of screen displaying example of RPi composite output?

<t>If you're looking for a guide as to what works and what does not, remember that videogames from the PlayStation 2 era (and before) are all designed to work on an SD television.<br/> <br/> If you have an old games console kicking around somewhere, hook it up and go into the frontends of a few game...
by peterpi
Sat Mar 17, 2012 1:34 am
Forum: General discussion
Topic: Discussions about Raspberry Pi are NOT off topic!
Replies: 29
Views: 5203

Re: Discussions about Raspberry Pi are NOT off topic!

<t>Lynbarn said: <br/> <br/> <br/> Move? Lock? Delete? … What would YOU do?<br/> <br/> <br/> None of the above.<br/> <br/> Topics that don't make it past the first couple of pages are done for already.  Let the natural process decide whether it's worthy of attention.<br/> <br/> There are approximate...

Go to advanced search