POV-Ray : Newsgroups : povray.general : NURBS patch? Server Time
5 Nov 2024 03:17:10 EST (-0500)
  NURBS patch? (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Jeff Garzik
Subject: NURBS patch?
Date: 8 Dec 1998 01:53:54
Message: <366CCE44.9BADFD78@pobox.com>
Is the a patch or spline->spline conversion utility that will allow
NURBS surfaces to be rendered with POV?

Thanks,

	Jeff


Post a reply to this message

From: RagWeed
Subject: Re: NURBS patch?
Date: 8 Dec 1998 02:36:14
Message: <366cd6ee.0@news.povray.org>
Jeff Garzik wrote in message <366CCE44.9BADFD78@pobox.com>...
>Is the a patch or spline->spline conversion utility that will allow
>NURBS surfaces to be rendered with POV?
>
>Thanks,
>
> Jeff

As far as I know there aren't any programs that can actually render a nurbs
surface.  I've always thought they had to be converted to a mesh first.
Correct me if I'm wrong though.
I'm going to take a wild guess and say that you use Rhino3D.  If so, you can
only output the scene you've made in the form of a mesh.  POV can't take the
info of a nurbs surface and convert it to a mesh, and I don't think there
are any patches that will let you do this either.  It would be a nice
feature though.
I'm going to take another wild guess and say that if you are using rhino,
the files it outputs are huge, and they take forever to parse.  I can only
suggest that you lower the polygon count when you export them.  Unless you
get up really close to your model, you can't tell if it's lost a few
thousand polygons.
Or if you really wanted all those polygons, save them for the final render.
Set your scene up in POV with a low polygon count model, and then when
you're happy, import the big mesh.


Post a reply to this message

From: Nieminen Mika
Subject: Re: NURBS patch?
Date: 8 Dec 1998 10:53:21
Message: <366d4b71.0@news.povray.org>
RagWeed <mfr### [at] netwalkcomnospam> wrote:
: Or if you really wanted all those polygons, save them for the final render.
: Set your scene up in POV with a low polygon count model, and then when
: you're happy, import the big mesh.

  If the file sizes are a problem, he can try my triangle mesh compressor
and the compressed mesh macro by Colefax at
http://www.geocities.com/SiliconValley/Lakes/1434/pcm.html
  It will not reduce parsing time, but it probably will reduce file sizes
considerably.
  There will be a new version of the compressor and the macro soon. The
compressor is ready, just waiting for Colefax to finish his macro... :)

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/


Post a reply to this message

From: Nathan Kopp
Subject: Re: NURBS patch?
Date: 8 Dec 1998 14:37:18
Message: <366D8035.386C38BD@Kopp.com>
Also, you could check out UVPov or the SuperPatch.  Both include a new format
for the mesh object (named mesh2).  A 3ds-to-pov converter has been developed
by Thomas Baier specifically for this new mesh syntax.  Be aware that you may
run into problems if you convert Rhino to 3DS to POV.  It works with most
things, but sometimes the textures get messed up.

You can find out more about UVPov (and get links to SuperPatch and
3ds-to-pov) at my web page:

http://nathan.kopp.com/patched.htm

-Nathan

Nieminen Mika wrote:
> 
>   If the file sizes are a problem, he can try my triangle mesh compressor
> and the compressed mesh macro by Colefax at
> http://www.geocities.com/SiliconValley/Lakes/1434/pcm.html
>   It will not reduce parsing time, but it probably will reduce file sizes
> considerably.
>   There will be a new version of the compressor and the macro soon. The
> compressor is ready, just waiting for Colefax to finish his macro... :)


Post a reply to this message

From: Jerry Anning
Subject: Re: NURBS patch?
Date: 8 Dec 1998 16:56:50
Message: <366DA0B0.FA23AB01@dhol.com>
RagWeed wrote:

> As far as I know there aren't any programs that can actually render a nurbs
> surface.  I've always thought they had to be converted to a mesh first.
> Correct me if I'm wrong though.

Actually, some programs (e.g. RenderMan, BMRT) work right from the
NURBS.  They do not convert to a mesh.  In any case, a NURBS patch can
be converted to a rational bezier patch by using Bohm's method to add
knots and give the NURBS a 0, 0, 0, 0, 1, 1, 1, 1 knot vector.  See
Foley and vanDam.  The rational Bezier could then be rendered with the
rational Bezier functions of the SuperPatch.  This may not be practical
in some cases, but it can be done.

Jerry Anning
cle### [at] dholcom


Post a reply to this message

From: Jeff Garzik
Subject: Re: NURBS patch?
Date: 8 Dec 1998 20:35:17
Message: <366DD537.7460B105@pobox.com>
Jerry Anning wrote:
> RagWeed wrote:
> > As far as I know there aren't any programs that can actually render a nurbs
> > surface.  I've always thought they had to be converted to a mesh first.
> > Correct me if I'm wrong though.

> Actually, some programs (e.g. RenderMan, BMRT) work right from the
> NURBS.  They do not convert to a mesh.  In any case, a NURBS patch can
> be converted to a rational bezier patch by using Bohm's method to add
> knots and give the NURBS a 0, 0, 0, 0, 1, 1, 1, 1 knot vector.  See
> Foley and vanDam.  The rational Bezier could then be rendered with the
> rational Bezier functions of the SuperPatch.  This may not be practical
> in some cases, but it can be done.

Thanks much.  I'm glad I kept my copy of Foley.  :)

I am currently converting NURBS to mesh, and am looking for a method
that uses less memory, and hopefully flies on the FPU monster machine
(500Mhz Alpha) in the computer room.

Patch wizards -- are there any fundamental reasons why NURBS would be
difficult to implement in POV?  Perhaps I could take a crack at working
up a nurbs patch.

	Jeff


Post a reply to this message

From: Nathan Kopp
Subject: Re: NURBS patch?
Date: 8 Dec 1998 23:19:07
Message: <366DFA81.E4F23AA0@Kopp.com>
Jeff Garzik wrote:
> 
> Patch wizards -- are there any fundamental reasons why NURBS would be
> difficult to implement in POV?  Perhaps I could take a crack at working
> up a nurbs patch.
> 
>         Jeff

I don't know about working with NURBS directly (that would be really slow,
from my experience), but converting to triangles should be pretty easy.  I
actually had a version of POV that would read in NURBS.  It was really just
a front-end parser to the triangle-mesh object.  POV's triangle mesh object
is actually pretty efficient (both with memory and rendering speed).  But
my code was really slow and may have had some bugs.  I still have it lying
around (I think), so if you want it I'll send it.  Also, didn't somebody
else ask for it once?  I may have forgotten to give it to that person.
oops. ;-)

-Nathan Kopp


Post a reply to this message

From: Nieminen Mika
Subject: Re: NURBS patch?
Date: 9 Dec 1998 05:16:59
Message: <366e4e1b.0@news.povray.org>
Jeff Garzik <jga### [at] poboxcom> wrote:
: Patch wizards -- are there any fundamental reasons why NURBS would be
: difficult to implement in POV?  Perhaps I could take a crack at working
: up a nurbs patch.

  I have absolutely no idea about the mathematics involved in NURBS
calculation, but I can speculate and say that those renderers which use
real NURBS (bmrt, renderman) are not raytracers while povray is. Maybe
calculating the intersection of a ray and a NURBS is not easy and/or fast?
I don't know...
  (Note: Maybe I'm wrong with bmrt, but AFAIK renderman is not a raytracer)

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/


Post a reply to this message

From: Margus Ramst
Subject: Re: NURBS patch?
Date: 9 Dec 1998 05:37:52
Message: <366E52F3.AD2FCD5@peak.edu.ee>
BMRT is a true raytrace/radiosity renderer, although it also adheres to the
Renderman language standard. I am not sure, but I believe BMRT and Renderman
convert NURBS to triangle meshes internally (after all, POV does this with
bezier patches, too)

Margus

Nieminen Mika wrote:
> 
>   I have absolutely no idea about the mathematics involved in NURBS
> calculation, but I can speculate and say that those renderers which use
> real NURBS (bmrt, renderman) are not raytracers while povray is. Maybe
> calculating the intersection of a ray and a NURBS is not easy and/or fast?
> I don't know...
>   (Note: Maybe I'm wrong with bmrt, but AFAIK renderman is not a raytracer)
> 
> --
> main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
> *_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/


Post a reply to this message

From: Thomas Willhalm
Subject: Re: NURBS patch?
Date: 9 Dec 1998 11:10:52
Message: <qqmn24xthxb.fsf@goldach.fmi.uni-konstanz.de>
Nathan Kopp <Nat### [at] Koppcom> writes:

> Jeff Garzik wrote:
> > 
> > Patch wizards -- are there any fundamental reasons why NURBS would be
> > difficult to implement in POV?  Perhaps I could take a crack at working
> > up a nurbs patch.
> > 
> >         Jeff
> 
> I don't know about working with NURBS directly (that would be really slow,
> from my experience), but converting to triangles should be pretty easy.  I
> actually had a version of POV that would read in NURBS.  It was really just
> a front-end parser to the triangle-mesh object.  POV's triangle mesh object
> is actually pretty efficient (both with memory and rendering speed).  But
> my code was really slow and may have had some bugs.  I still have it lying
> around (I think), so if you want it I'll send it.  Also, didn't somebody
> else ask for it once?  I may have forgotten to give it to that person.
> oops. ;-)

Did you consider to generate the triangles "on the fly" while rendering
takes place? This technique is used for Bezier patches. You can choose
between the two methods by a switch. (But probably, you already know all
this.)

In my opinion an analogous implementation of Bezier patches and NURBS
would be nice (and very useful).

Thomas

-- 
http://www.fmi.uni-konstanz.de/~willhalm


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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