Aller au contenu

Photo

Another model lightmap problem (honest!)


  • Veuillez vous connecter pour répondre
28 réponses à ce sujet

#1
FergusM

FergusM
  • Members
  • 460 messages
The models

prp_carpetr_l_0
prp_carpetg_l_0
prp_carpetb_l_0

which are basically the same models but retextured, all have this weird dark splotch in the corner when they are lightmapped. Here's three instances of the problem in different places, same splotch each time.

imgur.com/kdNsD.jpg

If anyone could fix these up, I'd greatly appreciate it.

#2
tmp7704

tmp7704
  • Members
  • 11 156 messages
i've added the fixed versions to the project, they're in the today's upload.

This one was pretty weird -- there isn't anything wrong with the lightmap per se, and the issue shows if the mapped area was too "thin" along the V edge of UV map. The original polygons took ~25% of the available area, scaling it up to ~40% resolved the issue. Even weirder, the modified props still show up correct in the existing levels, unless they are scaled further up. Because of this i did them as straight replacements rather than additional fixed files.

I suspect the issue may be actually caused by the lightmaps for these props being scaled down to some minuscule size for the final pass where they're combined into level lightmaps, to the point where they become easily affected by nearby pixels of other lightmaps. In any case, hopefully this helps.

Modifié par tmp7704, 20 octobre 2010 - 07:20 .


#3
FergusM

FergusM
  • Members
  • 460 messages
Thanks as always tmp.

#4
Karma

Karma
  • Members
  • 391 messages
hro_dni_wr_bdl_0 has issues too... if you want to add that one to your project (and I would much apppreciate it).



I've been putting your updated models in packages/core/override, and I've noticed that if the model appears in an OC level, the model appears dark in game. It makes sense, but how do I fix it? Is there another folder I should be putting these models in?

#5
tmp7704

tmp7704
  • Members
  • 11 156 messages
I'm not getting issue with darker models in original game myself. Please try to download the most recent project version and override all older replacements, though, then see if it helps -- some of the models had UV maps that were incompatible with the original ones, that got fixed.

I'll try to have look at this newest broken model later.

#6
tmp7704

tmp7704
  • Members
  • 11 156 messages
Added fixed verion of hro_dni_wr_bdl and hro_dni_wr_bdr meshes. Not sure if spotted all glitches, if not then let me know.

#7
FergusM

FergusM
  • Members
  • 460 messages
But wait, there's more! :P



ftr_bk_rf_0 has a little black spot on two of the little 'pillars'. hro_denfdrakonvtop_1 has a few black triangles on the mountains.

#8
FergusM

FergusM
  • Members
  • 460 messages
Bump.

#9
tmp7704

tmp7704
  • Members
  • 11 156 messages
yup, sorry been a bit busy here so that's on the radar but probably day-two off before i can get to it.

#10
FergusM

FergusM
  • Members
  • 460 messages
That's cool, got another one though. fne_twrdst_03

#11
FergusM

FergusM
  • Members
  • 460 messages
Audible sigh.



fhe_roofpl_1

fhe_roofplpk_0

prp_fcicanopy02

#12
FergusM

FergusM
  • Members
  • 460 messages
Also,

fne_slmbdg_01

has a bunch of little black spots along one of the 'sidewalks'.

So all up, that's

ftr_bk_rf_0 (on the little towers)
hro_denfdrakonvtop_1 (on the mountains)
fne_twrdst_03 (near the top on one side)
prp_fcicanopy02 (about halfway down on the top of the canvas)
fhe_roofplpk_0 (various points on the roof tiles)
fhe_roofpl_1 (various points on the roof tiles)
fne_slmbdg_01 (along sidebarriers/gutters)

You're a hero.

Modifié par FergusM, 28 octobre 2010 - 04:11 .


#13
tmp7704

tmp7704
  • Members
  • 11 156 messages
Fixing what i can, but can't see anything wrong with the fne_slmbdg_01 model (well, anything wrong that isn't result of dithering/inaccuracy/texure resolution) Is this for sure the model that's causing issues?

edit: added the other ones to project file.

Modifié par tmp7704, 28 octobre 2010 - 10:29 .


#14
FergusM

FergusM
  • Members
  • 460 messages
Here's a screenshot showing the issue. http://imgur.com/L5owv.jpg

#15
ChewyGumball

ChewyGumball
  • Members
  • 282 messages
That looks like the lightmapper is being bad. If the lightmap was bad a whole polygon would be black.

#16
tmp7704

tmp7704
  • Members
  • 11 156 messages
Yeah, that's not issue with the uvmap, it's a result of lightmapper bleeding some black pixels into the edges of individual areas as it calculates them. You can see the same thing with the fhe_roof* models. Since the parts are textured with what's pretty much 2-3 pixels, every faulty pixel has large impact on end effect.

It could be reduced to a degree by rendering larger lightmaps, but it doesn't seem like switches which control that have any impact. Maybe i'm just doing it wrong, though.

Modifié par tmp7704, 29 octobre 2010 - 09:34 .


#17
FergusM

FergusM
  • Members
  • 460 messages
Okay, thanks for the info, and for the fixes.

#18
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
Does this mean that the "blue blob" issue with tve_pil_04_0 is also a lightmapper glitch/issue rather than a problem with the model itself?


Posted Image

#19
TimelordDC

TimelordDC
  • Members
  • 923 messages
lol. I was just about to post that, Amstrad. I think it's definitely a light map problem.

Posted Image

#20
FergusM

FergusM
  • Members
  • 460 messages
Yeah, I've seen a lot of those blobs too. I was kinda just going to write them off, but I'd be interested to know if there's a way to fix those also.

Some examples of that:
-fne_smwall_01 (near the top of the arch)
-fhe_slum05_0 (on the end of one of the beams just under the lower end of the thatch roof)

Modifié par FergusM, 30 octobre 2010 - 01:18 .


#21
ChewyGumball

ChewyGumball
  • Members
  • 282 messages
The only way I can think of fixing those is to increase the size of the rendered lightmap. Its in the meta file for the model if you can find it. The lightmap only defines where the polygons are in the texture so its possible the polygon doesn't have enough area to sufficiently lightmap correctly.

#22
tmp7704

tmp7704
  • Members
  • 11 156 messages
For the fhe_slum05 model would chalk that up to the lightmap resolution -- these beam bits are textured literally with single pixels.

The other two, the pillar map was broken and the wall map didn't show anything wrong, but merging couple of polygons seems to have helped to get rid of the problem.

#23
FergusM

FergusM
  • Members
  • 460 messages
Okay, I think this is the last one I need, prp_stagestair. Can anything be done for it? http://i51.tinypic.com/34drbps.jpg

EDIT: Or, last two :P fne_dtldst_01

Modifié par FergusM, 02 novembre 2010 - 09:58 .


#24
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
There's also some weird black edging on:
prp_tentcamping_01
prp_cline03
fve_scaff

It seems that these might be similar to the black spotting issue above, but I thought I'd mention them anyway.  prp_stagestair would definitely be fantastic to have a fix for - I've used it in several levels and would love to be rid of those horrible black marks. 

As always, thank you very much for the effort put into fixing these models.  Your work is very much appreciated!

#25
tmp7704

tmp7704
  • Members
  • 11 156 messages
fixed the stagestair and dtldst meshes. The other three are down to lightmap resolution i'm afraid -- seem to be calculated as 64x64 pixel textures by default and well, turns out that's not detailed enough here and there.