PDA

View Full Version : Problems texturing imported .obj files


simesf
03-26-2008, 08:49 AM
Hello all,

New user here. I'm importing a .obj files from Modo 301 into Softimage XSI 6.5. I imported the .obj files from Zbrush into Modo. I can set up my displecement, colour, specular etc maps in Modo just fine. When I import the file into Softimage the displacement map goes all over the place. I get a mottled grey all over the model which seems to bear no relation to the UVs on the model itself. Curiously enough maps like the colour map seem to import just fine in the textured view but don't render.

I'm also having a problem with imported surfaces with no UV maps. I try to adjust them but intially I could get no more than a grey render, even when the imported colours showed as red/brown etc. in the shaded view.

I stuck with it and managed to get some materials onto the imported file but it seems a very laborious process of stripping off the original material once you've applied a new one inside XSI. Is there any way to make this process more straightforward? Ideally I'd like to be able to select one of the imported surfaces as a cluster and go straight to work adjusting it or drag and dropping a preset onto it.

DJ Barney
04-06-2008, 11:13 AM
Hello simesf,

I have the same problem.

I export an ".obj" from Bryce. Bryce generates diffuse, ambient and bump textures but they do not show up in XSI Mod Tool. At first I thought it was because I was new to the program ... I looked in vain for a way to turn on texture rendering in the viewports. But an actual render did not show any textures.

I sort expected everything to import "as is" but maybe there is something else I have to do ?

DJ Barney

EDIT: SOLVED! I checked the obj file, which is text. Obj format uses underscores for spaces. Of course all my names had spaces in them ! Easy to miss when my eye is on the graphics... So make sure all spaces are "_" :)

Here it is ...

{filesharer image load may be slow]

http://www.divshare.com/img/midsize/4184904-ed8.jpg (http://www.divshare.com/img/4184904-ed8.jpg)

DJ Barney

simesf
04-06-2008, 04:39 PM
I'm glad you got your problem sorted. Mine got worse when I imported an .obj file with multiple surfaces/clusters on it. There seems to be little I can do beyond 're-clustering' all my polygons, which will be a laborious process.

DJ Barney
04-06-2008, 08:45 PM
The .obj file is a text file. Open it in Notepad, or whatever and you can see what is going on. Check for spaces in names as well. The problem I had may also apply to surface names.

Search the XSI help file as well (in the start menu) for "model import" or just "import". There is a section about enabling/viewing import logging so that you can see where things are failing.

DJ Barney

UPDATE: My problem continues ... Import works, although bump and ambient texture images are not added to the Cryshader (although one of the unused images is listed). Export works (although it says "16 geometry errors", but there are no critical ones). The terrain model loads into the editor but with no texture/material. The CGF file exports with no .mtl file. One of my other models DID with a default Cryshader on it.

I tried constructing an .mtl file from the examples as they just reference a .tif image, but again no material is mapped to my model, even though a .dds file is generated.

I wonder if this is because I'm using a 4096x4096 50mb image generated by Bryce. Is it too big ?

BTW, if you wonder what I'm up to then look at this piece of artwork of mine (http://djbarney.deviantart.com/art/Octahedron-Array-43390067). I'm trying to recreate it in Cryengine for the Relaxation Mod (http://djbarney.silentflame.com/paradisenow/).

simesf
04-07-2008, 04:20 AM
Thanks for the input Barney. I'll be away from my computer for a week or so, so I'll have to check things out then.

DJ Barney
04-13-2008, 10:39 AM
Seems like I WAS barking up the right tree ! The only thing I didn't understand was that the texture needs to be a .dds DTX5 file.

I just altered the .mtl file that Bryce generates to point to a .dds texture instead of a .bmp file. Then I followed the tutorial linked on this thread (http://www.crymod.com/thread.php?threadid=19079) and now I have a nice textured terrain in the editor :cool2:.

DJ Barney