• Advertisement
Sign in to follow this  

Billboarding trees are not visible

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

try setting this
HR(mFX->SetMatrix(mhWVP, &(mTreeWorld*mView*mProj)));

to
HR(mFX->SetMatrix(mhWVP, &(mView*mProj)));//not using tree world its in the vertex data

Share this post


Link to post
Share on other sites
Since you've set the world matrix to the indentity matrix, it seems right the quad shows at the origin of the plane.

The fact that it's all black could indicate there's something wrong with the texture you have set. That's something the debug runtime could give you more insight on.

If you instead of sampling the texture, output some random color, does that get rendered correctly?

float4 AABillBoardPS(float2 tex0 : TEXCOORD0) : COLOR
{
return(float4(1.f, 0.f, 0.f, 1.f));
} Edited by eppo

Share this post


Link to post
Share on other sites
Now I am getting a red square. I still don't know how to enable or use debug runtime though.

Share this post


Link to post
Share on other sites
Ok, I have tried re-enabled billboarding and now I can't see anything. Not even a red square. Something is still wrong. Again, I still don't know how to enable or use debug runtime.

Share this post


Link to post
Share on other sites
It's in windrive:/Program Files/Microsoft DirectX SDK/Utilities/bin/dxcpl.exe -> Direct3D 9 tab -> 'Use Debug Version of Direct3D 9'.

Debug messages are printed in VS' output window.

Share this post


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

  • Advertisement