Problem rendering point sprite

Started by
1 comment, last by Raab314159 17 years, 10 months ago
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();
Advertisement
Do you have the debug runtimes installed with the debug output set to maximum? Any debug output?
Thanks, I simply forgot to light the point sprite. This thread can be closed.

This topic is closed to new replies.

Advertisement