Skocz do zawartości

Maya dodawanie nowych shaderow - problem z bump combiner


Rekomendowane odpowiedzi

Napisano (edytowane)

Witam,

mam problem z dodaniem shaderu, potrzeba jest zmienic plik maya.rayrc dodac linijke. Pliki pokopiowalem, wydaje mi sie tam gdzie trzeba. Dodaje shader do bryly i nie rendzi nic.... Anybody?

 

link "{MAYABASE}/lib/bumpCombiner.{DSO}"

mi "{MAYABASE}/bumpCombiner.mi"

 

link "{MAYABASE}/lib/mix8layer.{DSO}"

mi "{MAYABASE}/include/mix8layer.mi"

 

#*****************************************************************************

# Evaluated at startup time of the plug-in to fill the mental ray registry.

#*****************************************************************************/

 

# mental ray registry entries set here will be applied

# in mental ray for Maya upon plug-in load. They may be used to

 

# adjust mental ray library search path to look for

# shader binaries in my local directory first

# registry "{_MI_REG_LIBRARY}" value "C:/myshader/Release;{MAYABASE}/lib" end registry

 

# define some useful registry variables

# registry "{MAYABASE}" value "/mentalray" end registry

# registry "{SYSTEM}" value "windows" end registry

# registry "{DSO}" value "dll" end registry

 

 

# mental ray registry commands within the _MI_MAYA_STARTUP key

# will be executed upon first rendering in mental ray only.

# registry "{_MI_MAYA_STARTUP}"

# value "mental ray startup upon rendering" # required, don't remove

 

# These commands are invisible to Maya, they may be used to

 

# load auxiliary libraries into mental ray, like image plug-ins.

# link "myimageformat.so"

 

# force some standard shaders into mental ray hidden to Maya

# (not using explicit directory path here when using network rendering)

# link “myshader.{DSO}”

 

# force the declaration of my shaders into mental ray, in case

# it was not loaded with mental ray for Maya Node Factory

# mi "C:/myshader/include/myshader.mi"

 

# echo "mental ray for Maya - custom startup done"

 

# end registry

 

 

# link "{MAYABASE}/lib/bumpCombiner.{DSO}"

# mi "{MAYABASE}/bumpCombiner.mi"

 

# link "{MAYABASE}/lib/mix8layer.{DSO}"

# mi "{MAYABASE}/include/mix8layer.mi"

 

 

Przy renderze wyskakuje. Plik jest wgrany podobnie biblioteka:

 

Warning: (Mayatomr.Custom) : C:/Program Files/Autodesk/Maya2009/mentalray/include/bumpCombiner.mi: couldn't find shader library //

 

Pytanie czy to tu {MAYABASE} powienienem zastapic

 

link "C:\Program Files\Autodesk\Maya2009\mentalray\lib/bumpCombiner.{DSO}"

mi "C:\Program Files\Autodesk\Maya2009\mentalray\bumpCombiner.mi"

 

link "C:\Program Files\Autodesk\Maya2009\mentalray\lib/mix8layer.{DSO}"

mi "C:\Program Files\Autodesk\Maya2009\mentalray\include/mix8layer.mi"

Edytowane przez Sebazx6r
  • Odpowiedzi 2
  • Created
  • Ostatniej odpowiedzi

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Napisano (edytowane)
#*****************************************************************************

# Evaluated at startup time of the plug-in to fill the mental ray registry.

#*****************************************************************************/

 

# mental ray registry entries set here will be applied

# in mental ray for Maya upon plug-in load. They may be used to

 

# adjust mental ray library search path to look for

# shader binaries in my local directory first

# registry "{_MI_REG_LIBRARY}" value "C:/myshader/Release;{MAYABASE}/lib" end registry

 

# define some useful registry variables

# registry "{MAYABASE}" value "/mentalray" end registry

# registry "{SYSTEM}" value "windows" end registry

# registry "{DSO}" value "dll" end registry

 

 

# mental ray registry commands within the _MI_MAYA_STARTUP key

# will be executed upon first rendering in mental ray only.

# registry "{_MI_MAYA_STARTUP}"

# value "mental ray startup upon rendering" # required, don't remove

 

# These commands are invisible to Maya, they may be used to

 

# load auxiliary libraries into mental ray, like image plug-ins.

# link "myimageformat.so"

 

# force some standard shaders into mental ray hidden to Maya

# (not using explicit directory path here when using network rendering)

# link “myshader.{DSO}”

 

# force the declaration of my shaders into mental ray, in case

# it was not loaded with mental ray for Maya Node Factory

# mi "C:/myshader/include/myshader.mi"

 

# echo "mental ray for Maya - custom startup done"

 

# end registry

 

#*****************************************************************************

# Evaluated at startup time of the plug-in to fill the mental ray registry.

#*****************************************************************************/

 

# mental ray registry entries set here will be applied

# in mental ray for Maya upon plug-in load. They may be used to

 

# adjust mental ray library search path to look for

# shader binaries in my local directory first

# registry "{_MI_REG_LIBRARY}" value "C:/myshader/Release;{MAYABASE}/lib" end registry

 

# define some useful registry variables

# registry "{MAYABASE}" value "/mentalray" end registry

# registry "{SYSTEM}" value "windows" end registry

# registry "{DSO}" value "dll" end registry

 

 

# mental ray registry commands within the _MI_MAYA_STARTUP key

# will be executed upon first rendering in mental ray only.

# registry "{_MI_MAYA_STARTUP}"

# value "mental ray startup upon rendering" # required, don't remove

 

# These commands are invisible to Maya, they may be used to

 

# load auxiliary libraries into mental ray, like image plug-ins.

# link "myimageformat.so"

 

# force some standard shaders into mental ray hidden to Maya

# (not using explicit directory path here when using network rendering)

# link “myshader.{DSO}”

 

# force the declaration of my shaders into mental ray, in case

# it was not loaded with mental ray for Maya Node Factory

# mi "C:/myshader/include/myshader.mi"

 

# echo "mental ray for Maya - custom startup done"

 

# end registry

 

 

link "C:/program Files/Autodesk/Maya2009/mentalray/lib/bumpCombiner.{DSO}"

mi "C:/Program Files/Autodesk/Maya2009/mentalray/include/bumpCombiner.mi"

 

link "C:/Program Files/Autodesk/Maya2009/mentalray/lib/mix8layer.{DSO}"

mi "C:/Program Files/Autodesk/Maya2009/mentalray/include/mix8layer.mi"

 

 

 

 

Znowu cos nie tak.

mental ray: got 8 satellite CPUs.

API 0.0 error 301031: call to undeclared function "bumpCombiner"

API 0.0 error 301036: while defining material "bumpCombiner1SG": undefined shader "bumpCombiner1"

 

??

 

Warning: (Mayatomr.Custom) : C:/Program Files/Autodesk/Maya2009/mentalray/include/mix8layer.mi: couldn't find shader library /

 

 

Chyba wina po stronie maya x64 bit ze nie dziala.

 

Wlasnie znalazlem ze nie trzeba nic zmieniac w Maya pow 8.5 w maya.rayrc. Tylko trzeba w Maya.env, ale to jeszcez sprawdze:

 

http://www.djx.com.au/blog/customizing-maya/

 

Wciaz jestem w kropce ;/.

Zrobilem tak jak tutaj. Pokopiowalem pliki do odpowiedniech lokacji:

 

put the AEbumpCombinerTemplate.mel in your docs/maya/6.0/scripts folder

put the render_bumpCombiner.xpm in your docs/maya/6.0/prefs/icons folder

put the bumpCombiner.fti in your "C:\Program Files\Autodesk\Maya2009\maya/icons folder

 

i

 

put the AEbumpCombinerTemplate.mel in your C:\Users\Sebastian\Documents\maya\2009-x64\prefs/scripts folder

put the render_bumpCombiner.xpm in your C:\Users\Sebastian\Documents\maya\2009-x64\prefs/icons folder

put the bumpCombiner.fti in your maya/icons folder

 

Nastepnie uruchomilem plugin kozystajac z info ze strony. I wciaz to samo. Wydaje mi sie ze plugin moze byc 32 bitowy.

http://mayastation.typepad.com/maya-station/2009/04/how-to-install-mental-ray-custom-shaders.html

 

Beny masz moze te shadery w wersji x64?

 

BUMP COMBINER x64 i inne shadery

Znalazlem bo kompilowac nie umiem:

http://www.box.net/shared/i6hd2271qk

 

Zaraz przetestuje.

 

DZiala bump combiner dla x64bit maya

 

Wstepny efekt bump na dielectric material, przez bump combiner.

 

68505401.png

 

cocacolae.png

Edytowane przez Sebazx6r

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się



×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności