obj no textures

Started by bing66, February 12, 2014, 07:26:21 PM

Previous topic - Next topic

bing66

cant figure this, my obj which I have exported from max, and checked in poseray for some reason is black in terragen, in the preview window it has no textures, another file is fine,, i have checked the model in max, and it has nor errors, the model does not use any procedural textues or special mats from max, just plain and simple uv's with texture, it 1 object with a multisub mat, which should be fine, any suggestions greatly recieved, i am fairly new to terragen, so I may have missed something here, but not new to 3d or max,
i bet its a tick box, its always a tick box! :)
thanks

TheBadger

Hi,

I dont use max, but I use MAya. And with my models from MAya I need to up the  "diffuce colour" in the objects parts shader from 0 to 100%. So from black to 100 % of what my texture is.

But it depends on what software you use to produce the .obj. As I understand it, obj is common, but every software writes it just a little differently. And there are many softwares writing obj(s) slightly differently, so TG just treats them all the same.

But this may or may not be your problem, though it sounds like it is. See the image below. And click on the object in question in the node window until you get down to the internal nodes of the object, there with be a node for each separate part of your object, or just one if its a single part.
It has been eaten.

bing66

hi thanks for the reply
I think I inadvertently solved whatever problem i had, but didnt realise it, as terragen has a real problem updating the models correctly, even after closing it down and reopening,it was still wrong, it wasnt until i re imported the model and copied over the transform co-ordinatesthat i realised the model was fine, not sure if max is the problem as the mesh was very clean and the uvs were all as they should be, i think i will use poseray from now on, that is, import my obj into poseray, and then re export as obj, oh well I guess everything has its quirks :),
the model does look quite dark so did what you suggested, but its still dark, will look into that though, thanks again :)

Dune

You may have to up the main color in the default shader, or perhaps your normals are flipped (no pun intended).

Oshyan

#4
It's literally not possible for the model to be not updated between different sessions of Terragen. The model is always loaded new if you close Terragen then open it and open the project.

Edit: I think I slightly misunderstood what you were saying. Again this is normal and expected behavior, it's just a misunderstanding of how Terragen works. When you load an object into Terragen and save a TGD, it loads the object and material references *once* and then *saves those material references*. The *only* way to update the references if you make changes to e.g. the MTL is to completely delete and re-load the object. So if you are saving a TGD with a broken OBJ, any changes you make later will not show up unless you delete and re-load it. Again this is because TG loads the data from the MTL (not the object geometry) *once* and then stores it when you save it in the TGD.

- Oshyan

Dune

Would be interesting to see what happens if you save a tgd and replace the object outside with a totally different object, but the same name...

Oshyan

Quote from: Dune on February 14, 2014, 03:46:29 AM
Would be interesting to see what happens if you save a tgd and replace the object outside with a totally different object, but the same name...

Most likely when you reloaded the project, you'd get a different object but with the old object's texture coordinates and image references.

- Oshyan

PabloMack

Is the texture image in the same folder as the object model?