POV-Ray : Newsgroups : povray.general : Help with thin object Server Time
5 Nov 2024 01:21:11 EST (-0500)
  Help with thin object (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Jettero Heller
Subject: Help with thin object
Date: 14 Aug 2003 10:30:30
Message: <slrnbjn768.msb.povfan@corky.voltar-confed.org>
I'm making yet another go board.  Wonderful game.  

I'm having some trouble rendering thin rectangles.  I can
completely see why povray fails to render some of the lines in
the from-the-side views.

But in this case, I'd like it to really really draw the lines no
matter what.  I experimented with making the ink artificially
tall, but it looked obviously wrong in the close-ups.

Jitter didn't really work how I'd hoped and no amount of
anti-aliasing recursion seemed to help.

I've posted the images here:

    http://voltar-confed.org/tmp/goban2.snaps


Here's how I'm drawing the ink:

#declare inkclr = texture {
    finish { phong 0 crand 0 specular 0 reflection 0 ambient 1 } 
    pigment { color rgb <0, 0, 0.005> }
}

#declare inkshp = object {
    union {
        #declare counter=0;
        #while (counter < hatches) 
            #declare a=(9.7-hatchwt)-(widthofhatch*counter);
            #declare b=9.7-(widthofhatch*counter);

            box { <a, inklow, 9.7>, <b, inktop, 0.3> }
            box { <9.7, inklow, a>, <0.3, inktop, b> }

            #declare counter=counter+1;
        #end
        cylinder { posc( 4,  4, inklow) posc( 4,  4, inktop), hatchwt*2.2 }
        cylinder { posc(16, 16, inklow) posc(16, 16, inktop), hatchwt*2.2 }
        cylinder { posc( 4, 16, inklow) posc( 4, 16, inktop), hatchwt*2.2 }
        cylinder { posc(16,  4, inklow) posc(16,  4, inktop), hatchwt*2.2 }
        cylinder { posc(10, 10, inklow) posc(10, 10, inktop), hatchwt*2.2 }
    }
}


-- 
If riding in an airplane is flying, then riding in a boat is swimming.
39 jumps, 8.0 minutes of freefall, 14.5 ff vertical miles.


Post a reply to this message

From: Nico
Subject: Re: Help with thin object
Date: 14 Aug 2003 10:56:40
Message: <3F3BA327.6050800@loria.fr>
Hi,

I've made some gobans with povray and what I did for the grid was to 
used cylinder for lines and differenced them with the board (since grid 
for a real goban is made using a japanese sword, there exist some 
depression between plain board and grid).
I can post the picture if you want.

Nicolas


Jettero Heller wrote:
> I'm making yet another go board.  Wonderful game.  
> 
> I'm having some trouble rendering thin rectangles.  I can
> completely see why povray fails to render some of the lines in
> the from-the-side views.
> 
> But in this case, I'd like it to really really draw the lines no
> matter what.  I experimented with making the ink artificially
> tall, but it looked obviously wrong in the close-ups.
> 
> Jitter didn't really work how I'd hoped and no amount of
> anti-aliasing recursion seemed to help.
> 
> I've posted the images here:
> 
>     http://voltar-confed.org/tmp/goban2.snaps
> 
> 
> Here's how I'm drawing the ink:
> 
> #declare inkclr = texture {
>     finish { phong 0 crand 0 specular 0 reflection 0 ambient 1 } 
>     pigment { color rgb <0, 0, 0.005> }
> }
> 
> #declare inkshp = object {
>     union {
>         #declare counter=0;
>         #while (counter < hatches) 
>             #declare a=(9.7-hatchwt)-(widthofhatch*counter);
>             #declare b=9.7-(widthofhatch*counter);
> 
>             box { <a, inklow, 9.7>, <b, inktop, 0.3> }
>             box { <9.7, inklow, a>, <0.3, inktop, b> }
> 
>             #declare counter=counter+1;
>         #end
>         cylinder { posc( 4,  4, inklow) posc( 4,  4, inktop), hatchwt*2.2 }
>         cylinder { posc(16, 16, inklow) posc(16, 16, inktop), hatchwt*2.2 }
>         cylinder { posc( 4, 16, inklow) posc( 4, 16, inktop), hatchwt*2.2 }
>         cylinder { posc(16,  4, inklow) posc(16,  4, inktop), hatchwt*2.2 }
>         cylinder { posc(10, 10, inklow) posc(10, 10, inktop), hatchwt*2.2 }
>     }
> }
> 
>


Post a reply to this message

From: Warp
Subject: Re: Help with thin object
Date: 14 Aug 2003 11:06:14
Message: <3f3ba566@news.povray.org>
You need to tell POV-Ray to antialias every pixel if you want all the
thin lines to be visible. It's slow, but at least it should work.
  A good way to achieve this is to use "+a0.0 +am2" settings for extra-good
quality.

  By the way, there are some errors which you might want to fix if you
want a perfect go board.

  Firstly, the squares are not square. The distance from the middle of
a line to the middle of the next line is exactly 22 mm widthwise and
23.7 mm lenghtwise. The thickness of the lines should be approximately 1 mm.
  The total width of the goban should be 424.4 mm and the total length
should be 454.5 mm.

  (Unlike chess, the dimensions of a go board are well-defined and
standardized. This is because go stones come with a standard size.)

  The diameter of the stones should be approximately 22.5 mm. This is 0.5 mm
more than the line spacing widthwise and it's intentional.
  For rendering purposes this can be a bit cumbersome, so I suppose it's
not such a big deal if your stones are 22 mm.

  Secondly, your board lacks four hoshi-markers.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Jettero Heller
Subject: Re: Help with thin object
Date: 14 Aug 2003 12:12:48
Message: <slrnbjnd62.ntm.povfan@corky.voltar-confed.org>
>   A good way to achieve this is to use "+a0.0 +am2" settings for extra-good

Actually the images I posted in my temp dir are +a0.1 +am2 ... Do
you think the 0.0 will make a big enough difference?  (trying it
now).


OMG, that was it.  I had previously determined that anything
lower than 0.1 was just too darn low.

>   Firstly, the squares are not square. 
> standardized. This is because go stones ...

Yes... I didn't get that far cuz I was discouraged by the problem
above. :)  I will most definitely adjust for this later.  I'm
trying to get this thing as realistic as possible.  I'm an 17kyu
now.  

But for my first goban, I was a 38kyu and it shows:

http://www.voltar.org/povray/


But I've learned a LOT since then -- about gobans and about the
game.

> Secondly, your board lacks four hoshi-markers.

No, the stars are there... Tengen too, or am I crazy?

Anyway, thanks so much for your help.  That AA thing has been
bugging me for days!




-- 
If riding in an airplane is flying, then riding in a boat is swimming.
39 jumps, 8.0 minutes of freefall, 14.5 ff vertical miles.


Post a reply to this message

From: Warp
Subject: Re: Help with thin object
Date: 14 Aug 2003 12:38:15
Message: <3f3bbaf7@news.povray.org>
Jettero Heller <pov### [at] voltar-confedorg> wrote:
> No, the stars are there... Tengen too, or am I crazy?

  There are 9 hoshi markers in a 19x19 board. You only have 5.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Jettero Heller
Subject: Re: Help with thin object
Date: 14 Aug 2003 12:56:07
Message: <slrnbjnfn9.idt.povfan@corky.voltar-confed.org>
Oops, you are correct sir.  There should be 9... my bad.

Interesting, until you called the stars: hoshi, I thought hoshi
meant 4-4.

4-4 - hoshi
3-4 - komoku
4-5 - takemoku
5-3 - mokuhazushi

Which is true as it pertains to shimari/fuseki.  But on further
reading I discovered that all the star points are called hoshi.
Fascinating.  You learn a little go every day -- if you're so
inclined. :)

Cut kiema at the waist,

Jet

In article <3f3bbaf7@news.povray.org>, Warp wrote:
> Jettero Heller <pov### [at] voltar-confedorg> wrote:
>> No, the stars are there... Tengen too, or am I crazy?
> 
>   There are 9 hoshi markers in a 19x19 board. You only have 5.
> 


-- 
If riding in an airplane is flying, then riding in a boat is swimming.
39 jumps, 8.0 minutes of freefall, 14.5 ff vertical miles.


Post a reply to this message

From: Warp
Subject: Re: Help with thin object
Date: 14 Aug 2003 17:33:09
Message: <3f3c0015@news.povray.org>
Jettero Heller <pov### [at] voltar-confedorg> wrote:
> But on further
> reading I discovered that all the star points are called hoshi.

  For more info (in fact, about everything related to go), see
http://senseis.xmp.net/?Hoshi

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Jettero Heller
Subject: Re: Help with thin object
Date: 15 Aug 2003 09:21:24
Message: <slrnbjpngk.b7h.povfan@corky.voltar-confed.org>
Yes, I love that site.

http://senseis.xmp.net/?jettero
http://senseis.xmp.net/?k5gs

Actually, I tried to post more info about the cool goban on 
the front page, but it was removed by other site editors.

I'm under the impression that you made that goban.  Is that actually correct?

In article <3f3c0015@news.povray.org>, Warp wrote:
> Jettero Heller <pov### [at] voltar-confedorg> wrote:
>> But on further
>> reading I discovered that all the star points are called hoshi.
> 
>   For more info (in fact, about everything related to go), see
> http://senseis.xmp.net/?Hoshi
> 


-- 
If riding in an airplane is flying, then riding in a boat is swimming.
39 jumps, 8.0 minutes of freefall, 14.5 ff vertical miles.


Post a reply to this message

From: Warp
Subject: Re: Help with thin object
Date: 15 Aug 2003 09:43:59
Message: <3f3ce39f@news.povray.org>
Jettero Heller <pov### [at] voltar-confedorg> wrote:
> I'm under the impression that you made that goban.  Is that actually correct?

  Yes. The original is here:

http://iki.fi/warp/pics/goban.jpg

  I was quite surprised when the admin of the site asked me if he could
use that picture in question in the front page.

  (By the way, if you are wondering, the picture is the final position
of one of my own kgs games. A famous pro game could perhaps have been
better for sensei's front page, but I didn't know that it would be used
for that purpose when I made the image... :) )

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Jettero Heller
Subject: Re: Help with thin object
Date: 15 Aug 2003 10:14:49
Message: <slrnbjpqkq.qt1.povfan@corky.voltar-confed.org>
OK, as long as it's on topic sorta.  I noticed that you positioned 
the stones in the lids by hand.  Do you know of a way to position 
objects automatically... Um ... as if they had fallen there?

I've been trying to reason out a way to do that, but I think it's 
impossible.  I doubt I could calculate the edge of one of my 
stones... oddly shaped as they are.

Does povray or it's plugins have a way of doing anything like 
gravity and/or edge detection?

In article <3f3ce39f@news.povray.org>, Warp wrote:
>   Yes. The original is here:
> http://iki.fi/warp/pics/goban.jpg


-- 
If riding in an airplane is flying, then riding in a boat is swimming.
39 jumps, 8.0 minutes of freefall, 14.5 ff vertical miles.


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.