Results 1 to 5 of 5
  1. #1
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598

    Drawing a sphere in D3D?

    Basically, I remember seeing something on UC where someone was drawing a sphere where a grenade launcher's (or whatever it was) rocket was going to hit. So it would predict where it would land and it will draw a circle there.

    Now what I am wondering is how I would draw a sphere (could be just a 2D circle) knowing the coordinates of the center of the circle along with the radius and diameter. I want to use this for my area denial telekill so it has a visual representation on how far the range is for it.

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    You will need some knowledge of D3D to create the sphere.

    pDev->SetStreamSource(...);
    pDev->DrawIndexedPrimitive(...);

    With this , you can use the same 3D geometry coordinates that the game uses.

  3. #3
    D-Vid the DBag's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    146
    Reputation
    10
    Thanks
    13
    My Mood
    Lurking
    Quote Originally Posted by freedompeace View Post
    You will need some knowledge of D3D to create the sphere.

    pDev->SetStreamSource(...);
    pDev->DrawIndexedPrimitive(...);

    With this , you can use the same 3D geometry coordinates that the game uses.
    Hmmm... DIP huh?


  4. #4
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Msdn.

    D3DXCreateSphere()
    Using a mesh

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  5. #5
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    isn't there a function on the crosshair thread?
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012