Shop Forum More Submit  Join Login
dp3d - chess 2a by darkphoenix dp3d - chess 2a by darkphoenix
Related deviations:
:bulletred: dp3d - chess 2b
:bulletred: dp3d - chess 2 - queen detail
:bulletred: dp3d - chess 1a

Once upon a time (a couple of years ago, and then some) I put quite a bit of work into developing a chess library for POV-Ray. I posted an image rendered using the Chessblocks pieces, and then I started developing my own "Ornate" set, of which I posted a preview of the queens. That was as far as I got with it; I obviously got distracted by something shiny and started working on other interests...

Then, yesterday, I started thinking about doing something more with POV-Ray. I opened up the editor, and this file was waiting for me. I decided I would render the same file twice with a couple of minor changes, in order to showcase the capabilities of my chess library, such as they are -- and also to show the full set, for those who expressed an interest in my queens...

This image shows my "Ornate" set (and the knight does still need a little more work, I feel, to bring it into line with the rest of the set) sitting on a clear perspex board. The other image in this set shows my "Chessblocks" set (original design by Jim Cann of Chessblocks) sitting on an opaque perspex board. The only difference between the code behind these two images is in the selection of board and set; nothing else changed:

dp3d - chess - 2a

chessboard_init(CB_CLEARPERSPEX)
:
chesspieces_init(CP_ORNATE)


dp3d - chess - 2b

chessboard_init(CB_PERSPEX)
:
#include "chesslib/chessblocks/cp_cbd_icon.inc"
#declare CBD_Icon_White = object { icon_kanji_white() }
#declare CBD_Icon_Black = object { icon_kanji_black() }
#declare ICON_Mode = ICON_Inlaid;
chesspieces_init(CP_CHESSBLOCKS_DELUXE)


(Of course, this causes the library to include different files into the rendering process... ;-))

Since both of these images represent essentially unfinished work (and because not a lot of effort has gone into making them "artistic") I shall probably slide them across to my scraps after a month or so...
Add a Comment:
 
:iconsheepstar:
sheepstar Featured By Owner May 2, 2005
this is great...i tried a chess set once..no where near as effective as this...
Reply
:icondebugyeh:
DebugYeh Featured By Owner Apr 19, 2005
it looks like C or C++ there, is it c++ as there objects??
Reply
:icondarkphoenix:
darkphoenix Featured By Owner Apr 19, 2005  Hobbyist Digital Artist
It is POV-Ray's own Scene Description Language, which is used to describe all POV-Ray images. Its syntax is vaguely C-like, although it does have some pretty severe limitations in certain aspects. In general, though, you can achieve some pretty powerful tricks with it. (The "object" you refer to is an actual object which will be rendered; it is only object-oriented inasmuch as the entire purpose of the language is, essentially, to define objects for rendering...)

The advantage of describing a scene through text files is that if you have something repetitive or cyclic that cannot be easily generated within the language itself, it can always be generated from another language: for instance, I have a 28kb source file as part of my chess library which is generated by a simple PERL script... The disadvantage is that to do any complex surfaces you really need to use a 3rd-party modeller (of which there are a couple available, but which I've not played with yet -- which is why my knight is still a little too simplistic) to get the job done...

Other languages? I used to be a C/C++ snob, but the big bad world soon cured me of that. These days I still use a (very) little C, a lot of AutoLISP (AutoCAD's programming language), some VBA (in Excel) and MBA (Microstation Basic). For any day-to-day scripting, of course, I use PERL. For web stuff, I use PHP. Both PHP and PERL talk to databases via SQL -- and I've even got one particularly complicated web-based dialog box which uses PHP and SQL to extract data from a database, use it to dynamically generate some Javascript which, in turn, dynamically changes the content of a drop-down box (or two) depending on other selections the user makes. And, of course, I've played with XML, XSLT, CSS, etc, although they're hardly programming languages themselves... There are several other languages I *want* to investigate, but there never seem to be enough hours in the day...

In other words, I use whatever language seems best suited to get the job done, and if that means having to learn a new language along the way, well, it's all good! ;-)
Reply
:icondebugyeh:
DebugYeh Featured By Owner Apr 20, 2005
honourable, im learning c++, know a lot of c, know vb, html, dhtml, javascript, css, php, flash, learning 3dmax at the moment, lovin it too, :) its all good fun eh, ty for taking ur time to explain what ur up to yourself, cheers! lol theres a few other languages i know too, some people not hear of, one called brainfuck, and few i either cant remember to put here, or people dont know :P
Reply
:icondarkphoenix:
darkphoenix Featured By Owner Apr 20, 2005  Hobbyist Digital Artist
I actually had a little play around with "Ook!", which is a variant of brainfuck based on the syntax of the librarian from the Discworld books [who is an orangutan ;-)] Since the average "Hello World" program is about three pages of "Ook. Ook. Ook! Ook." it goes without saying that the Librarian is the only one who ever uses the language for anything useful... :D

In fact, some of the other esoteric languages can be really fun to play with too, but I shudder at the thought of trying to achieve anything with them...
Reply
:icondebugyeh:
DebugYeh Featured By Owner Apr 20, 2005
agreed mate agreed, brainfuck is silly:P 8 commands lol
Reply
:icondebugyeh:
DebugYeh Featured By Owner Apr 19, 2005
lol people ignoring the programming side of it, its ace, ur a great programmer, i one day hope to equal it, what languages u into?
Reply
:iconaleeart7:
Aleeart7 Featured By Owner Dec 8, 2004  Professional General Artist
wow. URS LOOKS SOO COOOL! :wow: ....i have a lot more work that i need to do ==; sigh~ good job! loooks good ^^=
Reply
:icondarkphoenix:
darkphoenix Featured By Owner Dec 8, 2004  Hobbyist Digital Artist
Thanks... :-)

I find adding the second texture (even on pieces not as complex as these) seems to work quite nicely. My first modelled set (at [link] if you're interested -- and not yet included in this library I'm working with) was single texture, simplified knight -- and rendered in glass (well, cheap plastic) because the competition topic was "glass". I've been working with POV-Ray, on and off, ever since -- and I find it does a very nice final image, no matter what you're working with...

Keep practicing, keep playing, keep having fun (seems to be the most important factor!) and you'll do fine! :D
Reply
:iconaleeart7:
Aleeart7 Featured By Owner Dec 9, 2004  Professional General Artist
hehe, i will ^^ love the detailing
Reply
:icontomcain:
tomcain Featured By Owner Dec 5, 2004   Digital Artist
Outstanding attention to detail. Fantastic work! :+fav:
Reply
:iconspleenage:
Spleenage Featured By Owner Dec 4, 2004   Filmographer
Nice job the Queen and Kings look the best.
*psst* move the white pawn infront of the queen up one space. then the pawn takes urs then ur pawn takes then his knight takes then ur bishop takes then he tries to move his horse but his sleve catches on his king and knocks it down. WHITE WINS!
Reply
:icondarkphoenix:
darkphoenix Featured By Owner Dec 5, 2004  Hobbyist Digital Artist
Thanks.

Mate by sleevage... Is that a legal move? :D
Reply
:iconspleenage:
Spleenage Featured By Owner Dec 5, 2004   Filmographer
i doubt it but ur CG looks so cool. i love the way the pieces stand on those little balls and how reflective the board is. the only problem is that those little metal balls would scratch the board and it would loose its shineyness after 20 games of people accedentally knocking over their kings. If that was a chess-set in real life, u could sell it for 5k$!
Reply
:iconchucksgal:
chucksgal Featured By Owner Dec 3, 2004  Hobbyist Digital Artist
Wow!! This is incredible work! I wish I had a *real* set like this!!
Reply
Add a Comment:
 
×

:icondarkphoenix: More from darkphoenix




Details

Submitted on
December 3, 2004
Image Size
368 KB
Resolution
1280×1024
Thumb

Stats

Views
1,493 (1 today)
Favourites
6 (who?)
Comments
15
Downloads
168