Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Create material like the quad draw

Create material like the quad draw

konstantinos_chtenelisXDG7U
Participant Participant
132 Views
3 Replies
Message 1 of 4

Create material like the quad draw

konstantinos_chtenelisXDG7U
Participant
Participant

Is there a way to create such material for display in the maya viewport?

 

I like how the model is displayed.
-blue

-transparent

-show wireframe

-it hovers over the objects so its always visible(this aspect is what I cannot do)

 

It would be very convenient to work like this but outside of quad draw sometimes.
Hope there would be a way.

Screenshot_9.png
Best regards,
Konstantinos

0 Likes
133 Views
3 Replies
Replies (3)
Message 2 of 4

brentmc
Autodesk
Autodesk

Hi,

Quad Draw is just drawing the mesh on top of everything else without any depth buffering. (and using transparency and some other tricks)
You can see the effect more clearly in the GIF below where I scaled up the live surface so the quad draw mesh is completely within it.
quad_drawing.gif


There is an hidden attribute on the mesh that Quad Draw is using to render the surface this way.
Note that the thick outlines on the mesh are drawn by Quad Draw so you can't replicate that part with the attribute.

setAttr polySurfaceShape1.alwaysDrawOnTop 1

 

Brent McPherson
Principle Engineer
0 Likes
Message 3 of 4

konstantinos_chtenelisXDG7U
Participant
Participant

omg I was trying to find this attribute for so long, how did you find it?

Also is there a way to replicate somehow the wireframe?

This is where I am right now:

1.gif

0 Likes
Message 4 of 4

brentmc
Autodesk
Autodesk

I know about that attribute since I worked on Quad Draw in the past. 😉

As I said before the wireframe drawing is being drawn by the tool. I do not think it can be replicated by using the MPxDrawOverride API class as it does similar tricks with depth to make sure the wireframe appears on top.

There are SDK examples like the footprint one that you can look at if you want to experiment with MPxDrawOverride.

Brent McPherson
Principle Engineer
0 Likes