X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0004.html-inc;h=21af3c62575cc586c0963c4e159ff88dcc5aae7f;hb=4e0dc29301fd3ac0fc0e6afa6fb9fb0572fedb2a;hp=7f9c593d829b4b3118fe033c07d9644cbe13239e;hpb=56d4907c407e8564b4a8a9d09e252573131fad3e;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0004.html-inc b/pages/blog-0004.html-inc index 7f9c593..21af3c6 100644 --- a/pages/blog-0004.html-inc +++ b/pages/blog-0004.html-inc @@ -1,25 +1,38 @@

-Eye Candy +Perl+SDL 3D Rendering

-
-clang
-With each imperfect hit
-a legendary blade forms
-

+Recently we have done a lot of work on the next release of SDL Perl. But it all pays off when I see users do cool things as one of the users has done below. Talon^++! This project is a great example for people wanting to learn 3D from scratch.

+--yapgh

-In prep for the TPM meeting we have been working hard to release a new version of SDL Perl and Alien::SDL. After a lot of feed back from testers (Mike Stok, Stuart Watt, and Chas Owens), we where able to get a working version on 64bit and Mac. The releases will be out tomorrow but here
-is some eye candy to tide you guys over.
+
This was a project to test how well Perl+SDL performs and does not use OpenGL at all. This is all perl and SDL, with the help of libsdl_gfx for SDL::GFX::Primitives. Texture mapping doesn't use SDL::GFX::Primitives because textured_polygon just takes a surface, tiles it, and clips out the polygon, which doesn't look 3D at all.

+Below are some screen shots of this little toy in action. If you'd like to try it yourself, you can download the entire project here. You can rotate the objects with the mouse, or keyboard arrows. Also press shift to toggle shading and space to switch objects.

-This is shooter.pl finally working in MacOSX and 64 bit.
+NOTE: the project is compressed in the .tgz format, if you are a windows user, you may need a tool like 7zip to extract the contents.

-

+
Standard Cube:
+

+

Standard Cube with Pseudo Shading:

-k23z_ mentioned I should get some more SDL_perl videos out to attract some devs. So here goes.
+

+

Standard Diamond:

-Walking Guy from SDLPerl on Vimeo. -


-

\ No newline at end of file +

+

Standard Diamond with Pseudo Shading:
+
+

+

Textured Cube:
+
+

+

Perspectively Correct Textured Cube:
+
+

+

Perspectively Correct Textured Cube with shading:
+
+

+
+


+

\ No newline at end of file