Planetside Software Forums

General => Terragen Discussion => Topic started by: Djb3000 on April 14, 2014, 01:48:05 PM

Title: Distort edges of objects
Post by: Djb3000 on April 14, 2014, 01:48:05 PM
I have been trying to import Blender obj files with textures and UV mapping, but cant get them to show up in Terragen. Is it possible to do this?

Also as I couldnt find a way I have been applying textures to Blender obj files in Terragen, but cant find a way to displace the edges (please see photo). I can apply them to the surfaces but the edges are unaffected. Is there a way of doing this?

Thanks in advance
Title: Re: Distort edges of objects
Post by: Upon Infinity on April 14, 2014, 02:18:05 PM
Turn off Ray-Trace objects in the Render menu.
Title: Re: Distort edges of objects
Post by: Djb3000 on April 14, 2014, 02:43:51 PM
Brilliant, that works perfectly.

I still cant get the Blender textures to show up in Terragen on the obj though. Is this possible? or is it best to apply materials and textures within Terragen?

Title: Re: Distort edges of objects
Post by: masonspappy on April 14, 2014, 05:02:43 PM
where does the .MTL file point to?
Title: Re: Distort edges of objects
Post by: Oshyan on April 14, 2014, 08:55:11 PM
Yes, it's certainly possible. However OBJ is not a very strict "standard" so sometimes there are differences in how one application writes the OBJ or MTL (MTL is the texture definition file), or another one reads them. Do you get any error messages when you try to load them?

MTL files are plain text so you can read them with a text editor. Look especially for what the path statements for the textures look like. Also, of course, make sure your textures are images and not procedural as procedural textures cannot be exchanged between most applications, and certainly not in OBJ format (which deals exclusively with simple material properties like diffuse color, specular, and image-based texture assignments).

In any case, one approach that is sort of a catch-all for any kinds of problems like these is to pass the object through the free PoseRay software. Just load it, then save out as OBJ again (with a new name, ideally, in case something breaks). The resulting output OBJ should be more compatible with Terragen. https://sites.google.com/site/poseray/

- Oshyan
Title: Re: Distort edges of objects
Post by: TheBadger on April 14, 2014, 11:08:21 PM
Hi zapatista.  :)

These issues tend to be resolved pretty quickly. Or at least all the facts of a object import issue can be know and understood very quickly. Since, just about everyone runs into them when they first start on the subject (for the reasons Oshyan said). But if you have a simple object like in your OP that you are testing on, overwhelmingly the fastest way to get a definitive statement on what the problem is, and probable fix (usually), is to simply just post the object.

Just wanted to make sure that you knew that with basic things like this, its quite OK to just post a zip with the object, and a .tgd with the object already loaded into a scene. That is, if you have not already fixed your object issue.

Title: Re: Distort edges of objects
Post by: Djb3000 on April 15, 2014, 02:41:03 PM
Thanks for your help.

I have just read that Blender cannot currently export node based textures from the cycles render mode to obj files. I think this is where I was going wrong as i was trying to produce models in that mode. Is this right? Should I stick with the Blender render mode?

Thanks

Just found this on the Blender forum -

http://www.elysiun.com/forum/showthread.php?320939-Textures-NOT-supported-in-OBJ-export
Title: Re: Distort edges of objects
Post by: Oshyan on April 16, 2014, 12:03:47 AM
That seems like a likely explanation.

- Oshyan