Skip to main content
gamedev.net
🔒 Locked

Problem rendering point sprite

Started by Raab314159 1 reply 650+ views
Original Post
Raab314159
Raab314159
Hi, The following code only displays a black square as a point sprite, without the texture. Any idea why the texture is not displayed? *********************************************************** device.BeginScene(); device.SetTexture(0, TextureLoader.FromFile(device,"bullet.jpg")); device.Material = material; device.VertexFormat = VertexFormats.Position | VertexFormats.PointSize | VertexFormats.Diffuse; device.DrawUserPrimitives(PrimitiveType.PointList, 1, crosshairs); device.EndScene();
Evil Steve
Evil Steve
Do you have the debug runtimes installed with the debug output set to maximum? Any debug output?
Raab314159
Raab314159
Thanks, I simply forgot to light the point sprite. This thread can be closed.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.