Jump to content
  • Advertisement
Sign in to follow this  
AvengingRage

Quad Strips and Texture Mapping

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

Hi everyone, I have what should be a quick question. I am currently programming a Rubik's Cube game , and my DrawCub() function draws each quad separately. I've had a few complaints about how slowly the game runs when I send it to other people for testing, and I was thinking of speeding it up by using GL_QUAD_STRIPS instead of drawing a bunch of separate quads for each face, since this will reduce the number of calls to GlVertex3f I make. My problem is, I am texture mapping the quads. Since I have to specify texture coordinates for each vertex, can I use quad strips or does it have to be the way I've already done? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Yes, you can use quadstrips. However, I question if you're drawing enough triangles for this to make a difference. If anything, I suspect you'll end up losing performance by using quadstrips due to more glBegin and glEnd calls as you'll need to switch back to triangles or quads in order to completely render a cube.

I suspect your problem lies elsewhere. If you post your code perhaps I could find out if that's the case.

Share this post


Link to post
Share on other sites
You are probably rendering something like 50 polygons which isn't the cause of the low performance.
Ask your users to update their video drivers and ask them what hw they are running.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!