Old 14th October 2002, 16:34   #1
thelyingspy
Junior Member
 
Join Date: May 2002
Posts: 6
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
thelyingspy is offline   Reply With Quote
Old 15th October 2002, 11:14   #2
thelyingspy
Junior Member
 
Join Date: May 2002
Posts: 6
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
thelyingspy is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Visualizations > Other Visualizations > Visualization Mega SDK

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump