Skip to main content
GameDev.net gamedev.net
🔒 Locked

Vertex Array & Triangle Fan

Started by darren_mfuk Mar 2, 2007 at 10:14 AM 0 replies 500+ views
Original Post
darren_mfuk
darren_mfuk
Hey guys, Wondering if someone could guide me in improving a grid tiling problem. I have created a hexagonal grid, of say 10 x 10 tiles (example) and each tile is a triangle_fan (8 points, starting at center) to create the hexagon. Firstly I am doing way to many calls at runtime (per frame). secondly there are alot of redundant vertex, as each hexagon touches 3 others, hence every vertex is rendered 3 time. The obvious solution is a vertex array, and build this before render. as the grid is static and wont change, other than maybe textures. Here's the original thread : Original Post Hope someone does not mind taking a look, I posted in the beginners forum, but guess the only people reading the beginners forum, is beginners. Didn't want to sound stupid, as I have most of the openGL basics down, and I've moved from Delphi to C++, and just needed a little expert guidance. Cheers Here's the original thread : Original Post
----------------------------------------Now just hit that link that says 'Rate This User' [wink]

Topic Locked

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

Sign in to reply to this topic.