Jump to content
  • Advertisement
Sign in to follow this  
supagu

point sprites

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

does ogl 1.5 support point sprites with uv coords for textures? i found: GL_ARB_point_sprite but there isnt much on how to use it, i only found 2 defines: #define GL_POINT_SPRITE_ARB 0x8861 #define GL_COORD_REPLACE_ARB 0x8862 but no functions i need to define?

Share this post


Link to post
Share on other sites
Advertisement

glPointSize(size*2);
glEnable(GL_POINT_SPRITE_ARB);
glTexEnvf(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE);
glBegin(GL_POINTS);
glVertex3fv(position);
glEnd();
glDisable(GL_POINT_SPRITE_ARB);



Beaware though if you have an ATI card, this extension seems to screw up all the other texture coordinates in the scene.

Share this post


Link to post
Share on other sites
yeah, the problem with the ATI cards is that it turns off perspective correction on the texture mapping apprently, which screaws up textures, the problem is known and apprently will get fixed, but as to when it will accure, well thats anyones guess (Cat4.10 maybe?)

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!