PDA

View Full Version : Vizard and OBJ Material Files


shivanangel
09-15-2009, 05:32 AM
Hello Worldviz Support Staff,

I have a few questions regarding how VIzard supports the OBJ file format, most notably how it uses the associated .mtl file to apply materials and textures to the surfaces of objects.

For instance, if I export out a single object in a scene with a texture applied to an object, the results will be perfect in Vizard.
In the material file I will have only one material with the texture named and I only have one geometry object in the obj file.

However, if I make three objects. Say one object textured by the same image and another object with just a lambert shading of a particular color, the model with the straight lambert shading with no texture applied will be properly imported into Vizard, however the textured object will not be. Vizard says it has loaded the image data.

http://i200.photobucket.com/albums/aa177/glecakes/boxesinmaya.jpg

http://i200.photobucket.com/albums/aa177/glecakes/vizboxes.jpg

I'm mainly asking because I have a city scene with many assets and textures and was wondering if I had to export them one at a time in the obj format or if I was missing something.

Thank you for your time once again,
George Lecakes

tobin
09-15-2009, 11:06 PM
From your modeling program, have you tried setting the material color of the texture object to pure white, or setting it's emissive color to white? Finally, from Vizard you can turn on <node3D>.appearance(viz.DECAL) which might help minus correct lighting.

shivanangel
09-16-2009, 11:13 AM
I'm going to give it a shot,
however what I am confused about is
if I export out a model with a texture without any other models
or materials it works fine.

However, as soon as I exporting out more than one asset
into a single obj file,
Vizard incorrectly rebuilds the objects inside the virtual world.

sunil.nair
10-04-2013, 06:11 AM
Can I now place a car (mini.osg) in between these cuboids.

Sunil