Imported object renders black

Started by PeanutMocha, August 30, 2010, 04:41:55 PM

Previous topic - Next topic

PeanutMocha

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?

airflamesred

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.

PeanutMocha

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.

mindsap

Once a King always a King but once a night is enough...

Kadri

#4
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.

PeanutMocha

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!

schmeerlap

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
I hope I realise I don't exist before I apparently die.



PeanutMocha