Posted: Tue Aug 11, 2015 6:18 am Post subject:
Building clipping problem...
So I've been working on shrinking the CASANF* victorian houses from YR and I'm having a problem (aside from the remap colours being screwed).
I converted the individual .pcx's to .shp with XCC Mixer, then touched them up with SHP Builder, then back and forth a few more times cleaning up the aliasing/blending artifacts. I would be onto the remap pixels by now except I'm having a strange problem with clipping of the image frames, and I can't figure out what's causing it.
I have verified that the shadow frames are using the background colour wherever there is no shadow by first making them neon green for Mixer to create, then filling with SHP Builder, in some cases I left the shadow colour blue or green. I also used the "remove useless shadow pixels" tool everytime I made changes.
I had one instance where a shadow frame was showing non-background colours in the background area in Mixer's view, yet SHP Builder would fill the entire area, so I'm not sure if this was a rendering error from the compression or what. It was only on one shadow frame on 2 of the 3 houses. The rubble frames work perfectly as far as I can tell, no clipping.
Anyway, take a look at the screenshots below, you can see the bottom corner edge of the building is being clipped in a strange way, and you can see where the shadow stops. That gap between the shadow and the visible portion of the building are the missing pixels.
Set in art.ini
NormalZAdjust=-5
This should be already enough, though maybe -10 is necessary.
Is the foundation set correct? A big building on a too small foundation, where the visible part is going south of the cell border, can be clipped too.
In this case the game renders parts of the building below the ground plane. NormalZAdjust or using a bigger foundation where it completely fits inside can fix this. _________________ SHP Artist of Twisted Insurrection: Nod buildings
No the small houses are 1x2 and shoved to the top corner, so the left cell is only half occupied.
I had a weird clipping issue on the larger 2x2 (building is more centered though) where half was being cutoff. Once I changed building's Height= to 4 everything went back to normal. Height=3 on the smaller houses made no difference. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
With no experience in using it myself, it sounds like it moves the Z-axis of the building up or down, in effect making it overlay or underlay other images. In your case you'd want it 5,5 (x,y?) or so. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
The game uses a file called buildingz.shp (in conquer.mix) to assign depth information to buildings. It aligns itself to the lowest non-transparent pixel in the shp file. However sometimes it isn't aligned correctly & parts of your building will not get any depth information & you get clipping errors. You can use ZShapePointMove= to override the automatic alignment tho & fix such errors, look through the Art ini for examples of how it's used. _________________
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