Results 1 to 25 of 25

Thread: Why does my cube look like this??

Threaded View

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Why does my cube look like this??

    This is the light struct:
    m_Light.Diffuse.r = 1.0f;
    m_Light.Diffuse.g = 1.0f;
    m_Light.Diffuse.b = 1.0f;
    m_Light.Diffuse.a = 1.0f;
    m_Light.Type = D3DLIGHT_POINT;
    m_Light.Position = D3DXVECTOR3( 0.0f, 0.0f, 5.0f );
    m_Light.Attenuation0 = 0.0f;
    m_Light.Attenuation1 = 0.05f;
    m_Light.Attenuation2 = 0.0f;
    m_Light.Range = 10.0f;
    cGraphicLayer::Graphics()->SetLight( 0, &m_Light );

    This is how it looks with a simple 24 vertice cube positions at (0, -2, 10)
    Attached Images Attached Images  
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width