3rd Party Models/Media Chat / UV Mapping - To Same Location - How To?

Author
Message
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 30th Oct 2016 01:15
Hi all.

I have been looking for info on unwrapping models that require multiple faces mapped to the same area - like with buildings.

For example, if you use the mirror modifier, blender overlays the UV's in the same location. I was wondering if there was a way to do that without using the mirror modifier.

I have been working on a model of a fairly large non-square structure that has 6 wedge shape vents on the top, and for my purposes they would be fine with the exact same texture. Now I can manually lay them on top of each other easily on the UV map, but when you create a Ambient Occlusion it comes out very dark because Blender is of course creating the AO in the same position for all 6 vents.

The same can be said for the walls.

I have been googling for few hours now but can't seam to find anything useful, so can someone point me to some relevant information or a tutorial.

Thanks for any input.

Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 30th Oct 2016 02:01 Edited at: 30th Oct 2016 02:05
Sorry, I can't help you, but thanks for asking this question because it is an issue I've run across so many times while trying to make a model as efficient as possible. stacking the UVs on top of each other on the same texture messes with some lightmappers (GG the last time I tried it, several betas ago, and definitely UE4) as well as well as baking AO like you said, in my experience. If I'm missing something, I hope someone can "enlighten" us (pun intended). My only solution so far has been to make larger textures, using the same texture multiple times, thus making it much less efficient.


EDIT: I have tried tiling the texture map (I use Blender) but it seems to achieve the same results as stacking them on top of one another.
Desktop: i7 4770@3.4Ghz, 12GB RAM, Win 10/64, GeForce GTX 1080, 1TB SSD, 1TB HDD; Laptop: i7 4800MQ@2.7Ghz, 16GB RAM, Win 10/64, GeForce GTX870M , 1TB SSD.
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 30th Oct 2016 08:35 Edited at: 30th Oct 2016 08:39
@Jerry Tremble, lol that might be a good google search term - didn't think of 'stacking', so will go off and try some more googling!

Thanks for the input. I am glad that someone else has wondered about this as I was kinda thinking I was just being a total noob!

When you use the mirror modifier the UV for the two halves are stacked (and mirrored) in the same location. So somehow blender knows that they are stacked and only renders the AO once. So I was hoping there is a way to tell blender that you want, like 3 or 4 faces mapped (stacked) to the same area on the UV, and only render the AO once instead of 3 or 4 times. This of course gives the ability to have more detail on the model.

I have tried mapping them to same location manually, which is not that difficult (can be time consuming though lol) and seams to create no problems in Game Guru except for light-mapping as you mentioned, however I have to use something like Shader Map to create the AO, but Blender gives a far better AO in my experience.

Now as you can see I have high-jacked your term 'stacked' which for the life of me I did not think of for my description, so I will go for another google hunt now.

Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 30th Oct 2016 09:10
The reason mirror modifier treats the two UV areas as the same is be cause they are the same, not because they're stacked. Applying the mirror modifier assigns the two areas to the sane UV layer. I'm not sure if there is a way to assign two faces to a single UV manually, but if you find out ud live to know.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 30th Oct 2016 12:12
Quote: "I have tried mapping them to same location manually, which is not that difficult (can be time consuming though lol) and seams to create no problems in Game Guru except for light-mapping as you mentioned,"


I have never used the mirror modifier for uv mapping, I have always mapped them manually myself, lol. It is indeed time consuming! Some models made by others don't seem to have issues with GG's lightmapper but mine always seem to. In UE4, though, at least the one's I've tried, always generate an "overlapping UV" error, and strange shadows occur.
Desktop: i7 4770@3.4Ghz, 12GB RAM, Win 10/64, GeForce GTX 1080, 1TB SSD, 1TB HDD; Laptop: i7 4800MQ@2.7Ghz, 16GB RAM, Win 10/64, GeForce GTX870M , 1TB SSD.
PM
Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 30th Oct 2016 15:46
You could try offsetting the UV elements. I tested this on 2 boxes, one with all six sides occupying the same UV space, and one with all the sides offset from each other, but I found that both lightmapped just fine. If you're getting a lightmapping error, then it's worth a try. I've attached a couple of images to show what I mean.

Attachments

Login to view attachments
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 30th Oct 2016 21:00
Thanks, Gtox! It's been a while since I tried it, but I've tried both methods before; Your first image is what I meany by stacking the UVs and the second is what I meant by "tiling" above. I really didn't know how to explain it. I was pretty sure I had the same issues but I will trust your advice and try it again at some point, when I have time to get back into modeling. You are by far much more knowledgeable and talented than I!
Desktop: i7 4770@3.4Ghz, 12GB RAM, Win 10/64, GeForce GTX 1080, 1TB SSD, 1TB HDD; Laptop: i7 4800MQ@2.7Ghz, 16GB RAM, Win 10/64, GeForce GTX870M , 1TB SSD.
PM
wizard of id
3D Media Maker
18
Years of Service
User Offline
Joined: 16th Jan 2006
Playing: CSGO
Posted: 31st Oct 2016 02:06
You could always try unique UV's slightly more complex and involved but not having any problems with using the new method.
Win7 pro, Intel 2500K @3.7ghz 660GTX 8gig ram 16tb HDD
Gtox
3D Media Maker
10
Years of Service
User Offline
Joined: 5th Jun 2014
Location: South Africa
Posted: 31st Oct 2016 04:39
@Jerry Tremble - since I couldn't recreate the lightmapping error and therefore don't know if offsetting the UVs works, you shouldn't trust my advice
wizard of id
3D Media Maker
18
Years of Service
User Offline
Joined: 16th Jan 2006
Playing: CSGO
Posted: 31st Oct 2016 04:44
Quote: "since I couldn't recreate the lightmapping error"
I some times think it's the lightmapper it self
Win7 pro, Intel 2500K @3.7ghz 660GTX 8gig ram 16tb HDD
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 14th Nov 2016 10:18
Quote: "I some times think it's the lightmapper it self"

The main problems I find with light-mapping is that while the lighting can be really nice the end result is ruined, because sometimes the models smoothing is messed up, and any continuous rotational animations are broken.

Till now I tell myself I am doing something wrong with my models - but since I don't consider myself an expert in this area by any means, I really don't know what causes it.

Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Nov 2016 10:33
Quote: " and any continuous rotational animations are broken."


With animated models, i make them dynamic, and if i don't want them to move when walked into or "gravity" takes them, immobile is set to 1. That usually fixes most light mapping issue on animated models for me.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.

Login to post a reply

Server time is: 2024-11-22 03:50:57
Your offset time is: 2024-11-22 03:50:57