Advertisement Jump to content
Sign in to follow this  
bezarre

Texturing a Sphere

This topic is 1814 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

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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!