POV-Ray : Newsgroups : povray.general : Sphere with longitudes and latitudes? : Re: Sphere with longitudes and latitudes? Server Time
31 Jul 2024 04:26:28 EDT (-0400)
  Re: Sphere with longitudes and latitudes?  
From: Jan Dvorak
Date: 11 Nov 2007 14:29:15
Message: <4737580b$1@news.povray.org>
Hadmut Danisch napsal(a):
> Hi,
> 
> I'd like to create a sphere with lines for longitudes and latitudes,
> which basically is just a white sphere with thin black lines on horizon
> and parallel to the horizon, and lines from north to south.
> 
> How would I do this?
> 
> I tried to apply a texture with a color map onto the surface of the
> sphere, but the gradient is just a linear vector of x,y,z and not
> a term (e.g. the angle phi cannot be used).
> 
> Another approach would be to mix the sphere with very flat and black
> cylinders which are just a little big bigger than the sphere, but then
> the sphere is not perfect anymore.
> 
> How could I get a sphere with those lines?
> 
> regards
> Hadmut
> 
use UV_mapping or warp{spherical}. Both map the <0,0>,<1,1> square onto 
the sphere. They do the same in the sphere case.
For the grid, you may use the quilted pattern.


Post a reply to this message

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