Public Group

# 3D Mathematics

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

## Recommended Posts

I am busy learning the mathematics of 3d rotation, i started with the form1.Line function in vb to rotate around the Z-Axis, but the problem is, vb's form only has X and Y axis', i was wondering if someone could tell me how to add a Z-Axis to a VB form which has only X and Y so that i could rotate around the Y and X axis as well thank you

##### Share on other sites
The System.Drawing namespace doesn't support 3D. So if you want to do 3D in Windows Forms, you'll have to roll your own from scratch and project your 3D coordinate space into the Form's. Orthographic projects are very easy - just pick two of the coordinates and map them to the form's x/y. So I reckon tht would be the way to go.

##### Share on other sites
Quote:
 Original post by GiveUsATankI am busy learning the mathematics of 3d rotation, i started with the form1.Line function in vb to rotate around the Z-Axis, but the problem is, vb's form only has X and Y axis', i was wondering if someone could tell me how to add a Z-Axis to a VB form which has only X and Y so that i could rotate around the Y and X axis as wellthank you

Part1
Part2

As the previous post stated, if you want to do 3D you'll have to learn how to projections (covered in part2 above).

##### Share on other sites
You are hurting my brain!I only in 4th Grade!

##### Share on other sites
The only other option, that might be less complex is to let the computer take care of the projections for you by using an API like OpenGL or D3D.

hop over to NeHe for some good OpenGL starters.

1. 1
2. 2
3. 3
4. 4
Rutin
13
5. 5

• 14
• 10
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633692
• Total Posts
3013355
×