Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

The final texturing - run into a little bump

Page: 1 of 1
 FarbrorGnur
03-12-2012, 2:42 PM
#1
I hope it's okay I created a new thread for this, because it's no longer about getting the model into jk2, but about texturing.

I textured my model while it was still in one piece, and it looks nice and seamless in 3DS max:

https://photos-1.dropbox.com/i/l/zgBZJ_zUO32qfxzb9o0j0rjeOEDoxiIFvkX2lnJI_7g/58757568/1331665200/00762b3/thebird.jpg)

The resolution is good in 3ds Max, and for texturing the model I'm using a single 2048 x 2048 jpg. It looks fine in 3DS max also after segmenting the model, no seams can be seen.

Problem: When playing with it ingame, it is textured but the texture resolution seems a bit lower than what it appears like in 3DS max. So it seems to lose its seamlessness by showing parts of the dark untextured areas in the texture. Not so visible in these screenshots, but it gets clearer when going further away from the model for some reason. (It does not have LODs)

https://photos-1.dropbox.com/i/l/Y2StF3OPzmJBSmq2AQLZZM_fLl0WFqufb07KjzlSAHA/58757568/1331665200/3f4b417/shot0009.jpg)

https://photos-2.dropbox.com/i/l/Z5wSN3UBcfDZYQCl_hD4IY5AmWa0fpWXDCaST6cN_Jw/58757568/1331665200/0810d8a/shot0010.jpg)

I understand the ideal thing would be to create a map for each different part, but I fear I would have to redo the whole process of texturing this (done in Zbrush to get it seamless)... unless anyone knows a nice solution to it? Here's a picture of the texture that is used for the whole model:

https://photos-1.dropbox.com/i/l/Q-gNiJrtRXWvTi9JGeWhxl_qo18ezLkIK5r-NNXaowM/58757568/1331665200/ba4ebd7/duckskin.jpg)

(fullsize link: https://photos-1.dropbox.com/i/o/Q-gNiJrtRXWvTi9JGeWhxl_qo18ezLkIK5r-NNXaowM/58757568/1331665200/e5a5af2/duckskin.jpg) )

Any ideas? I really struggle to find a suitable tutorial... they mostly cover unwrapping basics. I need it to maintain its seamlessness and to cover the whole texture ingame...


EDIT: I realize not everyone's seeing the pictures. But this link should work, and here's all the screenshots I talked about: http://www.dropbox.com/gallery/58757568/1/Stash?h=87fecc)
 Psyk0Sith
03-13-2012, 1:58 AM
#2
The problem you are seeing is called downsampling or texture filtering. What's happening is the empty or black areas of your texture (gutters) are being "bled" into your colored areas (UV shells).

The fix is pretty simple, you need edge padding (in other words your UV shells need to be colored bigger than they actually are) Also, changing the gutter color to something closer to your texture will help a lot.
 FarbrorGnur
03-13-2012, 5:47 PM
#3
I see! It does leave some challenges to making it seamless yet, though. I suppose I'll have to generate some new and bigger texture files if I want one part at a time. Thanks for the tip though!

Still there's one strange issue. There's not a very catastrophic seam between the hips and torso, but it looks actually detached in-game, as if a shadow comes between at certain angles (in certain lightings). I don't think it has to do with the texture. In modview, it doesn't behave that way obviously since there's no lighting, so that might prove that it has to do with the lighting in-game. Any idea what causes this?

Modview: http://dl.dropbox.com/u/58757568/modview.jpg)

In game: http://dl.dropbox.com/u/58757568/shot0011.jpg)

Texture file: http://dl.dropbox.com/u/58757568/duckskin.jpg)
 Psyk0Sith
03-13-2012, 5:59 PM
#4
The first thing on your mind when you unwrap: always hide your seams in spots that won't be noticeable.

There's a photoshop filter for the downsamplng issue, but it requires to install a standalone app called xnormal. To make sure it doesn't happen tho, it's preferable to use edge padding when baking your maps, there's probably an option for that in zbrush, i just don't know where it is.

Edit:
http://www.mediafire.com/?bc0x0uwbs41258a)

Put this file in your photoshop plug-ins folder, when you load photoshop, you should find it under filters>xnormal>dilation

It's best to use this on each UV shell so get rid of the empty background when you use it because it's gonna grow all border pixels by the amount you entered.

The other problem you are seeing is caused by your split mesh. It's not exactly a problem, but a result of how polygons are rendered in game engines. Whenever a mesh is split, normal information changes on both surfaces and will alter the shading (think of it as smoothing groups if you know what they are).

When you compiled your model, did you check the boxes in assimilate where it says "smooth all groups" or remove duplicate vertex during compile? I don't remember exactly which one (or both or none?) might resolve the problem. So try compiling all 4 ways and see how it looks in the game.
 FarbrorGnur
03-14-2012, 2:50 PM
#5
The Xnormal tool worked great! Thanks a lot! I'm happy with the skinning of my model.

I can't find any such settings in Assimilate though. There's only build tools, preferences and such (version 2.1... don't suppose there's a newer).
 FarbrorGnur
03-14-2012, 3:50 PM
#6
Might be assimilate isn't guilty of it though.

Even in 3DS Max, it looks very segmented when it is segmented.

http://dl.dropbox.com/u/58757568/visible%20segments.jpg)

I don't know if there is a way a model can be segmented and still look like one piece. This way, it's not about the seams of the texture, only about the visible seams of the segmentation - if you'd weld them together, it wouldn't look segmented. I think that's the final big mystery before this starts seriously looking great! I see other models have hid such seams under clothing and the likes, but this duck is naked, it's just more natural for it.
 Psyk0Sith
03-14-2012, 11:32 PM
#7
Yeah same deal in 3d max, because that's how vertex normals shade polygons, it won't be visible when your texture is 100% lit like in modview. Try this when compiling in assimilite:

Double click on humanoid, it should open a window with build parameters, there's smooth all surfaces and remove duplicate verts from mesh during compile, try one box, then the other and both to see if it makes a difference. I doubt it will work, but worth a shot.

The only alternate solution would be to weld back the lower body to the torso then create a dummy "hips" object (a simple triangle) hide it inside the character and re-do the hierarchy.

If you don't want to go that route, you could probably use a shader to tell the engine to use your texture as 100% diffuse, i don't remember what the code looks like from memory, but i could probably find it.
 FarbrorGnur
03-15-2012, 11:17 AM
#8
It was definitely worth a shot, it worked!!

Simply checking Smooth all surfaces worked, so I'll keep that in mind for future compiles :) Thanks a lot!

http://dl.dropbox.com/u/58757568/itwooorks.jpg)
 Psyk0Sith
03-15-2012, 11:55 AM
#9
Great, glad it worked.
Page: 1 of 1