Drawing polylines

View previous topic View next topic Go down

Drawing polylines

Post  phil on Fri Apr 10, 2009 11:22 am

I need to dynamically draw a polyline at runtime ... anyone know how to do this?

phil

Posts : 7
Join date : 2009-04-10

View user profile

Back to top Go down

Re: Drawing polylines

Post  sio2interactive on Fri Apr 10, 2009 4:13 pm

Can you please be more specific...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

polyline

Post  phil on Fri Apr 10, 2009 4:21 pm

Actually it's a very simple question ... is there any way to draw a polyline at runtime? If I could successfully export a polyline from blender that would be ok too.

I want to end up generating glDrawArray(GL_POINTS)... or glDrawArray(GL_LINE_STRIP)...

I guess I could do it manually in templateRender after sio2 has finished, but that seems weird...

phil

Posts : 7
Join date : 2009-04-10

View user profile

Back to top Go down

Re: Drawing polylines

Post  sio2interactive on Fri Apr 10, 2009 4:25 pm

What you can do is export from blender and easily override the sio2ObjectRender method and create your own... checkout the drawing code in sio2_vertexgroup.cc

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Drawing polylines

Post  phil on Fri Apr 10, 2009 4:37 pm

ok - so there's no way to draw a polyline in blender (none that I saw) much less export it ...

I'm comfortable overriding the objectRender as you mentioned. Just didn't want to do that if I was missing something obvious Smile

Thank you!

-Phil

phil

Posts : 7
Join date : 2009-04-10

View user profile

Back to top Go down

Re: Drawing polylines

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum