Planetside Software Forums

General => Terragen Discussion => Topic started by: Costaud on November 02, 2009, 12:47:22 PM

Title: Where is the multi shader
Post by: Costaud on November 02, 2009, 12:47:22 PM
After a stop just less than a year my interest in Terragen has been rekindled, but what happen to the multi shader? I tried to import an obj tree made with Arbaro but in Terragen I received a Part shader error, so I made a quick test with Blender with three cube with a different colors for each (red, blue and green) I exported these cube as an obj file, then I imported this cubes in PoseRay and reexported them as an obj file (I always do that in the past witout any problems), but when I imported the cubes in Terragen I received the message below, in the past the multi shader was automatically the defaut shader but now I get the Part shader with nothing in it.

(http://i50.photobucket.com/albums/f337/costaud/Partshadererror.jpg)
Title: Re: Where is the multi shader
Post by: Henry Blewer on November 02, 2009, 01:24:06 PM
To the left of the input where 'parts shader 1' is, there is an icon which opens the node of the parts/materials used. Click on this and the material list appears in the node window. I could not get the materials node to accept input via the connectors. Open each material and use the input dialogs to enter image paths and/or power fractals, etc;.
Title: Re: Where is the multi shader
Post by: Costaud on November 02, 2009, 02:07:14 PM
I don't have any node with Blender/PoseRay obj but I have it with plants made with Plant studio (obj) for exemple.
Title: Re: Where is the multi shader
Post by: jo on November 02, 2009, 04:25:22 PM
Hi,

The Parts shader has taken over from the Multi shader. It allows more than 16 textures. Normally the Parts shader internal network would be full of Object part and Default shader pairs, one for each material. However in this case the OBJ reader couldn't find the mtl file for the object for some reason, and the mtl file is where the materials are stored. Without the mtl file it couldn't created the Object part and Default shaders which normally be inside the Parts shader.

Does your object have a mtl file?

Regards,

Jo
Title: Re: Where is the multi shader
Post by: Costaud on November 02, 2009, 05:10:48 PM
Yes and in the same folder. But the problem is with Blender and PoseRay because obj plants exported from plant studio work fine.
Title: Re: Where is the multi shader
Post by: Henry Blewer on November 02, 2009, 05:21:38 PM
Use Poseray. Blender does not use real world scale. So anything it makes defaults to 1 meter (I think) and the image maps a messed up.
Title: Re: Where is the multi shader
Post by: Costaud on November 02, 2009, 05:37:18 PM
Update, I put the obj and the mtl in the same folder but in the same file too and it work now with PoseRay but not with Blender (but that not a problem I always export my obj in PoseRay)...very strange I don't have to do that with plant studio.
Title: Re: Where is the multi shader
Post by: Klas on November 03, 2009, 02:57:57 AM
You do not need Poseray to import objects from Blender into TG2. You only have to assign a material to your object and you can forget Poseray. And: No spaces in filename and path! Do not use something like "My test object.obj" or you getting an errormessage like: "OBJReader: could not open....". If you have trouble with the mtl-file take a look into your .obj-file (it's a text file!), there is a line like "mtllib my_material.mtl" at the beginning, is the filename correct? Only the characters [a-z][A-Z][0-9] and _ should be used.