Ok..So

Started by DanD, October 01, 2007, 11:34:47 PM

Previous topic - Next topic

DanD

Ok..So How do I get the .mtl to be read by terragen ?...Its just supposed to be color information
No high res maps,just color. right now..Its just black

dhavalmistry

Terragen will read mtl by itself all you have to do is keep obj and mtl in same folder...
"His blood-terragen level is 99.99%...he is definitely drunk on Terragen!"

DanD

Yep...I did that, Its my guess,that there isnt anything in the mtl file.
There isnt anything associated with the tree material wise, My question is
How do I associate the image or color file so that the multishader sees the image or
color info

dhavalmistry

you load the texture file into the color image field....
"His blood-terragen level is 99.99%...he is definitely drunk on Terragen!"

DanD

   There's something you arent getting,When I try to load the mtl into the multi shader
I get an error message saying TG cant read the image, so...My question is..How can I get terragen to read just color info from the mtl ? Is it something I'm doing in Onyx ?
I doubt it ..Vue 4 reads it fine. Truespace 6.6 and Terragen dont see it

Kevin F

What is actually in your mtl file?

here's one that I know works in TG2 from the cotoneaster plant:


newmtl Default_trunk
Ka 0.1 0.1 0.1
Kd 0.7 0.7 0.7
Ks 0 0 0
Ni 1
map_Kd cotoneaster_integerriums_bark.png

newmtl Default_berry
Ka 0.1 0.1 0.1
Kd 0.7 0.7 0.7
Ks 0 0 0
Ni 1
map_Kd cotoneaster_integerriums_fruit.png

newmtl Default_Leaf
Ka 0.1 0.1 0.1
Kd 0.7 0.7 0.7
Ks 0 0 0
Ni 1
map_Kd cotoneaster_integerriums_leaf.png


Regards
Kevin.


rcallicotte

After you load the object into TG2, go to the surface maps and check each texture.  It's my bet that there is a '\' where there shouldn't be.  I sometimes wonder if this isn't a problem with TG2's object system that the textures of an object aren't mapped to the right directory after loading.

By the way, I've found a safe way to keep an object in the best possible usage is to save your newly inserted object (after checking your mappings) as a TGO.



Quote from: DanD on October 02, 2007, 03:03:43 AM
   There's something you arent getting,When I try to load the mtl into the multi shader
I get an error message saying TG cant read the image, so...My question is..How can I get terragen to read just color info from the mtl ? Is it something I'm doing in Onyx ?
I doubt it ..Vue 4 reads it fine. Truespace 6.6 and Terragen dont see it
So this is Disney World.  Can we live here?

DanD

The multishader isnt even seeing the mtl file,There is no way to load it
If I try,I get an image error message,according to Onyx, I shouldnt be having this
problem,so it has to be a step I'm not doing or a directory problem
   Enilab says he did it,but not how,This is frustrating

Oshyan

the .mtl will be loaded automatically if it has the same name as the obj file and/or is referenced in the obj (not sure about the latter). If you are getting the texture read error then it *is* loading the .mtl - that's the only way it would know that a texture is "missing". The error is *in* the .mtl and therefore seems to lie in the export process. Onyx may be exporting somewhat strange obj/mtl files, for example.

Some programs are more flexible with and/or tolerant of obj/mtl formatting inconsistencies. TG2 is not particularly forgiving right now. OBJ is unfortunately a fairly broad format with only a baseline of standardization upon which a lot of additional stuff has been built. This makes it hard to remain compatible with every obj out there.

In any case I suggest loading your object in Poseray and seeing how it displays there. If the coloration loads then the obj is fine and re-exporting as obj from Poseray may help (Poseray makes nicely formatted obj's that TG2 works well with). If coloration does not show up in Poseray then Onyx's obj export must be rather non-standard. There may be options within Onyx to make the export itself better as well.

- Oshyan

rcallicotte

I use PoseRay to run my objects through before bringing them into TG2.  Many here do the same.  It's free and works well.
So this is Disney World.  Can we live here?

DanD

   Yep..PoseRay fixed it, Thanks a lot , guys, Now..Is that Terragen contest still going on ? LOL

rcallicotte

There will likely be more.  Just keep watching at Renderosity, Ashundar, and (of course) here.   :D

And post in the image section.


Quote from: DanD on October 02, 2007, 03:36:03 PM
   Yep..PoseRay fixed it, Thanks a lot , guys, Now..Is that Terragen contest still going on ? LOL
So this is Disney World.  Can we live here?