POV-Ray : Newsgroups : povray.beta-test : CSG difference with text Server Time
30 Jul 2024 10:25:04 EDT (-0400)
  CSG difference with text (Message 7 to 16 of 16)  
<<< Previous 6 Messages Goto Initial 10 Messages
From: Felix Wiemann
Subject: Re: CSG difference with text
Date: 31 Dec 2001 08:11:59
Message: <3c30641f@news.povray.org>
> > And where the letters overlap, there are many "noisy
> > pixels".
> Coincident surfaces, maybe?
Yes, I think so, too, but a difference with two overlapping boxes *with
coincident surfaces* instead of the text creates in the overlapping
area only black.


Post a reply to this message

From: Mike Williams
Subject: Re: CSG difference with text
Date: 31 Dec 2001 15:36:48
Message: <NXokKHAYwMM8EwpN@econym.demon.co.uk>
Wasn't it Felix Wiemann who wrote:
>This creates a text engraved into a plane. (Please note that a plane is
>a solid object.) "Signet Roundhand" is a handwriting-like font, so the
>letters are big and overlap each other.
>But the left part of the letter "P" is cut of. It seems to be a
>bounding problem. And where the letters overlap, there are many "noisy
>pixels". They were not patterned when I used the perspective camera
>instead of the orthographic one.
>It occures with the VC++ compile, too.

There are two different things going on here

(1) The top left corner of the "P" is cut off.

This is confirmed with other fonts, and appears to be caused by the text
being rotated by about <0.001,0.001,0>. In the first example scene, this
tiny rotation is enough to cause one corner to submerge below the plane
that's only 0.0001 pov-units away. In the second example scene the
effect of the rotation is amplified by the 100000 fold scaling in the z
direction. POV 3.1 exhibits the same effect.

(2) Patterning where the letters overlap.

I assume that the overlap is deliberate in the Signet Roundhand font,
which I don't have. I don't have any fonts where the letters are
intended to overlap. However, if I make two letters in Times Roman as
two separate text objects and overlap them (with or without
"orthographic") exactly the same sort of patterning occurs. I reckon
this is just ordinary coincident surface artefacts, and not a bug.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Felix Wiemann
Subject: Re: CSG difference with text
Date: 1 Jan 2002 14:16:23
Message: <3c320b07$1@news.povray.org>
"Mike Williams" <mik### [at] nospamplease> schrieb im Newsbeitrag
news:NXo### [at] econymdemoncouk...
> I assume that the overlap is deliberate in the Signet Roundhand font,
> which I don't have. I don't have any fonts where the letters are
> intended to overlap. However, if I make two letters in Times Roman as
> two separate text objects and overlap them (with or without
> "orthographic") exactly the same sort of patterning occurs. I reckon
> this is just ordinary coincident surface artefacts, and not a bug.
I've just used such a font in a clock-scene. There are initials
engraved into the clock. Even I don't understand why coincident
surfaces create such artefacts with a CSG difference, I think it is a
bug, because the text object should be *one* object and not many single
objects.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: CSG difference with text
Date: 1 Jan 2002 14:28:18
Message: <3c320dd2@news.povray.org>
In article <3c320b07$1@news.povray.org> , "Felix Wiemann" 
<Fel### [at] gmxnet> wrote:

> text object should be *one* object and not many single
> objects.

A text object is many single characters.  Of course one could change it to
some extend at the serve penalty of *much* slower rendering.  Expect the
render speed would be lower by a factor of n, where n is the number of
characters in the text object.  I am not sure this is really what you
want...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Rune
Subject: Re: CSG difference with text
Date: 1 Jan 2002 17:49:33
Message: <3c323cfd@news.povray.org>
"Thorsten Froehlich" wrote:
> Of course one could change it to some extend at the
> serve penalty of *much* slower rendering.

I don't think it's worth it. The user can always intersect the text object
with a plane to avoid the problem.

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated Nov 5)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

From: Mike Williams
Subject: Re: CSG difference with text
Date: 2 Feb 2002 03:31:51
Message: <DyP3zCAt$5W8EwL9@econym.demon.co.uk>
Wasn't it Francois Labreque who wrote:
>
>
>Thorsten Froehlich wrote:
>
>> In article <3c304eaf@news.povray.org> , "Felix Wiemann" 
>> <Fel### [at] gmxnet> wrote:
>> 
>> 
>>>But the left part of the letter "P" is cut of. It seems to be a
>>>bounding problem.
>>>
>> 
>> You may want to check if the font comes with correct bounds for its
>> charaters in a font editor.
>
>
>As mentioned in my other post, this happens with other fonts as well.  I 
>dont think it is dues to the bounding of the font itself as the problem 
>is in the Z direction.  Testing with a modified scene shows that the 
>problem is that the text isn't "straight".  See image in p.b-t.b.
>
>#include "colors.inc"
>camera{
>     location < 10, 15, -20 >
>     look_at < 10, 0 0 >
>     }
>plane{
>     y, 0
>     pigment{ White }
>     }
>union{
>     box{
>         < -5, -1, 0 > < 25, 20, 20 >
>         pigment{ Gray50 }
>         }
>     text{
>         ttf "timrom" "POV" 0.1 0
>         scale < 10, 10, 100000 >
>         pigment{ Red }
>         }
>     }
>light_source{
>     < -15, 50, -15 >
>     White
>     }
>
>
>

I see that Thorsten now claims that this is a coincident surfaces
problem. I must say it doesn't look like that to me.

I've checked all the other pov primitives, and nothing else is tilted in
this way.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Warp
Subject: Re: CSG difference with text
Date: 2 Feb 2002 03:46:40
Message: <3c5ba76f@news.povray.org>
To me it just seems to be some accuracy problem. The accuracy problem gets
more visible when scaling with a huge number.

-- 
#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: Thorsten Froehlich
Subject: Re: CSG difference with text
Date: 2 Feb 2002 04:10:42
Message: <3c5bad12$1@news.povray.org>
In article <DyP3zCAt$5W8EwL9@econym.demon.co.uk> , Mike Williams 
<mik### [at] nospamplease>  wrote:

> I see that Thorsten now claims that this is a coincident surfaces
> problem. I must say it doesn't look like that to me.

Given the description of the original bug without having the font, this was
the only possible conclusion.  Essentially these two problems need to be
treated as two distinct problems.  The only one that can be reproduced is the
one using timrom.ttf because if or if there is not a problem with the original
font cannot be determined without having the font.  I can only explain
something I can actually test.

Investigating the given example with the timrom.ttf font revealed that at
least in that case it is.  It has to do with the scale, which, lets say has
'some effects on the ray' that basically make a difference of about 10e-5,
which for the text object is enough to cause problems.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Felix Wiemann
Subject: Re: CSG difference with text
Date: 2 Feb 2002 07:06:02
Message: <3c5bd62a@news.povray.org>
> Investigating the given example with the timrom.ttf font revealed that at
> least in that case it is.  It has to do with the scale, which, lets say
has
> 'some effects on the ray' that basically make a difference of about 10e-5,
> which for the text object is enough to cause problems.

As Rune said, it is possible to avoid the overlapping letters problem by
intersecting the text with a plane, but the tilted text problem appears
still when it's intersected. Even if it is only a coincident surfaces
problem, why do you say that it's not a bug? There is no proper workaround
except less scaling (and that's not a workaround but a restriction IMHO).


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: CSG difference with text
Date: 2 Feb 2002 08:05:03
Message: <3c5be3ff@news.povray.org>
In article <3c5bd62a@news.povray.org> , "Felix Wiemann" 
<Fel### [at] gmxnet> wrote:

> Even if it is only a coincident surfaces
> problem, why do you say that it's not a bug?

The coincident surface problem is not a bug...

> There is no proper workaround
> except less scaling (and that's not a workaround but a restriction IMHO).

Whatever you call it, floating-point number precision is the way it is and
there is nothing anybody can do about it.

BTW, a much better solution to this is to split the text into two/three
sections.  Simply make one/both ends out of a text scaled by 1, and then place
the a extremely scaled version in the middle (so it overlaps a bit) and merge/
union the whole thing together.  It will of course slow down rendering a bit,
but it won't be as much as using a plane and CSG (without manual bounding).

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

<<< Previous 6 Messages Goto Initial 10 Messages

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