Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I would like to implement a 3D sphere to play an animated rotating planet for my game but using GDI+ ONLY. Since my math skills are next to zero, I definitely need to see an example. The problem is that I can't find any on the web.

 

Is this too hard to be done with a texture? What about a an opaque wireframe version divided with vertical and horizontal circular lines?

  • Leaders
Posted

GDI+ lacks the ability to distort images the way you would need to in order to draw textured 3D graphics with perspective. The wire-frame probably wouldn't be too difficult if you know the mathematics involved. You could either precalculate the vertices and rotate them using a matrix or calculate the rotated vertices on the fly. Then it's just a matter of connecting the dots.

 

So how do you calculate the vertices? I don't know. I could sit down and work it out, but it would probably be simpler to find somebody who already knows, and who can give you an optimal solution.

[sIGPIC]e[/sIGPIC]
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...