Announcement

Collapse
No announcement yet.

PointSprites

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • thelyingspy
    replied
    Hi,

    Yep, I worked it out.

    A combination of...

    GetDevice()->SetRenderState( D3DRS_POINTSCALEENABLE, true );

    ...and...

    // finally, create the device:
    if(FAILED(hRes = m_lpD3D->CreateDevice(
    ordinal_adapter,
    D3DDEVTYPE_HAL,
    m_hwnd,
    //(m_caps.DevCaps & D3DDEVCAPS_HWTRANSFORMANDLIGHT) ? D3DCREATE_MIXED_VERTEXPROCESSING : D3DCREATE_SOFTWARE_VERTEXPROCESSING,
    D3DCREATE_SOFTWARE_VERTEXPROCESSING,
    &m_d3dpp,
    &m_lpDevice ) ) )

    ...did the trick.

    Thanks Everyone!
    TLS

    Leave a comment:


  • thelyingspy
    started a topic PointSprites

    PointSprites

    Hello!

    I'm trying to get point sprites going using the MegaSDK. Unfortunately, whenever I try to render even 1 point sprite, it slows to 1 FPS.

    I have tried the Micorosft SDK PointSprites.exe, and it worked OK.

    I have created my VertexBuffer with D3DUSAGE_POINTS.

    I think it's something to do with Hardware or Software Vertex Processing, I don't want to hack through all the tuff stuff in the SDK to find out though.

    Could someone tell me whats going on at all?

    Thanks,
    TLS
Working...
X