471,570 Members | 1,632 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

[directx] Changing start of x-y-z coordinate system

I'm looking for any sample of code how to change drawing my mesh.
I have one box and i'd like to change point 0,0,0 starting not from one
of the corners, but i'd like to start at bottom of my cube at width/2
point? Is there any way to do that?
Thanks in advance

Jan 22 '06 #1
1 2394
Piotrek Alchemik wrote:
I'm looking for any sample of code how to change drawing my mesh.
I have one box and i'd like to change point 0,0,0 starting not from one
of the corners, but i'd like to start at bottom of my cube at width/2
point? Is there any way to do that?
Thanks in advance

You can use a transformation matrix on the device or change the vertices
of the mesh manually. In the DX SDK, there are a couple of examples
doing this.

BTW, there are a couple of DX newsgroups:

microsoft.public.win32.programmer.directx.managed
microsoft.public.win32.programmer.directx.graphics

HTH,
Andy
--
To email me directly, please remove the *NO*SPAM* parts below:
*NO*SPAM*xmen40@*NO*SPAM*gmx.net
Jan 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tim Bücker | last post: by
4 posts views Thread by Shane | last post: by
12 posts views Thread by Petra Rohmer | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.