445,742 Members | 1,044 Online
Need help? Post your question and get tips & solutions from a community of 445,742 IT Pros & Developers. It's quick & easy.

# Conversion from 3d coords to 2d

 P: n/a Ok, here is the deal. I want to do this.... i have a group of cubes, i want to draw them, and then rotate, etc,etc. i've already tried DirectX 9 but now i want to draw the images direct to a picturebox... i know about some formulas, but i can't find them.... does anybody know how to do this??? Nov 20 '05 #1

 P: n/a You have so many options its amazing. Using direct 3d is your best bet of course because it comes with all the gizmos you need. Otherwise, you will need to create your own (fairly simple) classes. You will need: A matrix class (3x3 or 4x4, prefer 4x4) A vector class (x, y, z or x, y, z, w) Then, after rotating/translation/scaling your cubes, you simply multiply each point by the perspective transform matrix, or more simply, something like x = x / z, y = y / z (scaled up to fit into the window). There are literally thousands of tutorials around the net on how to do this. Perhaps you should google for "3d matrix math", "perspective transform", "vector matrix multiply". Good luck. "Antonio Orozco" wrote in message news:c7*************************@posting.google.co m... Ok, here is the deal. I want to do this.... i have a group of cubes, i want to draw them, and then rotate, etc,etc. i've already tried DirectX 9 but now i want to draw the images direct to a picturebox... i know about some formulas, but i can't find them.... does anybody know how to do this??? Nov 20 '05 #2

### This discussion thread is closed

Replies have been disabled for this discussion.