Jump to content
  • Advertisement
Sign in to follow this  

3D DirectX sphere Model

This topic is 3141 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

Hi, First time use so i apologize if this is in the wrong place. Im doing a Masters in Computer Game Technology and i was wondering if anyone either has, or knows where to get a 3D Model made in Directx? Any help is much appreciated. Cheers

Share this post

Link to post
Share on other sites
Do you want a sphere mesh to use with DirectX? There's a method in the Direct3D9 utility library D3DXCreateSphere that will return a sphere mesh based on some parameters.

Weirdly, I can't seem to find it on an English version of MSDN (guess it must be deprecated or something) but the following is from my (old) offline docs:

From MSDN Offline Docs

Uses a left-handed coordinate system to create a mesh containing a sphere.

HRESULT D3DXCreateSphere(
FLOAT Radius,
UINT Slices,
UINT Stacks,
LPD3DXMESH * ppMesh,
LPD3DXBUFFER * ppAdjacency


[in] Pointer to an IDirect3DDevice9 interface, representing the device associated with the created sphere mesh.

[in] Radius of the sphere. This value should be greater than or equal to 0.0f.

[in] Number of slices about the main axis.

[in] Number of stacks along the main axis.

[out] Address of a pointer to the output shape, an ID3DXMesh interface.

[out] Address of a pointer to an ID3DXBuffer interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. NULL can be specified.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!