SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
Thread Tools
Old 20-02-2011, 06:32 PM   #1
BabyDuck's Avatar
Join Date: Nov 2002
Location: USA
Posts: 1,170
Lightbulb Wireframe on Subd

hi there,

been a while since I have been on here. Have not found a whole lot on wireframe rendering in Maya. So I played around with it and found a nice trick on how to put a wireframe on a poly or subd. This will be done with vray for maya.

Unlike MR or MayaVector, the "wireframe pass" (lets call it that for simplicity) is done before the actual render and not as a post-effect. The scene I am using for this is the simplest there can be - 2 spheres on left hand side poly, on right hand side subd lighted by 2 point lights from front. The first picuture with MR shows the inability to wireframe the subd sphere. To see the difference you have to view the full res version (they are each in HD720).
Click image for larger version

Name:	mr_wire.jpeg
Views:	138
Size:	74.0 KB
ID:	46086
Also note how the wireframe is only one color. Now the exact same render done with Vray:
Click image for larger version

Name:	vray_wire.jpeg
Views:	132
Size:	51.0 KB
ID:	46087
In Vray the wireframe is part of the color value of the default lambert material. This is how I connected them:
Click image for larger version

Name:	hyper.jpg
Views:	158
Size:	19.4 KB
ID:	46088
The first VRayEdgeColor is a 2D texture (VRay Edges) with white as Edges Color color, and blue for Background Color and 1.000 Pixels width. This connects VRayEdgeColor.outColor->blendColors.color1. The second node EdgeOutline is also of the type VRay Edges, but this time white edges and black background with 3.000 pixels width. I connected EdgeOutline.outColorR->blendColors1.blender. Does not really matter which color channel you use here. The other color I left the default 50% gray - this however can be linked to any texture. Then last not least, connect [i]blendColors.output->lambert1.color[/]. Now it is ready to render in Vray in a single pass w/o compositing afterwards. This setup also allows to render the same scene with different renderer w/o having to touch hypershade at all - it appears that VRay Edges defaults to the background color if not using Vray. this will blend out the wireframe completely no matter how the colors are set up in VRayEdgeColor.

Now showing WIP can be done w/ wireframe and still correctly lit up (including the wireframe) in a single render pass even with SubD. All you need is save picture from renderview. Only drawback - NURBS still won't be able to render wireframe directly in Vray. NURBS can be rendered with wireframe, but unfortunately it will use the tesselated triangular mesh.

If this is useful (or not) please let me know

p.s.: oh almost forgot - do experiment with it - with the wireframe calculated pre-render new possibilities open up. e.g. wireframe as bump/displacement, 2 sided shading with different color on the backside of the wireframe ....
BabyDuck is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shaded to wireframe animation jigsy Maya Basics & Newbie Lounge 3 21-01-2011 08:00 AM