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?
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.
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.
It rendered yellow for me. ???
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.
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!
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
Years of innocent ::) ;D
Very nice!
I added a short explanation and video to my TG2 blog: http://terragen2.wordpress.com/2010/09/08/adding-objects/