POV-Ray : Newsgroups : povray.binaries.images : Ultimate black hole : Ultimate black hole Server Time
16 Apr 2024 01:55:19 EDT (-0400)
  Ultimate black hole  
From: Bill Pragnell
Date: 12 Jul 2019 19:40:01
Message: <web.5d2919d8729ff1951b6c6b3a0@news.povray.org>
Messing with textures for use in spherical structures (because reasons).

Couldn't get the effect I was after with black hole warps, so a function pigment
instead:

#declare Pattern = function {
 pigment {
  agate color_map { [0 rgb 0] [1 rgb 1] }
 }
}
#declare Sucker = function(x,y,z,R) {
 select(
  sqrt(x*x + y*y + z*z) - R,
  Pattern(R*x/sqrt(x*x+y*y+z*z), R*y/sqrt(x*x+y*y+z*z),
R*z/sqrt(x*x+y*y+z*z)).x,
  Pattern(x,y,z).x
 )
}


Post a reply to this message


Attachments:
Download 'suck.jpg' (151 KB)

Preview of image 'suck.jpg'
suck.jpg


 

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