VBGamer |
|
CreateSphere problem Andy (0 replies, 0 views) (2001-May-24) Hi,
I have been learning Direct3D for VB for a short while. I'm trying to use the D3DX8.CreateSphere method to create a sphere mesh. The problem is that I can create and render the sphere perfectly apart from one thing... I can't apply a texture to the sphere, it just comes out solid white. Any ideas?? Here's some code:
'Init Code***********
Set m_txTexture = D3D.CreateTextureFromFile(D3DDevice, m_strTextureFilename)
Set m_meshSphere = D3D.CreateSphere(m_D3DDevice, 2#, 20, 20, buffer)
'In Render Loop***************
m_D3DDevice.SetTexture 0, m_txTexture
m_meshSphere.DrawSubset 0
Thanks in advance.
Andy |