  | | | Replace sampleInfo | Replace sampleInfo 2003-12-02 - By Duncan Brinsmead
Back I've often thought it would be nice to have a guide in this respect, particularily with shading nodes. Sometimes the shading network is the bottleneck in renders... especially if you have lots of bump mapping with heavy textures( like granite or projective fractals ). I don't know of a list offhand.
One could create such a list by rendering a sphere with high quality settings and a surface shader. Surface shaders do no actual computation.. they simply pass the outColor and outTransparency to the shading group. One could then try adding different textures to the surface shader in addition to replacing the shader with other shaders and compare the render times with the baseline image. The larger the image and the higher the quality settings the more accurate the relative timings would be( or you could render a series of frames.. this might catch any memory loading problems).
A potential feature in this regard would be to put numbers on the shading node redraw representing cpu timings of the icon build. Thus a shaderball with a heavy network would have a large number, and one could look at the numbers on the various textures to see which might be the worst offender. (if this was important to people, they could enter it and vote at www.maya.digication.com )
Duncan
-- --Original Message-- -- From: maya-bounce@(protected) [mailto:maya-bounce@(protected)]On Behalf Of Jeremy Fernsler Sent: Monday, December 01, 2003 5:25 PM To: maya@(protected) Subject: Re: Replace sampleInfo
speaking of this and drifting off topic (sorry!) is there a listing of what nodes are faster and/or slower? Some chart that details these things?
-JF
On Dec 1, 2003, at 8:10 AM, Duncan Brinsmead wrote:
> I surprised it is so slow for you.. are you using getAttr calls inside > an > expression?(this would be slow) > At any rate you could try using the ramp shader. You can set the input > on > the color and incandescence ramps to be facing angle. This basically > is like > mapping facingRatio into the coordU of a ramp texture. The specular > Rolloff > gradient is always mapped to facingRatio and modulates both the > specular > lighting and environment reflections(this can be used to simulate the > Fresnel effect, where low refractive index materials are more > reflective at > grazing angles). Thus you have a great deal of control. Also the ramp > shader > should not be too much slower than a Blinn shader. It should be much > faster > than using ramp textures. In terms of applying textures you can map > any of > the ramp indices( this is not always obvious to people). > > Duncan > > > > -- --Original Message-- -- > From: maya-bounce@(protected) [mailto:maya-bounce@(protected)]On > Behalf Of NICK > Sent: Saturday, November 29, 2003 9:48 AM > To: maya@(protected) > Subject: Replace sampleInfo > > > hi > Who can tell me how can I replace sampleInfo Node ? > Our shader used sampleInfo face ratio ,but it make rendering so > slowly.So I wonder if we can use another mothed to replace sampleInfo > face > ratio. > > -- ---- ---- ---- ---- ---- ---- ---- ---- --- > ����ϷӮ�������MP3��U�� > http://mail.21cn.com/huodong/0310/ > ��HOT�������ţ���INʱ�п�ͼ������21CN�������� > http://news.21cn.com/huahua/ > �㶫ADSL�û�������21CN����������� > http://mail.21cn.com/huodong/0310/ > ��ľ�����ռǡ��������� װ���ֲ������ڶ� > http://news.21cn.com/social/ > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > List-help: <mailto:listar@(protected)?Subject=help> > List-unsubscribe: <http://www.highend3d.com/maya/listserver/> > List-subscribe: <http://www.highend3d.com/maya/listserver/> > List-archive: <http://www.highend3d.com/maya/archive/> > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > List-help: <mailto:listar@(protected)?Subject=help> > List-unsubscribe: <http://www.highend3d.com/maya/listserver/> > List-subscribe: <http://www.highend3d.com/maya/listserver/> > List-archive: <http://www.highend3d.com/maya/archive/> >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-unsubscribe: <http://www.highend3d.com/maya/listserver/> List-subscribe: <http://www.highend3d.com/maya/listserver/> List-archive: <http://www.highend3d.com/maya/archive/>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-unsubscribe: <http://www.highend3d.com/maya/listserver/> List-subscribe: <http://www.highend3d.com/maya/listserver/> List-archive: <http://www.highend3d.com/maya/archive/>
|
|
 |