X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL-Site.git;a=blobdiff_plain;f=pages%2Fblog-0010.html-inc;h=21af3c62575cc586c0963c4e159ff88dcc5aae7f;hp=b1abc1d15ace99fb968ddcc0866bb1101ddb8cbf;hb=e785862422f3e827a242fc244bd57b23443887ce;hpb=879fff64432f43c80083c7b45da72611be9dca4b diff --git a/pages/blog-0010.html-inc b/pages/blog-0010.html-inc index b1abc1d..21af3c6 100644 --- a/pages/blog-0010.html-inc +++ b/pages/blog-0010.html-inc @@ -1,23 +1,38 @@

-Huge World Maps in less then 100 lines +Perl+SDL 3D Rendering

-

-Hello folks,
+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.

-Recently we have been working on making the Perl syntax sugar for SDL in the form of SDLx. So far we have got the SDLx::Surface and SDLx::Sprite (garu++) done. So the first thing we did was throw together a quick Zelda map walker. As you can see above.  The code is at http://gist.github.com/478440. The SDL code that this depends on will be SDL 2.503 soonish . We are in the process of cleaning up some more SDLx and Alien::SDL bugs. After that SDLx::App will be overhauled to make this sort of thing even easier. Finally living up to our goal of  'Simple Games Easy. Complex Games Possible.' 
+--yapgh

+
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.

-UPDATE: with some help, and newcomer jtpalmer's help we have added Link
- 
+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.

-

+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:

-

+

+

Standard Diamond:

---caio yapgh -


-

\ 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