Viewport 2.0 issue openMayaRender GL draws

205 views
Skip to first unread message

Todd Widup

unread,
Aug 28, 2014, 5:07:56 PM8/28/14
to python_in...@googlegroups.com
so I finally started playing with some openMaya api open gl draws and found if you have your display set to viewport 2.0 that it doesn't draw the shape you defined in the plugin.  Is this a known issue with viewport 2.0 and if so, what is the work around.

Right now, I am just playing with the footPrintNode that is included in the dev kit.

thanks
-todd

--
Todd Widup
Creature TD / Technical Artist
to...@toddwidup.com
todd....@gmail.com
www.toddwidup.com

Ravi Jagannadhan

unread,
Aug 28, 2014, 5:13:41 PM8/28/14
to python_in...@googlegroups.com
Viewport 2.0 uses different classes for drawing custom shapes. I think there are some examples noted in the documentation.


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CABBPk37e7bAEAGac1Yk426%3DwvqFB2hndjkbmNtf2HHsor7uAMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

Todd Widup

unread,
Aug 28, 2014, 5:16:14 PM8/28/14
to python_in...@googlegroups.com
ah ok.  will look into it, thanks



For more options, visit https://groups.google.com/d/optout.



--

johnvdz

unread,
Aug 28, 2014, 6:22:09 PM8/28/14
to python_in...@googlegroups.com
yeah i think older style viewports use GL 1.1. viewport 2.0 might be 3.0 but could never find anything to do with it online. but just noticed some extra stuff in the linemanip.cpp example for viewport2.0.  but haven't tested it myself.

john

Todd Widup

unread,
Aug 28, 2014, 7:15:29 PM8/28/14
to python_in...@googlegroups.com, python_in...@googlegroups.com
What about examples for the python API?   All the examples I find in it still use the old system 

Sent from my tiny iPad with big fingers

Colas Fiszman

unread,
Aug 29, 2014, 9:38:52 AM8/29/14
to python_in...@googlegroups.com
I don't think you can draw custom shapes in viewport 2.0 with python


Todd Widup

unread,
Aug 29, 2014, 12:23:18 PM8/29/14
to python_in...@googlegroups.com
if thats hte case...nice "feature" to leave out on autodesk's part




For more options, visit https://groups.google.com/d/optout.

Chad Vernon

unread,
Aug 29, 2014, 4:34:53 PM8/29/14
to python_in...@googlegroups.com
You have to use the draw override classes.  MPxDrawOverride, etc
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.



--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.



--
Todd Widup
Creature TD / Technical Artist
to...@toddwidup.com
todd....@gmail.com
www.toddwidup.com
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages