Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 9:10 am
All times are UTC + 0
Building clipping problem...
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Aug 11, 2015 6:18 am    Post subject:  Building clipping problem... Reply with quote  Mark this post and the followings unread

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.

Ideas?



clip1.jpg
 Description:
 Filesize:  297.3 KB
 Viewed:  1725 Time(s)

clip1.jpg



clip2.jpg
 Description:
 Filesize:  350.75 KB
 Viewed:  1725 Time(s)

clip2.jpg



Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Aug 11, 2015 7:51 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Aug 11, 2015 9:02 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Aug 11, 2015 9:14 am    Post subject: Reply with quote  Mark this post and the followings unread

Using ZShapePointMove= can fix clipping errors like this too.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Aug 11, 2015 10:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Mig Eater wrote:
Using ZShapePointMove= can fix clipping errors like this too.

How exactly does this work? I couldn't make heads or tails of it and couldn't find a writeup?

NormalZAdjust=-10 seems to have fixed it though...



zadjust.jpg
 Description:
 Filesize:  330.74 KB
 Viewed:  1676 Time(s)

zadjust.jpg



Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Aug 11, 2015 2:02 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Aug 11, 2015 9:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

That's a super vague description...  does it move the building?

How does it work?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Tue Aug 11, 2015 11:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

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."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Aug 12, 2015 2:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok explain this to me... the large house has 3 states, undamaged, damaged, very damaged.

Undamaged shows no clipping (no zadjust used) while both with damage get clipped...

Before you suggest it's the map, I moved them and same thing.



oddclip.jpg
 Description:
 Filesize:  297.41 KB
 Viewed:  1598 Time(s)

oddclip.jpg



Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Wed Aug 12, 2015 6:52 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.2354s ][ Queries: 17 (0.0146s) ][ Debug on ]