PixelMachine ray-tracing dealy-bob!

PixelMachine ray-tracing dealy-bob!

The Bin Chute — Page [1] 2
SuperJer
Websiteman

2005 Mar 21 • 6655
This truck is for comments about my article at:

http://www.superjer.com/pixelmachine/
 
 
 
2007 Feb 20 at 02:40 UTC
CornJer
Metal does cocaine.

Frontline Heroism Medal
2005 Mar 21 • 1531
36 ₧
Holy shit thats awesome.

Your source code is confusing though. Too much numbers.
If you jump high enough you'll hurt your ankles when you land.
 
 
 
2007 Feb 20 at 04:53 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
Ok I'll take some out... :/
 
 
 
2007 Feb 20 at 05:54 UTC
molkman
Owner of George Washington's Prototype Mittens

Marine Warfare Corporal
Find the Hole Participation Medal
Find the Hole II Participation Medal
Tasty Br�twurst Medal
2005 May 2 • 2066
404 ₧
Will this be a part of spartor?
LET LOVE REIGN
 
 
 
2007 Feb 20 at 16:48 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
Yes. SPARToR will have a built-in ray-tracing mode, along with OpenGL and D3D.

Actually I might cut D3D, it's annoying.

Ray-tracing will NOT work for real-time gaming for a few years (until hardware is A LOT faster) but it will still be fun for rendering super high quality screenshots or playbacks of demos and stuff!!

:D
 
 
 
2007 Feb 20 at 19:14 UTC
aaronjer
*****'n Admin

Comrade General 5-Star
2005 Mar 21 • 4979
1,227 ₧
Wow. That was shiny. Very shiny. If I could stop playing with my Wii for 5 seconds I'd come over and check it out.
 
 
 
2007 Feb 20 at 22:16 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
You should come over and check out my Wii too. I still haven't tried WarioWare and also MS Flight Simulator on 6 screens is in the queue...
 
 
 
2007 Feb 21 at 08:13 UTC
Nezumi
Asshole Admin

1-Up Medal
2005 Mar 27 • 796
175 ₧
I think we all need to get together and compare Wiis.

(P.S. Superjer, as an adendum to our conversation: Gravitino? Seriously now they're just makin' shit up.)
 
 
 
2007 Feb 21 at 09:21 UTC
NatureJay
SJA: Commander of Ruthless Abuse

Good Conduct Medal
2005 Mar 23 • 1871
574 ₧
I prefer Graviolis. personally.
100% natural, no antibiotics, and bloodgrass-fed
 
 
 
2007 Feb 21 at 18:22 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
New pics available on the stress tests page:
http://www.superjer.com/pixelmachine/stress/

Example :)
 
 
 
2007 Feb 22 at 21:19 UTC
NatureJay
SJA: Commander of Ruthless Abuse

Good Conduct Medal
2005 Mar 23 • 1871
574 ₧
Looks like a photograph of ball-bearings in a metal box.

It's usually against my policy to acknowledge that Superjer is capable of doing anything other than sucking, but damn.
100% natural, no antibiotics, and bloodgrass-fed
 
 
 
2007 Feb 22 at 23:33 UTC
brad1000
2007 Feb 20 • 265
superjer check ur pee ems
i didn't do it, it was mrsticks
and i found out it was acualy mrs.tits
were is he any ways
 
 
 
2007 Feb 23 at 02:28 UTC
redkrieg
2007 Feb 21 • 2
11 ₧
While I was playing with pixel machine making movies, I ran across a few frames that I thought would make really nice wallpapers, so I wrote in a little mod to do the movement calculations between frames for X frames before passing to the render routine. This let me blow up any particular frame out of a movie into a full sized wallpaper. Code changes follow, additions in bold:



[code:1]
#define FRAMES 1 // frames of animation
[b]#define SFRAME 0[/b]
...
int frames;
[b]int sframe;[/b]
...
frames = FRAMES;
[b]sframe = SFRAME;[/b]
...
case 'v': frames = atoi(argv[i]+2); break;
[b] case 's': sframe = atoi(argv[i]+2); break;[/b]
...
[b]for(i=0;i<sframe;i++)
{
subtract( cam, cam, lin );
tar.z -= 0.85;
cam.z -= 0.9;

for(j=0;j<SPHERES;j++)
{
switch( j%3 )
{
case 2: sphere[j].center.z += 1.1; break;
case 1: sphere[j].center.z -= 1.1; break;
case 0: break;;
}
}
}[/b]

printf("Rendering...\n");
[/code:1]

Simple I know, but useful enough that I figured you might want to hang on to it.

Edit:
Oops, bold doesn't work in code tags, ahh well... need something to differentiate.

Also, have you considered making it multithreaded? Divide the work in half, hand half to each thread, combine at the end... All the work in half the time! (On a dual core machine of course). Raytracing I know works well with multithreading, but I'm not sure about photon mapping.

Multithreading tutorial: http://vergil.chemistry.gatech.edu/resources/programming/threads.html
 
 
 
2007 Feb 23 at 12:56 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
I am working on allowing customized pathing for rendering animations. Bascially the idea is, let the user roam around in very low res and set waypoints and angles, and then make a video between them. Your idea of being able to jump back to a frame is very cool. I'll definately get that working.

I will probably also add the physics code from my game engine so PixelMachine can simulate physics. It would be much cooler to see those metal balls rolling around and colliding than just floating.

Multithreading is definitely the way to go for this app, I just haven't got round to it yet. I am pretty sure photons can benefit from multithreading also. The photon stuff just uses raytrace() like everything else.
 
 
 
2007 Feb 23 at 18:03 UTC
redkrieg
2007 Feb 21 • 2
11 ₧
Awesome, I can't wait to see the next version's source... Very interesting stuff going on!
 
 
 
2007 Feb 23 at 19:07 UTC
brad1000
2007 Feb 20 • 265
wen is it done??? iv been waiting 4 mcdiddy's and the game 4 ever
i didn't do it, it was mrsticks
and i found out it was acualy mrs.tits
were is he any ways
 
 
 
2007 Feb 24 at 05:14 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
"brad1000" said:
wen is it done??? iv been waiting 4 mcdiddy's and the game 4 ever


I don't know. I have a shitload of stuff to do. When I have time I work on it. That's all I know.
 
 
 
2007 Feb 28 at 22:50 UTC
brad1000
2007 Feb 20 • 265
wen is the pixel michine done wut does it do
i didn't do it, it was mrsticks
and i found out it was acualy mrs.tits
were is he any ways
 
 
 
2007 Mar 1 at 16:50 UTC
SuperJer
Websiteman

2005 Mar 21 • 6655
It makes pretty pictures like this:

 
 
 
2007 Mar 1 at 21:48 UTC
brad1000
2007 Feb 20 • 265
wow!!! *head explodes*
i didn't do it, it was mrsticks
and i found out it was acualy mrs.tits
were is he any ways
 
 
 
2007 Mar 2 at 16:13 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
how do you run this?!

This looks insane. Good work, superjer, or your correct name to address you by...
 
 
 
2007 Mar 18 at 03:55 UTC
melloyellow582
The Original Portmanteau

Brisk.
2005 Mar 22 • 12862
666 ₧
so how much control do you have over these so called "pixels"
like can u make then into specific shapes like, say, a large australian mammal?
 
 
 
2007 Mar 24 at 02:54 UTC
CornJer
Metal does cocaine.

Frontline Heroism Medal
2005 Mar 21 • 1531
36 ₧
This should fuel superjer's ego:

A comment on stumbleupon.com
Quote:
oli23000
If you jump high enough you'll hurt your ankles when you land.
 
 
 
2007 May 13 at 22:47 UTC
reportingsjr
2008 Apr 14 • 4
Is there any way we could get the source for some of the other renders you did? Such as the one with a sphere on top of every stack of blocks.

I would like the renders to be a bit more predictable, and I liked the ones you posted. :)
 
 
 
2008 Apr 14 at 01:13 UTC
eDan Co.
Mighty Typist

Real Live Hands-On Rabbi Medal
Consolation Medal
2007 Sep 24 • 2921
252 ₧
ZOMBIE TRUCK!!
May contain traces of invisible text.
 
 
 
2008 Apr 14 at 05:06 UTC
Page [1] 2