POV-Ray : Newsgroups : povray.advanced-users : advanced question.... Server Time
26 Nov 2024 06:58:14 EST (-0500)
  advanced question.... (Message 1 to 10 of 18)  
Goto Latest 10 Messages Next 8 Messages >>>
From: Paul Daniel Jones
Subject: advanced question....
Date: 27 Oct 2000 08:22:57
Message: <39F973F2.E763D3F3@psu.edu>
Ok, this is a question and a suggestion.

Is it possible, or would it not be very cool, if you could take a
primative and apply a normal modifier and have the parser perturb the
surface for you? Sort of a built in isosurface. I think it would be hard
to do and 'to expernsive.... but would be cool anyway.

With isosurfaces, what is the relationship between the bounding sphere
size and location and the resultant isosurface. I am haveing a deuce of
a time getting them to work.... ;-(


-p

--
-------------------------------------------#
Paul Daniel Jones
120 Chandlee Laboratory
Penn State University
814-865-2090
pdj### [at] psuedu

http://research.chem.psu.edu/glassgrp/paul
--------------------------------------------#


Post a reply to this message

From: Margus Ramst
Subject: Re: advanced question....
Date: 27 Oct 2000 10:00:46
Message: <39F97BD7.998AF504@peak.edu.ee>
Paul Daniel Jones wrote:
> 
> Is it possible, or would it not be very cool, if you could take a
> primative and apply a normal modifier and have the parser perturb the
> surface for you? Sort of a built in isosurface. I think it would be hard
> to do and 'to expernsive.... but would be cool anyway.
>

No, not as such. Regular primitives and isosurfaces use different methods for
finding the intersection. AFAIK it is not possible to modify the topology of the
former with an arbitrary function.

> With isosurfaces, what is the relationship between the bounding sphere
> size and location and the resultant isosurface. I am haveing a deuce of
> a time getting them to work.... ;-(
> 

If the bounding sphere/box is smaller than the isosurface, the isosurface (or
parts thereof) gets cut off. There's no other relationship. You just have to
make sure the bounding object is small enought, or conversely, the isosurface is
small enough. Remember that the isosurface is formed through points where a
function has a certain 'threshold' value.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

From: ingo
Subject: Re: advanced question....
Date: 27 Oct 2000 11:01:52
Message: <8FDAA0DAAseed7@204.213.191.228>
Paul Daniel Jones wrote:

>Is it possible, or would it not be very cool, if you could take a
>primative and apply a normal modifier and have the parser perturb the
>surface for you? Sort of a built in isosurface. I think it would be hard
>to do and 'to expernsive.... but would be cool anyway.

Maybe, turn your object into an "object pattern" (or proximity patter), 
turn that into a function. Turn your normal modifier into a function. Do 
some math (that I don't know) to make the whole thing usable by the 
Isosurface.
Then make a general macro for it, using "min- and max_extent" on the 
original object to create the contained-by box.
#macro (IsoObj, Normal) ...


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Ken
Subject: Re: advanced question....
Date: 27 Oct 2000 11:09:27
Message: <39F99AD6.8E8094D7@pacbell.net>
Margus Ramst wrote:
> 
> Paul Daniel Jones wrote:
> >
> > Is it possible, or would it not be very cool, if you could take a
> > primative and apply a normal modifier and have the parser perturb the
> > surface for you? Sort of a built in isosurface. I think it would be hard
> > to do and 'to expernsive.... but would be cool anyway.
> >
> 
> No, not as such. Regular primitives and isosurfaces use different methods for
> finding the intersection. AFAIK it is not possible to modify the topology of the
> former with an arbitrary function.

It could be done if true displacement mapping were added to the program.
Not impossible but difficult to code and yes it is expensive processor
wise.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Warp
Subject: Re: advanced question....
Date: 27 Oct 2000 11:14:47
Message: <39f99be6@news.povray.org>
Paul Daniel Jones <pdj### [at] psuedu> wrote:
: a primative

  I have seen this word many times in this news server.
  What is it? I can't find it in the dictionary. Is it some kind of dialect?

  And answering your question: This has been discussed for years. It's far
from easy.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Christoph Hormann
Subject: Re: advanced question....
Date: 27 Oct 2000 11:18:58
Message: <39F99CDF.4AA362A4@schunter.etc.tu-bs.de>
ingo wrote:
> 
> Maybe, turn your object into an "object pattern" (or proximity patter),
> turn that into a function. Turn your normal modifier into a function. Do
> some math (that I don't know) to make the whole thing usable by the
> Isosurface.
> Then make a general macro for it, using "min- and max_extent" on the
> original object to create the contained-by box.
> #macro (IsoObj, Normal) ...
> 
> Ingo
> 

Using object pattern in an isosurface function is not such a good idea, because
it has a abrupt change at the object's surface the isosurface code does not like
at all.  You could use 'proximity', but it would be *really* slow.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: ingo
Subject: Re: advanced question....
Date: 27 Oct 2000 11:41:53
Message: <8FDABE12Cseed7@204.213.191.228>
Christoph Hormann wrote:

>Using object pattern in an isosurface function is not such a good idea,
>because it has a abrupt change at the object's surface the isosurface
>code does not like at all.  You could use 'proximity', but it would be
>*really* slow. 

If you add or multiply (or whatever the best method is) the 'object 
pattern' function and the 'normal' function, would the changes still be 
abrupt?

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Ron Parker
Subject: Re: advanced question....
Date: 27 Oct 2000 11:59:10
Message: <slrn8vj9ih.rd0.ron.parker@fwi.com>
On 27 Oct 2000 11:14:47 -0400, Warp wrote:
>Paul Daniel Jones <pdj### [at] psuedu> wrote:
>: a primative
>
>  I have seen this word many times in this news server.
>  What is it? I can't find it in the dictionary. Is it some kind of dialect?

Try looking under "primitive."  Unless this was just a spelling flame, in
which case try looking under a rock.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Christoph Hormann
Subject: Re: advanced question....
Date: 27 Oct 2000 12:15:50
Message: <39F9AA35.89914AD0@schunter.etc.tu-bs.de>
ingo wrote:
> 
> If you add or multiply (or whatever the best method is) the 'object
> pattern' function and the 'normal' function, would the changes still be
> abrupt?
> 

Sure it would, just at the surface (and not across some area around it), the
value changes from 0 to 1 leading to an infinite gradient. 
adding/multiplying/etc. does not help.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Rune
Subject: Re: advanced question....
Date: 27 Oct 2000 16:22:52
Message: <39f9e41c@news.povray.org>
"Paul Daniel Jones" wrote:
> Is it possible, or would it not be very cool, if you could take
> a primative and apply a normal modifier and have the parser
> perturb the surface for you? Sort of a built in isosurface.
> I think it would be hard to do and 'to expernsive....
> but would be cool anyway.

I started a similar discussion in povray.general a while ago and the
conclusion seemed to be that it's not possible. :(

Greetings,

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated October 9)
/ Also visit http://www.povrayusers.org


Post a reply to this message

Goto Latest 10 Messages Next 8 Messages >>>

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