Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Texturing a Sphere

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 bezarre   Members   

114
Like
0Likes
Like

Posted 28 January 2014 - 08:48 AM

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, 28 January 2014 - 08:49 AM.


#2 Jason Z   Members   

6430
Like
0Likes
Like

Posted 28 January 2014 - 08:58 AM

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.



#3 bezarre   Members   

114
Like
0Likes
Like

Posted 28 January 2014 - 09:07 AM

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






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.