POV-Ray : Newsgroups : povray.text.scene-files : 3D Text with Sphere_sweeps Server Time
29 Mar 2024 11:12:55 EDT (-0400)
  3D Text with Sphere_sweeps (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Dave Blandston
Subject: Re: 3D Text with Sphere_sweeps
Date: 20 Jun 2022 21:35:00
Message: <web.62b11f6718b1901c22d125f7607c1b34@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Now the thing is, the objects have to be converted into isosurfaces for all of
> this to work:
>
> #declare _Box = function (X, Y, Z) { max((X*X-1),(Y*Y-1),(Z*Z-1)) }
> #declare _Sphere = function { x*x + y*y + z*z - 1 }
>
> And so you'd need to do a Bill P ObjectAsIso type conversion.  Because you can't
> have the infinite gradient between object and no-object.
>
> So it would work, but it might be rather slow...


Ah-ha! Thanks for the follow-up! I've been trying to figure out how to make it
work since your last post - and not getting anywhere.


Post a reply to this message

From: Bald Eagle
Subject: Re: 3D Text with Sphere_sweeps
Date: 21 Jun 2022 06:15:00
Message: <web.62b199c318b1901c1f9dae3025979125@news.povray.org>
"Dave Blandston" <IsN### [at] protonmailch> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > Now the thing is, the objects have to be converted into isosurfaces for all of
> > this to work:
> >
> > #declare _Box = function (X, Y, Z) { max((X*X-1),(Y*Y-1),(Z*Z-1)) }
> > #declare _Sphere = function { x*x + y*y + z*z - 1 }
> >
> > And so you'd need to do a Bill P ObjectAsIso type conversion.  Because you can't
> > have the infinite gradient between object and no-object.
> >
> > So it would work, but it might be rather slow...
>
>
> Ah-ha! Thanks for the follow-up! I've been trying to figure out how to make it
> work since your last post - and not getting anywhere.

Now, IIRC, Mike Williams has done an impressive amount of work on tubes and
splines and using them in isosurfaces to mimic sphere sweeps.   So If you wanted
to implement the smoothing, then maybe the way to go would be to convert the
code so that you were using proper isosurfaces right out of the gate, rather
than a slow and inefficient conversion from a primitive.


Post a reply to this message

From: jr
Subject: Re: 3D Text with Sphere_sweeps
Date: 21 Jun 2022 15:05:00
Message: <web.62b2153518b1901cd6bf93276cde94f1@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> ...
> Sacrilege indeed.   That's why we'd want to do something like convert the
> javascript that already does this to SDL.

that's an interesting page, some of the other posts I scanned cursorily looked
worth returning to.  thanks.

(sticking my neck out) I think we'd need WFP to become interested, make 'povr'
export/make visible the TTF data it (as pointed out) already has, in the parser;
pass in a text{} and get back metrics, that sort of thing.


regards, jr.


Post a reply to this message

From: Dave Blandston
Subject: Re: 3D Text with Sphere_sweeps
Date: 21 Jun 2022 16:20:00
Message: <web.62b2277318b1901ccf03b124607c1b34@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Now, IIRC, Mike Williams has done an impressive amount of work on tubes and
> splines and using them in isosurfaces to mimic sphere sweeps.   So If you wanted
> to implement the smoothing, then maybe the way to go would be to convert the
> code so that you were using proper isosurfaces right out of the gate, rather
> than a slow and inefficient conversion from a primitive.


OK that's interesting. The conversion did not look like it was going to work out
for this particular use because the documentation said that sharp edges would
produce jagged results. Most of the edges of the letters are rounded since
that's the whole point of the project, but the top of the "u" and bottom of the
"n" do have sharp edges. I'll see if Mike Williams' work can be used. Thank you
sir!


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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