Posted: Sat Dec 24, 2016 1:43 pm Post subject:
ZShape help plz
So as you can tell I'm working with a big building, it stays within the confines of the 6x4 foundation, although the right edge gets close, but I just can't seem to figure out the right ZShape fix for it...
Besides what are shown I've randomly tried what I understand to be the method to follow, but using larger numbers sometimes makes it worse, and I'm just thoroughly confused now.
For a building like this i would use BibShape= with the same image as the building (since BibShape renders quite reliable the bottom part) and NormalZAdjust-25
IIRC a different SHP compression can help as well on such big/high buildings.
Since ZShapePointMove has X,Y as pixel offset values, i wouldn't move X at all and only try values like 0,-50 or 0,50 _________________ SHP Artist of Twisted Insurrection: Nod buildings
NormalZAdjust does nothing for the building, as I have it at least, I tried -90 to no effect, shows the same as "none" above.
Lin Kuei Ominae wrote:
For a building like this i would use BibShape= with the same image as the building (since BibShape renders quite reliable the bottom part) and NormalZAdjust-25
I had to do this bib trick long ago on my old Soviet Airbase, but never a solid building or one this large...
Lin Kuei Ominae wrote:
IIRC a different SHP compression can help as well on such big/high buildings.
Sooo which compression would you recommend? Obviously my art.ini settings do have an effect.
Lin Kuei Ominae wrote:
Since ZShapePointMove has X,Y as pixel offset values, i wouldn't move X at all and only try values like 0,-50 or 0,50
I tried numbers along those lines despite disagreeing with my understanding, and it is worse than none.
HG: Foundation outline shows correctly, even the height is correct, as is occupyheight.
Might I suggest giving your building a larger ZOverlay than the default? It may alleviate your issue since the default isn't meant for such large buildings; Be prepared for hard work though. It's most likely still possible with NormalZAdjust like LKO said, so play around with the numbers; Be drastic, anywhere from -250 to -10 and see where it gets you.
Example tag:
Art(md).ini :: [BuildingType] ► SpecialZOverlay=buildingzcustom.sha _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
To fix this problem save the shp with compression type 1 (IIRC it's been awhile, if not then try 3). You can change the compression type in SHP Builder's Preference settings. Doing this can causes overlapping glitches tho with objects being rendered on top or under the building incorrectly. Ares fixed this glitch but you're using RA2 so this method might not be suitable. _________________
Then you are free to adjust the upperhalf via ZAdjust and the lower half works fine since it isn't that huge anymore. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I'm just about to make a bibshape for it, which seems more logical as the engine wouldn't have to use low compression or constantly refresh the animation.... _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
Bib seems to solve two problems at once... after some experimenting
I have the full building shadow replicated in the bib art, and therefore the choppy shadow problem for large buildings goes away! I did a bunch of scroll tests and was not able to cause the straking at all!
I tested having the shadow entirely in the bib, but it seems to get cut off entirely straight (at around 1/3) without the straking you normally see. I wasn't sure the effect of overlapping shadows would be, but it appears to be a backup for the shadow glitch, so that regardless which one glitches, the other probably doesn't, or glitches differently.
So what would I need to do exactly, add more at the top of the default ZOverlay?
And what exactly is the hard work?
You would have to make the ZOverlay at least scaled to the size of your largest building, the hard work part being that you'd have to make sure every line is scaled properly too and not using a mix of colors. So you'd have to move/copy or add pixels with every line manually.
A lot of unnecessary work if you've got a workaround like the bibshape you're using. Even better if it fixed the shadows. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum