POV-Ray : Newsgroups : povray.advanced-users : PLEASE ASSIST: Smooth Blob towards Cylinder : PLEASE ASSIST: Smooth Blob towards Cylinder Server Time
16 May 2024 11:18:37 EDT (-0400)
  PLEASE ASSIST: Smooth Blob towards Cylinder  
From: Sven Littkowski
Date: 25 Mar 2015 12:48:04
Message: <5512e6c4$1@news.povray.org>
Hi,

actually, using blobs is not difficult, still, I have a case where I
self simply don't succeed to find the right values. If you like, try
yourself on it and help me with a solution.

Basically, I have a more or less cylindrical body, and wanted a smooth
transformation into a cylinder across, at its end. My own solution
doesn't look good, after days of trying.

Code:

// the cylinder
union
{
 cylinder // schmaler Außenring
 {
  < -12.5, 0.0, 0.0 > < 12.5, 0.20, 0.0 > 500.0
  pigment { White}
 }
 cylinder // dicker Innenzylinder
 {
  < -62.5, 0.0, 0.0 > < 62.5, 0.0, 0.0 > 450.0
  pigment { White}
 }
 sphere // Verdickung
 {
  < 0.0, 0.0, 0.0 > 475.0
  scale < 0.215, 1.0, 1.0 >
  pigment { White}
 }
 torus // von Vorne: links
 {
  450.0, 50.0
  rotate < 0.0, 0.0, 90.0 >
  pigment { White}
  translate < -12.5, 0.0, 0.0 >
 }
 torus // von Vorne: rechts
 {
  450.0, 50.0
  rotate < 0.0, 0.0, 90.0 >
  pigment { White}
  translate < 12.5, 0.0, 0.0 >
 }
}

// the blob
blob // Querrumpf
{
 threshold 0.75
 cylinder { <    -50.0,  0.0,   50.0 > <     50.0,  -0.0,   50.0 >
2500.0, 0.7 }
 cylinder { <    -50.0,  0.0,   100.0 > <     50.0,  -0.0,   100.0 >
600.0, 0.2 } // Querrumpf
 cylinder { <    -10.0,  0.0, 150.0 > <     10.0,  -0.0, 150.0 >  450.0,
0.2 } // Querrumpf
 cylinder { <    -10.0,  0.0, 200.0 > <     10.0,  -0.0, 200.0 >  400.0,
0.4 } // Querrumpf
 cylinder { <  -100.0,  0.0, 275.0 > <   100.0,  -0.0, 275.0 >  350.0,
1.0 } // Querrumpf
 cylinder { <  -300.0,  0.0, 400.0 > <   300.0,  -0.0, 400.0 >  300.0,
1.5 } // Querrumpf
 cylinder { < -2000.0,  0.0, 500.0 > <  2000.0,  -0.0, 500.0 >  300.0,
1.5 } // Querrumpf
 cylinder { < -2500.0,  0.0, 650.0 > <  2500.0,  -0.0, 650.0 >  300.0,
1.5 } // Querrumpf
 cylinder { <  -700.0,  0.0, 300.0 > <  -700.0,  -0.0, 900.0 >  500.0,
1.0 scale < 4.0, 1.0, 1.0 > } // Seitenauswuchtung
 cylinder { <   700.0,  0.0, 300.0 > <   700.0,  -0.0, 900.0 >  500.0,
1.0 scale < 4.0, 1.0, 1.0 > } // Seitenauswuchtung
 cylinder { <     0.0,  0.1, 1300.0 > <     0.0, -0.1, 1300.0 >  400.0,
1.0 scale < 6.0, 0.9, 0.75 > } // Mittelende
 scale < 0.25, 1.0, 1.0 >
 pigment { Red }
}

Thanks for reading, your time, good intention, and help.   :-)


Post a reply to this message

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