Planetside Software Forums

General => Terragen Discussion => Topic started by: PeanutMocha on August 30, 2010, 04:41:55 PM

Title: Imported object renders black
Post by: PeanutMocha on August 30, 2010, 04:41:55 PM
I started playing around with importing an object into a scene and my first attempt yielded a completely black surface.  I'm almost entirely new to 3D modeling in general.

I grabbed a model in .obj form of a Rubber Ducky and added a yellow texture to it in Poseray.  Saved the object (which also saved an accompanying .mtl file) in the same directory as my .tdg file.  The Ducky looks fine in Poseray but renders black in TG 2.

Project and object files attached.  Any thoughts?
Title: Re: Imported object renders black
Post by: airflamesred on August 30, 2010, 05:13:28 PM
The OBJ reader has not found the .mtl file and there should be an error to show this. All is not lost just attatch a default shader to the parts shader and change the colour etc to suit. Interestingly there were a number of reversed normals on the lower beak though they don't show up in the render.
Title: Re: Imported object renders black
Post by: PeanutMocha on August 30, 2010, 06:26:27 PM
Any idea why the OBJ reader would not find the .mtl file?  My real goal is to import a complex model with it's own shading.  Ducky is just a test.
Title: Re: Imported object renders black
Post by: mindsap on August 30, 2010, 10:54:53 PM
It rendered yellow for me. ???
Title: Re: Imported object renders black
Post by: Kadri on August 30, 2010, 11:38:32 PM
The parts shader is empty in your TGD. When i import your model in a default new project there is not any problem.
Did you mess with the objects nodes in some way ? Your object is fine .
Try a new projects and import the object ones more and make a render. It should be OK , PeanutMocha .

Edit : Poseray didn't like your model (yeah i know you used it  :) ) ! It could not show it properly. But TG2 did show it fine.
Title: Re: Imported object renders black
Post by: PeanutMocha on August 31, 2010, 04:08:00 AM
Hmmm funny.  I "recycled" another project in which I had previously imported another, broken OBJ.  I changed the file name to the Ducky when the first one didn't work, but I guess something else didn't get reset/reloaded when I did that.

Thanks for the help!
Title: Re: Imported object renders black
Post by: schmeerlap on August 31, 2010, 04:53:41 AM
Just to confirm all is well and good with Ducky.

I just gave it a wee pond to sit in and a touch of reflectivity in the Specular tab of your Default shader to polish him up a bit, and he seems to be happily quacking away now.

quack quack

John
Title: Re: Imported object renders black
Post by: Kadri on August 31, 2010, 10:00:04 AM

Years of innocent  ::)  ;D
Title: Re: Imported object renders black
Post by: PeanutMocha on August 31, 2010, 05:07:30 PM
Very nice!
Title: Re: Imported object renders black
Post by: PeanutMocha on September 09, 2010, 02:06:52 AM
I added a short explanation and video to my TG2 blog: http://terragen2.wordpress.com/2010/09/08/adding-objects/