sphere

How to plot a dome in MATLAB w/ different radii?

I need to plot a dome (or half sphere) that have different radii. I was told how to plot the shpere on a previous question: [x,y,z] = sphere; %# Makes a 21-by-21 point sphere x = x(11:end,:); %# Keep top 11 x points y = y(11:end,:); %# Keep top 11 y points z = z(11:end,:); %# Keep top 11 z points r = 3; ...

Rotate sphere based on lat/lng.

Ok so i have an api to a globe that I can only move by setting the x y z axis tilt. (the camera cannot move.) I need to be able to map lat/lng to it. So basically take lat/lng and rotate in x y z and show the point in the center of the screen. The setup can basically be visualized with this picture... http://en.wikipedia.org/wiki/File:...

My OpenGL Cubemap is using 6 copies of the same texture instead of 6 different textures

Hi all, I'm new to opengl and have been able to learn a lot on my own, but i am stuck on this one. I have a room rendered, but I need a sphere that hovers in the center reflecting everything else perfectly. So far, I've been able to cube map to it with pretty good results, but the 6 textures are all the same: namely, the view I have of...

Mapping textures to a sphere OpenGL ES

Hi All, Right i am just getting into OpenGL ES, and if i am honest it is very daunting. Just need a little guidance to point me in the right direction for my current challenge. I have some code that produces a 3D sphere, that has a texture mapped on to it (A Globe). I can get the touch co-ordinates on the sphere, and have a handle o...

Interpolate x, y, z coordinates on a sphere using points from two spin vectors?

I want to plot 3D points in real time that lie upon the surface of a unit sphere (r = 1). There are two spin vectors at work here. One vector rotates around the Y axis, it's X and Z values are calculated using the cos() and sin() of a circle that lies completely on the X/Z plane with all Y values being equal to 0. The other rotates ...

Sphere Mapping Non Spherical Objects

Hi, I am facing a problem more or less similar to the post http://stackoverflow.com/questions/1513383/texturing-error-on-a-sphere The difference is I am trying to sphere map non spherical objects.I will describe my problem in detail. I am writing an application which generates 3d models out of system fonts.I am using the gluTesselato...