473,574 Members | 3,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[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 2458
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.publi c.win32.program mer.directx.man aged
microsoft.publi c.win32.program mer.directx.gra phics

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2821
by: Jean | last post by:
Hello, I have just read through the MS Access Security FAQ, and had a go at securing my database, but now I am stuck. I successfully set up a new .mdw file, say DEPARTMENT.MDW. With this file, I set up users and groups, and then the permissions to objects in my db. Now, I would like to reverse the situation I am in now, i.e. no matter...
4
4610
by: Tim Bücker | last post by:
Hello. I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner. How is that done in C# the best way? Thanks a lot in advance! Greetings, Tim.
7
17446
by: Randy Vande Hei | last post by:
Does anyone know how to change the the GDI+ coordinate system like you used to be able to do in VB6 with the picturebox.scale method. The picturebox.scale method took an x,y point defining the upper left corner and a second x,y point defining the lower right corner. In VB6 the 0,0 location was the upper left like in GDI+, but I could at...
3
2755
by: Husam | last post by:
Hi EveryBody: by VB.Net How can I amke windows application project start with starting of opreating system and end with ending the opreating system, for exaple like the windows service project when you start with starting windows opreating system and stop with ending of opreating system ? any help will be apprecaited
4
2397
by: Shane | last post by:
I've created a wallpaper changer that I want to start up on system boot. I know that I can put a shortcut for my app in the startup folder. How can I get the install program for my app to add a shortcut for all users. If I do have a shortcut in the startup folder, I can see the current wallpaper before switching to the next wallpaper in...
4
1786
kestrel
by: kestrel | last post by:
i found it once before, but ive lost it again. there was a program or wizard or whatever, that allowed me to change the start-up, shut down sounds, ect. im running XP home can anyone help me? thanks
0
1421
by: avukovi4 | last post by:
I've created rectangular coordinate system and a triangle movie clip and two buttons by which would like to be able to create a reflected image of the triangle movie clip according to x or y axis. I'm a math teacher so I want to create different geometrical functions with objects. For instance, I've created buttons for rotation, translation and...
12
18334
by: Petra Rohmer | last post by:
Hello, I want to ake following 0,0 (900mm,900mm) -------------------------------------- |....................................| |....................................| |....................................|
3
1531
by: Abhiraj Chauhan | last post by:
Hello. I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner. How is that done in VB.net the best way? thanks.
0
7837
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8097
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6504
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5647
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5333
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3770
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3791
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1366
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.