Jump to content

Is there a way to assign default materials to objects?


Recommended Posts

Hi,

I am very new to Houdini, only know how to navigate the viewport :) I am an expert in Max, so if there are people using both and can give Max like examples, I would appreciate it alot.

My goal is to learn this app from inside out.

Anyway I was wondering if there is a way to assign a different material to newly created scene objects.

This might actually be solved by a different method, as even though I am asking about default materials, I just want to customize how new scenes looks before I work with it.

So essentially I want my own lighting and default material for new objects that has this kind of look:

C5BXq.jpg

In Max, you create a maxstart scene in the scene folder and Max loads it when you create a new scene.

Is this possible, too much work, or against the spirit of Houdini?

Thanks in advance.

Link to comment
Share on other sites

This was already answered on the SESI forums.

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=108556&sid=486e45eac6fa000bd9469f3a984ed84e

Read up on environment variables for houdini.

For shading in the viewport you are limited to the opengl parameters unless you write your own glsl shader and use. Which I think maybe is out of your scope. You can see the available opengl parameters by viewing the OpenGl tab of the Mantra Surface material.

http://www.sidefx.com/docs/houdini11.1/hom/independent contains more info on 456.py which you can use to add your default light rig to all new scenes. The look of the viewport is affected by what lights you have enabled.

Link to comment
Share on other sites

This was already answered on the SESI forums.

http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=108556&sid=486e45eac6fa000bd9469f3a984ed84e

Read up on environment variables for houdini.

For shading in the viewport you are limited to the opengl parameters unless you write your own glsl shader and use. Which I think maybe is out of your scope. You can see the available opengl parameters by viewing the OpenGl tab of the Mantra Surface material.

http://www.sidefx.com/docs/houdini11.1/hom/independent contains more info on 456.py which you can use to add your default light rig to all new scenes. The look of the viewport is affected by what lights you have enabled.

Thanks, yeah I asked it there but I couldn't get a reply on the followup, that's why I wanted to ask here. Not sure which site is more active, I might actually post here instead of 2 places.

I wrote some HLSL shaders before using fx composer, but never a GLSL one. Can you write one inside Houdini? I know it has shader networks but not sure what kinds of shaders it supports.

I will look into the things you mentioned.

Thanks again.

Edited by magneto
Link to comment
Share on other sites

Thanks, where should I place this defaultscene.cmd?

convention is to pretty much mimic the $HH structure in either your $HSITE location, $HOME/houdini.xx.x, etc... so for consistancy I would put it in similarly in the same dir as the 123.cmd for easy sourcing -- currently I think in $HH/scripts.

most of the files in $HH can have various points of overide in the path and a good way to experiment is to mimic the structure in your $HOME/houdini.xx.x and then copy a file from the intallation dir and start editing it. If you are unsure what Im talking of... $HFS in the intall dir hfsxxx.xx and $HH is /houdini from there. You can use the variable to jump around via window-->shell from inside the app, cmdline tools on win, or sourcing houdini_setup on *nix and then cd $HH or cd $HFS etc...

Link to comment
Share on other sites

convention is to pretty much mimic the $HH structure in either your $HSITE location, $HOME/houdini.xx.x, etc... so for consistancy I would put it in similarly in the same dir as the 123.cmd for easy sourcing -- currently I think in $HH/scripts.

most of the files in $HH can have various points of overide in the path and a good way to experiment is to mimic the structure in your $HOME/houdini.xx.x and then copy a file from the intallation dir and start editing it. If you are unsure what Im talking of... $HFS in the intall dir hfsxxx.xx and $HH is /houdini from there. You can use the variable to jump around via window-->shell from inside the app, cmdline tools on win, or sourcing houdini_setup on *nix and then cd $HH or cd $HFS etc...

Thanks yeah I still need to learn about the env variables :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...