• Advertisement
Sign in to follow this  

Texturing a Sphere

This topic is 1456 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys,

 

now i am questioning a really "old" Question. Actually i am using MDX with c#. I know that this is really outdated...

 

What's my target: I want to create a panoramic viewer.

 

Now I created a sphere and set my camera point in the middle of it. But what now? How can I add textures on it?

 

I used:

sphereMesh = Mesh.Sphere(device, 2.0f, 20, 20);
sphereMesh.Dispose();

to create the sphere and with

d3dDevice.Transform.View = Matrix.LookAtLH( new Vector3(0.0f, 0.0f, cameraz_pos), 
                                            new Vector3(0.0f, 0.0f, 0.0f),  
				            new Vector3(0.0f, 1.0f, 0.0f));  

I set my cameraposition. Cameraz_pos ist the Zoom.

 

Can someone give me some tipps? Actually I have set
 

device.RenderState.FillMode = FillMode.WireFrame;

to see the wireframe.

 

Thank you

 

Bezarre

Edited by bezarre

Share this post


Link to post
Share on other sites
Advertisement

I don't know about MDX, but if you mean that you want to view a panoramic image on your sphere, then you might be interested in how sphere mapping works.

Share this post


Link to post
Share on other sites

Hello,

 

thanks for the link.

 

The Problem is that I don't konw how to texture in Managed DirectX (c#).

 

The code on this page doesn't look like c# Code... :-(

 

Bezarre

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement