FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Drawing polylines

2 posters

Go down

Drawing polylines Empty Drawing polylines

Post  phil 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

Back to top Go down

Drawing polylines Empty Re: Drawing polylines

Post  sio2interactive Fri Apr 10, 2009 4:13 pm

Can you please be more specific...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Drawing polylines Empty polyline

Post  phil 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

Back to top Go down

Drawing polylines Empty Re: Drawing polylines

Post  sio2interactive 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
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Drawing polylines Empty Re: Drawing polylines

Post  phil 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

Back to top Go down

Drawing polylines Empty Re: Drawing polylines

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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