POV-Ray : Newsgroups : povray.programming : Can someone patch POV so that you can output an isosurface as a wire frame? Server Time
6 Oct 2024 23:21:36 EDT (-0400)
  Can someone patch POV so that you can output an isosurface as a wire frame? (Message 39 to 48 of 78)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: normdoering
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 7 Nov 2002 20:15:04
Message: <web.3dcb0f4e195c50e4a5ab7de50@news.povray.org>
Christopher James Huff wrote:
>In article <web.3dcb0056195c50e4a5ab7de50[at]news.povray.org>,
> "normdoering" <nor### [at] yahoocom> wrote:
>
>> Anyone know where I can find examples of calling these functions?
>
>The documentation? The demo files?
>
>Christopher James Huff <cja### [at] earthlinknet>
>http://home.earthlink.net/~cjameshuff/
>POV-Ray TAG: chr### [at] tagpovrayorg
>http://tag.povray.org/
>

No, I found those. I mean using them in creative ways.
Ways I'm not going to think of for awhile.

normdoering


Post a reply to this message

From: normdoering
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 7 Nov 2002 20:20:03
Message: <web.3dcb1100195c50e4a5ab7de50@news.povray.org>
Slime wrote:
>Honestly man, I think you need to work with POV-Ray a lot longer so that you
>have a real fundamental understanding of how it works before you attempt
>whatever it is you're trying to do. I think your understanding of
>isosurfaces is too limited for us to explain how to do... whatever it is
>you're trying to do.
>
>At the very least, you need a good explanation of how isosurfaces work,
>because your explanation of how you think they work holds no similarity to
>how they actually do.
>
> - Slime
>

No, just working with pov doesn't tell you how it's programmed. I'm not
really that interested in how it's programmed. I'm not talking about
patching this myself.

What I really need now is examples of creative use of the HF_ macros. Maybe
someone out there is using those HF_ macros in shapes.inc in a way similar
to what I have in mind? I don't know. But before I reinvent the wheel I'd
like to find out what's been done already.

normdoering


Post a reply to this message

From: Warp
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 10:04:01
Message: <3dcbd261@news.povray.org>
normdoering <nor### [at] yahoocom> wrote:
> No, just working with pov doesn't tell you how it's programmed. I'm not
> really that interested in how it's programmed. I'm not talking about
> patching this myself.

  "Patching" is a term which means modifying the source code of the program
in order to add a feature (or fix a bug or whatever).

  Since what you want to do is doable with the scene description language,
you don't need to patch anything.

> What I really need now is examples of creative use of the HF_ macros. Maybe
> someone out there is using those HF_ macros in shapes.inc in a way similar
> to what I have in mind? I don't know. But before I reinvent the wheel I'd
> like to find out what's been done already.

  Read my answer to your question in the other group. (Your mistake was
simply that the macro wants a function returning a scalar, while you were
trying to give it a function returning a color; this has a very easy solution
which I mentioned there.)

-- 
#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: Warp
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 10:06:17
Message: <3dcbd2e9@news.povray.org>
normdoering <nor### [at] yahoocom> wrote:
> No, I found those. I mean using them in creative ways.
> Ways I'm not going to think of for awhile.

  You can make your own versions of those macros with more features. But
this requires more or less deep knowledge about the POV-Ray scene description
language, which is can only be achieved with practice and more practice.
It's not something you will learn in 5 minutes.

-- 
#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: Simon Adameit
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 14:53:02
Message: <3dcc161e@news.povray.org>
Christopher James Huff wrote:
> What POV does is calculate the intersection of a ray with the surface. 
> That's all it knows about: "this surface intersects this ray at this 
> distance along the ray". You could get a mishmash of points on the 
> surface that are visible from the camera, but this is not enough 
> information to reliably create a wireframe or mesh. There are algorithms 
> for analyzing these "point clouds", but there is no perfect way of doing 
> it, because some of the information is just lost.
> 

There are ways to directly render a point cloud, without creating a mesh 
or other surface.


Post a reply to this message

From: Christopher James Huff
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 15:45:52
Message: <chrishuff-8587BF.15454108112002@netplex.aussie.org>
In article <3dcc161e@news.povray.org>, Simon Adameit <gom### [at] gmxde> 
wrote:

> There are ways to directly render a point cloud, without creating a mesh 
> or other surface.

I am aware of that, the simplest is to just draw the points. He hasn't 
asked about anything like that, he specifically asked for mesh or 
"wireframe" output, and seems to believe that having points on the 
surface automatically means you have a mesh. Unless you are going to use 
some kind of volumetric rendering, point clouds can not be raytraced 
without first being processed into a mesh or some other object. This 
processing is difficult, and the resulting surface doesn't always match 
the original very closely. Point cloud data won't be of much help for 
any of the things he has asked about, especially the partial data you 
would get from the first intersections.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: normdoering
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 16:40:12
Message: <web.3dcc2eea195c50e455d3e9910@news.povray.org>
Warp wrote:
>normdoering <nor### [at] yahoocom> wrote:
>> No, I found those. I mean using them in creative ways.
>> Ways I'm not going to think of for awhile.
>
>  You can make your own versions of those macros with more features. But
>this requires more or less deep knowledge about the POV-Ray scene description
>language, which is can only be achieved with practice and more practice.
>It's not something you will learn in 5 minutes.

Yea, I know -- but thanks for pointing them out to me, everyone. If I hadn't
asked for the "wireframe" feature I would never have known I could get a
macro to read data from a 2D picture and write a mesh2 file.

This feature is, potentially, actually more powerful than what I asked for.
Problem is I'll have to do a lot of very hard macro writing to get what I
want.

Has anyone worked with this feature and webpublished, written similar
macros? More examples would be a help.

normdoering


Post a reply to this message

From: Simon Adameit
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 16:48:56
Message: <3dcc3148@news.povray.org>
Christopher James Huff wrote:

> Unless you are going to use 
> some kind of volumetric rendering, point clouds can not be raytraced 
> without first being processed into a mesh or some other object.

Do you consider this to be some kind of volumetric rendering?

http://www.graphics.stanford.edu/~henrik/papers/psp/


Post a reply to this message

From: normdoering
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 16:50:06
Message: <web.3dcc30a9195c50e455d3e9910@news.povray.org>
Warp wrote:
>normdoering <nor### [at] yahoocom> wrote:
>> No, just working with pov doesn't tell you how it's programmed. I'm not
>> really that interested in how it's programmed. I'm not talking about
>> patching this myself.
>
>  "Patching" is a term which means modifying the source code of the program
>in order to add a feature (or fix a bug or whatever).
>
>  Since what you want to do is doable with the scene description language,
>you don't need to patch anything.
>
>> What I really need now is examples of creative use of the HF_ macros. Maybe
>> someone out there is using those HF_ macros in shapes.inc in a way similar
>> to what I have in mind? I don't know. But before I reinvent the wheel I'd
>> like to find out what's been done already.
>
>  Read my answer to your question in the other group. (Your mistake was
>simply that the macro wants a function returning a scalar, while you were
>trying to give it a function returning a color; this has a very easy solution
>which I mentioned there.)

Thanks, I haven't found your answer yet, but someone else told me about the
vector versur float and conversion and dot operators (which in the
documentation are only mentioned in the isosurface section as far as I
know).

normdoering


Post a reply to this message

From: Warp
Subject: Re: Can someone patch POV so that you can output an isosurface as a wire fr=
Date: 8 Nov 2002 19:45:17
Message: <3dcc5a9c@news.povray.org>
normdoering <nor### [at] yahoocom> wrote:
> Has anyone worked with this feature and webpublished, written similar
> macros? More examples would be a help.

  Yes, there are some famous macro sets made by people which handle
meshes. For example the surface subdivision suite (by John VanSickle),
which allows automatically making a mesh more detailed than the original,
as well as the POV-Ray compressed mesh handler macros (by Chris Colefax),
which allow you to make a wide variety of things to meshes, such as
deformations, morphing, hair-growing, etc.

  They can be found at these places:

http://enphilistor.users4.50megs.com/sss.htm
http://www.geocities.com/ccolefax/pcm.html

  (Note that due to the fact that (currently) you can't extract information
from a mesh inside POV-Ray, the meshes have to be converted to a specialized
format called PCM, which these macros can handle. The converter can be
found at the second link above.)

-- 
#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

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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