23 de diciembre de 2009

Feliz Navidad y prospero año nuevo // Happy Christmas and prosperous new year



He estado muy ocupado y espero poder publicar en breve, mientras tanto Feliz Navidad y prospero año nuevo a todos!
Un pequeño comentario acerca de mis archivos, son compatibles con max 2010, es la que utilizo regularmente para trabajar.

I've been really busy and i hope i can publish in short time, meanwhile Happy Christmas and prosperous new year to all!
A little comment about my max files, they are compatible with max 2010,  is the one that i use regularly for work.

Juan Gea.

8 de diciembre de 2009

Sneak Peak and How to install Mental Ray shaders

I'm not having time this days so I'll post a video with a sneak peak of what is coming in the next months.
Estos días no estoy teniendo mucho tiempo, así que voy a postear un video con un adelanto de lo que vendrá en los siguientes meses.

Of course if you are waiting the second part of our latest hair tutorial, it will be posted in the first part of the next week.
Por supuesto si estáis esperando la segunda parte de nuestro ultimo tutorial de pelo, la posteare en la primera mitad de la semana que viene.

But today I'll post a little article.
Pero hoy posteare un pequeño articulo.

First of all, here you have the sneak peak video, I hope you enjoy this.
Antes de nada, aquí tenéis el video del adelanto, espero que os guste.



Let's go through the article.
Vamos con el articulo.

Chico commented me in the latest post that he doesn't know how to install the p_HairTK shader, so he doesn't know how to install any mental ray shaders, I'm going to do a little guide because from time to time I'll be using additional mental ray shaders, and personally I think this is one of the best features that has Mental Ray over V-Ray or Final Render.
Chico me comento en el ultimo post que no sabe como instalar el shader p_HairTK, así que no sabe como instalar ningún shader de mental ray, voy a escribir una pequeña guiá por que de poco en poco utilizare shaders adicionales de mental ray, personalmente pienso que esta es una de las grandes características que tiene Mental Ray sobre V-Ray o Final Render.

So let's explain what are the components of a shader, I'll do the example with Puppet Shaders (Pavel Ledin)
Así que vamos a explicar cuales son los componentes de un shader, haré el ejemplo con los shaders de Puppet (Pavel Ledin)

You should have two files, a dll and a MI file, in our case we have these:
Deberías tener dos archivos, una dll y un archivo MI, en nuestro caso tenemos estos:

shaders_p.dll
shaders_p.mi

In my case the dll is a 64bit dll, but if you are working with a 32bit version of max/mental ray you'll need the 32 version.
This is not a Max specific file, it can be a shader for Maya, XSI or Mental Ray Stand Alone, probably it will work(it depends on Mental Ray version), but you need the other file to do the shader useful inside Max.
En mi caso la dll es de 64bit, pero si estas trabajando con una versión de max/mental ray de 32bit necesitaras la versión de 32bit.
Este no es un archivo especifico de Max, puede ser un shader de Maya, XSI o Mental Ray Stand Alone, probablemente funcionara(depende de la versión de Menta Ray), pero necesitas el otro archivo para hacer que el shader sea utilizable en Max.


The MI file is the translator, let's name it this way, so Max can show the settings available inside this shaders/group of shaders in a human understandable way.
El archivo MI es el traductor, llamemoslo de esta manera, con el Max puede mostrar las opciones disponibles del shader/grupo de shaders de una manera humanamente comprensible.

There are two way for installing shaders in 3dsmax.
Hay dos maneras de instalar los shaders en 3dsmax.

The first and easiest way is what follows:
La primera y mas sencilla es la siguiente:

Copy the dll file inside this folder:
Copia el archivo dll en este directorio:

“\mentalray\shaders_autoload\shaders”

This folder is located inside the 3dsmax root folder.
Este directorio esta ubicado dentro de la raíz de 3dsmax.

Now copy the MI file to this folder:
Ahora copia el archivo MI a este directorio:

“\mentalray\shaders_autoload\include”.

Now our shader will be loaded with max.
Ahora nuestro shader se cargara con max.

If you don't want max to load the shader you'll need to remove the files from the folders.
Si no quisieras que max cargara el shader tendrás que borrar los archivos de los directorios.


The second way is to load the files manually, so if we need to disable the shaders we can do that be commenting two lines from a file, no need to delete the shader files.
La segunda manera es cargar los archivos manualmente, si necesitamos desactivar los shaders lo podemos hacer comentando dos lineas de un archivo, no tenemos que borrar los archivos del shader.

Copy the dll to this folder:
Copia la dll a este directorio:

 “\mentalray\shaders_3rdparty\shaders”

Now copy the MI file to this folder :
Ahora copia el archivo MI a este directorio:

”\mentalray\shaders_3rdparty\include”

Of course this folders are located in the root of 3dsMax.
Por supuesto estos directorio están en la raíz de 3dsMax.

Now edit with the notepad the file 3rdparty.mi that is located inside this folder:
Ahora edita, con el notepad, el archivo  3rdparty.mi que esta ubicado dentro de este directorio:

”\mentalray\shaders_3rdparty”


You will see what follows:
Veras lo siguiente:


registry "{_AUTODESK_REG_3DSMAX_LOAD_3RDPARTY_SHADERS}"

    # Add "link" and "mi" statements here, to load your shaders.

    # Example:
    # link "base.dll"
    # mi "base.mi"
   
end registry

The lines with the character “#” at the beginning are commented lines that explains you how to define the shaders.
Las lineas con el símbolo “#” al principio son lineas comentadas que te explican como definir los shaders.

Your file must end being like that:
Tu archivo debe terminar como este:

registry "{_AUTODESK_REG_3DSMAX_LOAD_3RDPARTY_SHADERS}"

    # Add "link" and "mi" statements here, to load your shaders.

    # Example:
    # link "base.dll"
    # mi "base.mi"
   
    link "shaders_p.dll"
    mi "shaders_p.mi"

end registry

Now 3dsmax will load the shader, if you don't want the shader to be loaded just comment that lines with the character “#” at the beginning of the line.
Ahora 3dsmax cargara el shader, si no quieres que lo cargue simplemente comenta las dos lineas poniendo delante el símbolo “#”.

Next week we'll see how to use the max cloth simulator with our geometry based hair.
La próxima semana veremos como utilizar el simulador de telas de max con nuestro pelo basado en geometría.

Hope this helps you.
Espero que esto os ayude.

Thanks for reading and commenting.
Gracias por leer y comentar.


Juan Gea.