Skip to main content
GameDev.net gamedev.net
🔒 Locked

linking 2 spheres

Started by zahidayar Jun 13, 2006 at 2:47 PM 1 replies 600+ views
Original Post
zahidayar
zahidayar
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
Allahumma Salli Ala Muhammad----------------------------------------------------------By Time! Verily mankind is in loss! Except the ones who have Iman, and do righteous deeds, and advise one another towards truth, and advise one another towards patience. Quran 103:1-3. ----------------------------------------------------------Muhammed Zahid AyarSoftware Engineerzahid@ayar.org1-518-466-5631www.ayar.org----------------------------------------------------------Organize your informat
jollyjeffers
jollyjeffers
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

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
zahidayar
zahidayar
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?

Allahumma Salli Ala Muhammad----------------------------------------------------------By Time! Verily mankind is in loss! Except the ones who have Iman, and do righteous deeds, and advise one another towards truth, and advise one another towards patience. Quran 103:1-3. ----------------------------------------------------------Muhammed Zahid AyarSoftware Engineerzahid@ayar.org1-518-466-5631www.ayar.org----------------------------------------------------------Organize your informat

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.