lfnetwork.com mark read register faq members calendar

Thread: The final texturing - run into a little bump
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 03-12-2012, 02:42 PM   #1
FarbrorGnur
Rookie
 
FarbrorGnur's Avatar
 
Join Date: Aug 2011
Posts: 47
The final texturing - run into a little bump

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:



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)





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:



(fullsize link: https://photos-1.dropbox.com/i/o/Q-g...2/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/58757...Stash?h=87fecc

Last edited by FarbrorGnur; 03-12-2012 at 04:29 PM.
FarbrorGnur is offline   you may: quote & reply,
Old 03-13-2012, 01:58 AM   #2
Psyk0Sith
3D Tech Support
 
Psyk0Sith's Avatar
 
Join Date: Jul 2002
Location: Adanac
Posts: 2,073
Veteran Modder Helpful! 
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.

Psyk0Sith is offline   you may: quote & reply,
Old 03-13-2012, 05:47 PM   #3
FarbrorGnur
Rookie
 
FarbrorGnur's Avatar
 
Join Date: Aug 2011
Posts: 47
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:

In game:

Texture file:
FarbrorGnur is offline   you may: quote & reply,
Old 03-13-2012, 05:59 PM   #4
Psyk0Sith
3D Tech Support
 
Psyk0Sith's Avatar
 
Join Date: Jul 2002
Location: Adanac
Posts: 2,073
Veteran Modder Helpful! 
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.


Last edited by Psyk0Sith; 03-13-2012 at 06:14 PM. Reason: Added PS filter
Psyk0Sith is offline   you may: quote & reply,
Old 03-14-2012, 02:50 PM   #5
FarbrorGnur
Rookie
 
FarbrorGnur's Avatar
 
Join Date: Aug 2011
Posts: 47
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 is offline   you may: quote & reply,
Old 03-14-2012, 03:50 PM   #6
FarbrorGnur
Rookie
 
FarbrorGnur's Avatar
 
Join Date: Aug 2011
Posts: 47
Might be assimilate isn't guilty of it though.

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



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.
FarbrorGnur is offline   you may: quote & reply,
Old 03-14-2012, 11:32 PM   #7
Psyk0Sith
3D Tech Support
 
Psyk0Sith's Avatar
 
Join Date: Jul 2002
Location: Adanac
Posts: 2,073
Veteran Modder Helpful! 
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.

Psyk0Sith is offline   you may: quote & reply,
Old 03-15-2012, 11:17 AM   #8
FarbrorGnur
Rookie
 
FarbrorGnur's Avatar
 
Join Date: Aug 2011
Posts: 47
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!

FarbrorGnur is offline   you may: quote & reply,
Old 03-15-2012, 11:55 AM   #9
Psyk0Sith
3D Tech Support
 
Psyk0Sith's Avatar
 
Join Date: Jul 2002
Location: Adanac
Posts: 2,073
Veteran Modder Helpful! 
Great, glad it worked.

Psyk0Sith is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Modeling > The final texturing - run into a little bump

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:44 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.