Sign in to follow this  

linking 2 spheres

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello, i have 2 spheres in my directx application that i want to visually relate somehow. any advice on how i should do it? i also want the link to be dynamic so that if i move one of the spheres, the link should still be linked to the sphere. thanks for your time, Zahid

Share this post


Link to post
Share on other sites
Quote:
Original post by zahidayar
i have 2 spheres in my directx application that i want to visually relate somehow. any advice on how i should do it?
There are lots of different possibilities - depends what you mean by "visually relate". It could be as simple as sharing the same colour, or more complex transformation/animation properties.

Quote:
Original post by zahidayar
i also want the link to be dynamic so that if i move one of the spheres, the link should still be linked to the sphere.
So, you want the linked sphere to move the same direction/distance as the original sphere? That'd just be a simple case of using the same matrix transformations with a different starting point/origin. You might want to read-up on your matrix mathematics for further details on this - its more a maths thing than anything specific to the API.

hth
Jack

Share this post


Link to post
Share on other sites
thanks for the reply Jack,

what i mean by visually relate is ...

you know how in a graph, there are nodes and edges. well in my application, i have spheres which can be like the nodes and now i need lines to connect those spheres.

do you know how i can do that?

Share this post


Link to post
Share on other sites

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

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this