Exporting a model to use GL_TRIANGLE_STRIPS

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

s_cloudx
Posts: 2
Joined: Sat Oct 26, 2002 1:50 pm

Exporting a model to use GL_TRIANGLE_STRIPS

Postby s_cloudx » Mon Oct 28, 2002 3:59 am

I'm having trouble exporting my cube. The cube has four points with each face. My opengl program uses GL_TRIANGLE_STRIPS. I want to export the cube to use triangles . Does anyone have a python script to export quads to triangle strips?

sgefant
Posts: 49
Joined: Wed Oct 16, 2002 1:10 am

Postby sgefant » Mon Oct 28, 2002 4:17 am

Select all vertices in editmode and press ctrl+t to triangulate your object. No need for python.

hope this helps,
sgefant

PS: I think the forums at elysiun.com are a better place for questions like this

s_cloudx
Posts: 2
Joined: Sat Oct 26, 2002 1:50 pm

THANK YOU!!!

Postby s_cloudx » Mon Oct 28, 2002 6:31 am

THANK YOU! I finally got it running :lol: :lol: :lol: You've been a great help!

sgefant wrote:PS: I think the forums at elysiun.com are a better place for questions like this


I'll check the forums there later tonight. Thanks for the recommendation.

Just an afterthought, does blender give the vertices in a counter-clockwise or clockwise order?


Return to “Python”

Who is online

Users browsing this forum: No registered users and 3 guests