Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Re: Show us yer programming projects!

Post by piku »

That's cool :)

I'm still twatting around with triangles and OpenGL ES on my Android phone. I have a triangle, you can spin it by tilting the phone. Ph33r my l33t skillz ;)
return (0);
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

I can make my entire UI spin by throwing the monitor across the room.
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Re: Show us yer programming projects!

Post by piku »

GoatFoam wrote:I can make my entire UI spin by throwing the monitor across the room.
I think that's why they make you teather the G1 to a computer when debugging. It stops it flying as far ;)
return (0);
User avatar
Dvorak
Baaaaaa!
Baaaaaa!
Posts: 4560
Joined: Wed May 08, 2002 7:37 am 0
Yahoo Messenger: d3dxquaternion
Location: Germany

Re: Show us yer programming projects!

Post by Dvorak »

Image

[random update of my project]

This is what I'd like to see in real-time.
Still, I don't know whether a rasterizer or a ray-tracer would be best to do the job.

What you see above is a raytraced view of a fractal octree, illuminated with, IIRC, three lights. Twenty jittered rays per pixel. Hand-coded engine. Sub-optimal not-published-yet octree traversal algorithm.
I'm still convinced that you have to start from the image if the image is just about the size of a million pixels or two, whereas the world consists of a billion billion elements.
And still, it took about two minutes to render the above image.

I learned that something like this goes under the name of 'Sparse Voxel Octree' by now. Since it's definitely sparse: Can we talk this over, John Carmack? For it was you who made me get into this kinda stuff. 3d. Ray-casting. Dr Dobb's. Graphics engines. Algorithms. Back in the early 90s it was.
And it's still not real-time.
>take off sunglasses
Seamen and fishermen alike swear to have heard voices in the rising tide. Inhuman screams, some of them say.
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

I'm not that bright in the threedee graphics department, but this month's Game Developer Magazine had an interesting article on voxels and ray-tracing. The main takeaway from the article was that he wasn't actually using rays. Instead, he was using cones. GDM articles tend to make it to the gamasutra.com website a little while after their print publication, so if that idea interests you, it will probably be showing up next month or so.
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Show us yer programming projects!

Post by super charlie »

Kerzap!



Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Show us yer programming projects!

Post by sdetoni »

super charlie wrote:Kerzap!
cool visuals and love the retro sound effects.
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

Here's a bit of JavaScript fun, and kind of a weird one. I'm studying calculus, so I needed flash cards. I don't much like paper flash cards, and I wanted them to be Internet Portable. I didn't want to have to have each one be an image, so I found out that Firefox supports a format called MathML, which can (theoretically) display nicely formatted math equations. MathML is painfully and stupidly verbose. So, I wrote an S-Expression language, parser, and light-weight macro system so I could turn 20+ line MathML documents into a single 20 character S-Expression.

Hit refresh to display a different flash card.
http://failrate.com/b/calculus.xhtml

In theory, I could modify the macro system to automatically derive and integrate a given expression. I probably won't get to that, but just spending the time handling the equations with S-Expressions has helped a lot. One of the things that bothers me about traditional mathematical notation is that I can't always disambiguate order of operations/nesting. Converting to S-Expressions helped reinforce explicit order of operations. Consequently, I now feel a lot more comfortable with the basics like the Chain Rule.
User avatar
tufty
Sheepie Whore
Sheepie Whore
Posts: 12525
Joined: Fri Jan 07, 2005 4:52 pm 0
Location: French Alps

Re: Show us yer programming projects!

Post by tufty »

That's nice.
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Re: Show us yer programming projects!

Post by moosedude »

Dvorak wrote:
...large picture...

[random update of my project]

This is what I'd like to see in real-time.
Still, I don't know whether a rasterizer or a ray-tracer would be best to do the job.

What you see above is a raytraced view of a fractal octree, illuminated with, IIRC, three lights. Twenty jittered rays per pixel. Hand-coded engine. Sub-optimal not-published-yet octree traversal algorithm.
I'm still convinced that you have to start from the image if the image is just about the size of a million pixels or two, whereas the world consists of a billion billion elements.
And still, it took about two minutes to render the above image.

I learned that something like this goes under the name of 'Sparse Voxel Octree' by now. Since it's definitely sparse: Can we talk this over, John Carmack? For it was you who made me get into this kinda stuff. 3d. Ray-casting. Dr Dobb's. Graphics engines. Algorithms. Back in the early 90s it was.
And it's still not real-time.
about time you posted something ;) This is impressive, even if Carmack tried it a few years ago!!

I've been playing with the GPU & general purposes computations, I wonder if the same techniques could be applied to speed this up.

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

Updated it to make it almost completely the flash card interface I originally wanted.
http://failrate.com/b/calculus.xhtml

Tried getting clever using macros to symbolically derive equations, but it's too far out of my league at the moment. Still, I think the flash cards will help me memorize my derivatives, integrals and trig identities.
User avatar
Mark
Baaaaaa!
Baaaaaa!
Posts: 3611
Joined: Mon Apr 22, 2002 7:53 pm 0
Location: England

Re: Show us yer programming projects!

Post by Mark »

After taking a bit of a break from coding I've jumped back in and finally cracked one of my biggest issues on my game - recolouring the meshes in-game so different levels can have different colour schemes without needing extra assets. It's something that I found easy to do using XNA's BasicEffect, but this game's using a shader with a custom model importer that I found on the net, and I just couldn't figure out how to get it sorted nicely. However I found a way to do it within acceptable limits of nasty-kludginess, and that'll do for me. What's more it then allowed me to do this:



All colour schemes are placeholder and were thrown together in minutes, btw - the final things will be at least a little more tasteful. I also forgot the Orange Goblin this time, which is a shame because I'm considering naming the game something along the lines of Space Goblin, simply because I can't think of anything else I like.
Benevolent Dictator of Bearcat Games
Twitter: #BearcatGames
User avatar
oddbob0
Baaaaa!
Baaaaa!
Posts: 1727
Joined: Mon Mar 01, 2004 7:43 pm 0
Location: Liverpool

Re: Show us yer programming projects!

Post by oddbob0 »

Continuing my quest to make the same game repeatedly just with prettier colours each time:

Image
Image
\m/
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: Show us yer programming projects!

Post by Firefox »

Wow, that is *really* pretty!

I like the little robots and bunnies. As well as looking very cool, they also stand out from the background very well.
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
STEVIE G
Baaa!
Baaa!
Posts: 211
Joined: Sun Oct 31, 2004 10:00 am 0

Re: Show us yer programming projects!

Post by STEVIE G »

A short video showing off the music / and some gameplay for Polymaniacs:

http://www.youtube.com/watch?v=gTspDTCDRUk
Post Reply