renderizando por linha de comando

Por: alanpinho  

Em: 02/10/2008 12:32

pessoal dei uma olhada nas dicas de renderização, dai gostaria de saber um pouco e tirar uma duvida a respeiito de como proceder, é o seguinte se eu configurar a sena e colocando todas as opções proxis luz e ativar salvamento automático e tudo mais, seria só eu digitar o comando render que o pc faz tudo ? ou tenho que indicar o arquivo, tamanho da imagen e indicar onde salvar ?
Tem uns códigos que precisa digitar e depende se está renderizando do max ou com o backburner.... No help do max tem todos os códigos.... Eu copiei uma parte do help, olha ai se te ajuda.... To view the 3dsmaxcmd help file: The 3dsmaxcmd.exe file contains a built-in help system that you can access from a command prompt. Open a command prompt window (for example, Windows Start > Run > enter CMD). Enter the following: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” -? and press Enter. The list of switches and options will scroll on to the window. To view a list of sample command lines with descriptions of what they do: The 3dsmaxcmd.exe file also has an extensive list of sample text strings that describe many of the most common scenarios you'd use command-line rendering to accomplish. Open a command prompt window. Enter the following: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” -x and press Enter. Setting up the simplest rendering: In its simplest form, just a render command using all the settings that are stored with a scene, would look like this: Open a command prompt window. Enter the following: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” “c:\program files\autodesk\3dsmax9\scenes\myscene.max” and press Enter. Example: Rendering to a JPG file at 800x600 resolution: Perhaps the last time you rendered your scene, you had the output resolution set to 320x240 and rendered a BMP file. Re-rendering the scene using different output settings is fast and efficient with command-line rendering. Open a command prompt window. Enter the following: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” -outputName:“c:\program files\autodesk\3dsmax9\renderoutput\myImage.jpg” -w 800 -h 600 “c:\program files\autodesk\3dsmax9\scenes\myscene.max” and press Enter. Note: The specified output path must already exist. If it doesn't, the image doesn't render and you get an error message. Network rendering from the command line: If you have your system networked and have access to other systems, you can take advantage of network rendering. Note: A command-line job cannot be run on a system already running the Backburner server. Open a command prompt window. Enter the following: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” -submit “c:\program files\autodesk\3dsmax9\scenes\myscene.max” and press Enter. Example: Rendering from a text file: Command-line rendering gives you the ability to set a series of common switches that can be quickly re-used for rendering a single job from Start > Run, or for rendering a group of scenes specified in a BAT file. You can build your text file using any text editor. Note: A TXT file can specify only a single scene to render. For multiple scenes, use a BAT file. Open your text editor. Enter your list of commands, such as: -bitmapPath=\\mapServer\maps\myMaps -cam=myCamera -width=800 -height=600 -vfb=true -frames=all -force2Sided=true Once all the switches are entered, save the files as a TXT file, such as myrender.txt. To render the scene, open the Windows Start > Run dialog. Enter the following: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” @c:\myrender.txt -o=“c:\program files\autodesk\3dsmax9\renderoutput\myImage.tga” “c:\program files\autodesk\3dsmax9\scenes\myscene.max” and click OK. Using a TXT file that contains your favorite settings, in conjunction with a command line that specifies the output file format and scene of your choice, gives you the flexibility to re-use the TXT file without having to edit it each time you want to render. You can create several TXT files with settings for different stages of scene development, such as testrender.txt or finalrender.txt. Example: Rendering from a BAT file: If you want to render several scenes in a batch process, you can create a BAT file containing all the scenes and switches needed to get the results you want. Just like a text file, you can build your BAT file using any text editor. For this example, let's say you have three scenes, in various stages, and you want each rendered using different settings. Open your text editor. On the first line, enter the following text. This example assumes that the scene is far from finished, but that you want to test a chunk of animation. “c:\program files\autodesk\3dsmax9\3dsmaxcmd” -o=“c:\program files\autodesk\3dsmax9\renderoutput\scene1.jpg” -w=320 -h=240 -frame=1-33 “c:\program files\autodesk\3dsmax9\scenes\scene1.max” The second scene is almost ready, but you need to test the look of some materials and do a video color check: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” -o=“c:\program files\autodesk\3dsmax9\renderoutput\scene2.jpg” -w=640 -h=480 -force2Sided=true -videoColorCheck=true “c:\program files\autodesk\3dsmax9\scenes\scene2.max” The last scene is complete, and you want to render a higher-resolution image using settings you've saved in a TXT file that you always use for final renderings: “c:\program files\autodesk\3dsmax9\3dsmaxcmd” @c:\finalrender.txt -o=“c:\program files\autodesk\3dsmax9\renderoutput\scene3.jpg” “c:\program files\autodesk\3dsmax9\scenes\scene3.max” After entering these three command lines, save your file as a BAT file. From the Windows Start > Run dialog, browse to the BAT file and click Open. Click OK to start rendering.
é.... o bixo é complicasdo mesmo, continuo com minhas duvidas, tenho que configurar tudo e só mandar renderizar ou tenho que ativar comandos simples como tam. da img, onde salvar etc. será que ninguem nunca usou isso ?
Alanpinho, não é complicado! Pode ser bem simples. Faz assim: Configura toda a sua cena como você faria normalmente. Tamanho e formato da imagem final, local para salvar o arquivo, configurações de memória etc. Só que na hora de mandar renderizar (F9 ou clicando no ícone do Teapot), você simplesmente fecha o Max. Simples, né? Aí vai no Prompt de comando e digita (o comando é COM as aspas!): “c:\arquivos de programas\autodesk\3dsmax9\3dsmaxcmd” “c:\[i:6f8cec2f78]caminho do seu arquivo[/i:6f8cec2f78]\[i:6f8cec2f78]seuarquivo.max[/i:6f8cec2f78]” Onde está em vermelho, você coloca a pasta do seu Max. Isso varia de acordo com a versão do software ou se você mudou o padrão na hora de instalar. Simples assim. Aquelas outras opções, de colocar -i -o /h etc., são pra renderizar de um modo diferente de como o arquivo salvo está configurado. Por isso eu disse no começo deste post que você deve já deixar tudo confirado, salvar, sair do max e digitar o comando. Assim ele pega as configs do arquivo. Abraço!
amigão brigadão mesmo, agora entendi perfeitamente :) isso será de uma utilidade muito grande, valw
put´s, tá aparecendo a msg "a sintaxe do nome do arquivo, pasta ou nome do volume esta incorreta" cara faz muitos anos que não brinco com o ms-dos, tanto que estava apanhando para lembrar qual comando eu conseguiria ir para a raiz :P command cd.. pow será que alguem pode dar uma luz ai, a linha que estou usando é “c:\arquivos de programas\autodesk\3dsmax9\3dsmaxcmd” “D:\Teste\1.max” qual quer arquivo aparece a mesma msg o max que utilizo é o 9 32bits
opá acho que consegui, configurei a cena como voce falou, dai fui na raiz do programa, executei o seguinte comando e deu certo 3dsmaxcmd.exe D:\Teste\1.max D:\Teste\1.max seria o endereço com o nome do arquivo
O melhor de renderizar assim é não gastar memória com o max e com a cena aberta, sobra mais pro render e evita pau de memória ;)
Mental Ray User
gutão, foi com essa intenção que procurei me informar, e pelos testes que fiz não teve diferença siguinificafiva com relação a economia de memória nem em tempo de render, pelomenos com o v-ray foi nessa conclusão que cheguei. mas bem não cheguei a renderizar assim com um aquivo pedindo memória, mas se aparecer algum arquivo com esse problema, vou tentar, se der certo ou errado posto aki mais detalhes

Faça o login para poder comentar

Informações da Comunidade

Total de mensagens publicadas pelos membros da comunidade: 717426.

Total de membros registrados: 143177

Últimos membros registrados: elenahardiya, LifeGaugeBreeze56685, LifeGaugeBreeze3545, OsanixCapsules345, Kennetoot, BillcKittrick, rbes, GROYCE.

Usuário(s) on-line na última hora: 295

Legenda: Administrador, Especial, Moderador, Parceiro .

3D1 © Três D1 © 1999-2026. Todos direitos reservados.