POV-Ray : Newsgroups : povray.binaries.images : Spheres (81KBU) Server Time
19 Aug 2024 06:16:35 EDT (-0400)
  Spheres (81KBU) (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Ben Lauritzen
Subject: Spheres (81KBU)
Date: 16 Jan 2001 11:16:53
Message: <3a6473f5@news.povray.org>
I added a facing gradient with rgb 0 on the back side, now it works.


Post a reply to this message


Attachments:
Download 'spheres.jpg' (38 KB) Download 'spheres2.jpg' (41 KB)

Preview of image 'spheres.jpg'
spheres.jpg

Preview of image 'spheres2.jpg'
spheres2.jpg


 

From: Ryan Constantine
Subject: Re: Spheres (81KBU)
Date: 16 Jan 2001 17:27:15
Message: <3A64CAC3.894329D5@ucdavis.edu>
i don't recall anyone trying that before.  clever.  will it work on
objects with irregular shapes?  is there a way to orient the gradient so
it is always away from the camera without rotating the actual object? 
that way you could use this in animations where the objects stay still
and the camera moves around.  you could even animate the balls, floating
above the typical black and white checkered plane with a camera rotating
around them and oscillating up and down so the background color of the
balls changes from white to black and back again.


Post a reply to this message

From: Ben Lauritzen
Subject: Re: Spheres (81KBU)
Date: 16 Jan 2001 17:32:09
Message: <3a64cbe9@news.povray.org>
"Ryan Constantine" <rcc### [at] ucdavisedu> wrote in message
news:3A64CAC3.894329D5@ucdavis.edu...
> i don't recall anyone trying that before.  clever.  will it work on
> objects with irregular shapes?

Not really, but then if it's csg you could just apply the gradient to each
object I guess.

> is there a way to orient the gradient so it is always away from the camera
> without rotating the actual object?

That's what I did, just declare camera_position and object_position vectors,
and it faces the gradient towards the camera.

> that way you could use this in animations where the objects stay still
> and the camera moves around.  you could even animate the balls, floating
> above the typical black and white checkered plane with a camera rotating
> around them and oscillating up and down so the background color of the
> balls changes from white to black and back again.

Huh?


Post a reply to this message

From: David Fontaine
Subject: Re: Spheres (81KBU)
Date: 17 Jan 2001 19:06:48
Message: <3A66325B.C11A422E@faricy.net>
Ben Lauritzen wrote:

> I added a facing gradient with rgb 0 on the back side, now it works.

Personally I think the absorption media would be a better solution, but
I know media can be a pain to tweak. The thing is that, at least around
the edges, you'd expect some degree of translucency.

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Ben Lauritzen
Subject: Re: Spheres (81KBU)
Date: 18 Jan 2001 16:36:07
Message: <3a6761c7$1@news.povray.org>
Actually, I added absorption, looked real nice, until I changed the
background to black again.  With the facing gradient, it will look the same
either way, even if it has an irregular background.


Post a reply to this message

From: David Fontaine
Subject: Re: Spheres (81KBU)
Date: 19 Jan 2001 18:36:02
Message: <3A68CE1D.54445B4C@faricy.net>
Ben Lauritzen wrote:

> Actually, I added absorption, looked real nice, until I changed the
> background to black again.  With the facing gradient, it will look the same
> either way, even if it has an irregular background.

But really it's not supposed to. I don't mean to nitpick your spheres though.
I think it's a matter of tweaking. Probably more work than it's worth anyway.

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Ben Lauritzen
Subject: Re: Spheres (81KBU)
Date: 19 Jan 2001 18:48:56
Message: <3a68d268@news.povray.org>
> But really it's not supposed to. I don't mean to nitpick your spheres
though.
> I think it's a matter of tweaking. Probably more work than it's worth
anyway.

Yes it is, they're not your spheres.  They look the way I wanted them to,
and that's what matters right?


Post a reply to this message

From: David Fontaine
Subject: Re: Spheres (81KBU)
Date: 19 Jan 2001 18:50:19
Message: <3A68D176.67EA9E77@faricy.net>
Ben Lauritzen wrote:

> > But really it's not supposed to. I don't mean to nitpick your spheres
> though.
> > I think it's a matter of tweaking. Probably more work than it's worth
> anyway.
>
> Yes it is, they're not your spheres.  They look the way I wanted them to,
> and that's what matters right?

Yep. :)

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Chris Huff
Subject: Re: Spheres (81KBU)
Date: 19 Jan 2001 21:04:51
Message: <chrishuff-7BB68E.21055719012001@news.povray.org>
In article <3a6473f5@news.povray.org>, "Ben Lauritzen" 
<loo### [at] yahoocom> wrote:

> I added a facing gradient with rgb 0 on the back side, now it works.

Two problems with this method: you can't see the spheres when behind 
other spheres, and there is a black fringe around the spheres.
If you use MegaPOV, you might be able to fix the "fringe" problem using 
interior_texture...just make the ordinary texture clear, and the 
interior texture opaque black, so you can see into the spheres but not 
out of them. This would also automatically work with any camera angle 
and with light sources, with no extra work. And it would certainly be 
easier than messing with gradient texture maps... It would also work 
with any object, not just spheres.
It doesn't fix the problem that the spheres become opaque, though...but 
maybe that is what you want. (If the spheres are really supposed to be 
transparent, their color *should* be affected by the background...but 
you have an interesting effect here of opaque objects that look 
transparent.)

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Ben Lauritzen
Subject: Re: Spheres (81KBU)
Date: 20 Jan 2001 11:03:23
Message: <3a69b6cb@news.povray.org>
Well that makes it alot easier.  No need for trigonometry after all I guess.
The "fringe" problem was actually because I didn't rotate them exactly
towards the camera, just approximately.  I changed that later, so it doesn't
show up.


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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