PC Review


Reply
Thread Tools Rate Thread

[directx] Mesh on mesh

 
 
Piotrek Alchemik
Guest
Posts: n/a
 
      21st Jan 2006
Hello everybody,

i want to create some kind of robot arm, it's need to be very simple,
so i decided to create this from cubes - few of them i want to
transform separetaly from another. I know how to create this cube, how
to transform rotate in different ways - buffers, vertices, meshes. I'd
like to use mesh, it's the simplest way but i don't know how to create
one mesh on the exact position on another. And somehow stick them
together?
I had an idea like this:

mesh1.DrawSubset(0);
dev.Transform.World = Matrix.Translation(5.0f, 18.0f,
4.0f);
mesh2.DrawSubset(0);
dev.Transform.World = Matrix.Translation(5.0f, 10.0f,
4.0f);
mesh3.DrawSubset(0);
dev.Transform.World = Matrix.Translation(5.0f, 6.0f, 4.0f);
mesh4.DrawSubset(0);

(translation is a size of prevoius box)
But it's not working any way i'd like to.
Any ideas? Any sample code, could help me?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesh PLC michael555 Retailers 16 15th Apr 2006 03:17 PM
are mesh that bad? Lcd Retailers 1 5th Apr 2006 06:24 PM
Changing the color of a mesh vertex in Managed DirectX 9.0c DF Microsoft VB .NET 0 26th Aug 2004 04:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:25 PM.