• Welcome to SC4 Devotion Forum Archives.

Matching a texture

Started by MTT9, January 08, 2010, 01:20:42 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Lowkee33

#20
I have a similar question.  In the process of making Chris Adam's Gravel Paths draggable I was trying to figure out how to make good street-lot transitions.  I decided to make an off-set prop of the intersection:

To make this I followed Glenni's Alpha Tutorial.  The grays match up pretty well, but the dirt is far too bright.  I am new to batting.  I played around a little with the color map of the alpha and this seems like it could get close, but would be a ton of guess and check for me.  Any ideas?  Thanks.

Also, perhaps I am thinking wrong about the whole thing.  I would rather edit all the FSH in the model than make a TE lot, but I imagine the off-set prop idea is going to have issues on slopes (but that I can test).  I also raised the model by .05 meters to get above the street texture.  Should I bring it down a little?

Then there is the fact that this doesn't have to be a 16x16 model.  I made a rectangle the "proper" size, but the texture gets distorted on it.  Is there a way to make the texture ignore the size of the model?    

j-dub

I thought what you guys need to do in order to (closely) match the textures in game is that you actually have to change the values in Photoshop or something similar with the brightness/contrast, and/or color hue saturation. All I remember is someone saying subtract the value by 3 but not much more. However, basically your stuck having to experiment until you get the value right.

Lowkee33

Ah yes, editing the texture before I throw it into BAT makes a whole lot more sense.

cogeo

@emmotic: Don't understand, if the plane will be at ground level, then why not use the lot texture directly? I mean why this needs to be a model?

@Lowkee: You can try doing this without using gmax/BAT. Instead you can use a 1-Z/R model (a 16x16m plane) using that texture (of course the model must be offset by 16m). Take a look at my PedMall-Compatible Trasnit Pack to see such examples. There are such planar props, using directly the very same textures as the network puzzle pieces, matching their look exactly (using the network textures as lot textures instead, would require a painful brightness/contrast adjustment).

Lowkee33

#24
These are RKT3?  Could you explain this to me?  7 reps is not something I understand.  I would need all four rotations for the intersection.

BTW, I did some math and reduced the model and texture to the proper size.  For the slope issue I guess the best I can do is make the Occupant Size very small and have it be placed as close as possible to the edge of the lot.

:)...And, for making the smallest FSH possible, should I center the model on the axis?

cogeo

RKT3 is like RKT0 or RKT1, only it references models with 5-Z, 1-R views. You can use RKT0 (1-Z/R) instead; there are such models in the pack too, for the "old" NAM versions (not in the same plugin), so check those ones. And of course it will work with all four rotations, you only need to add the kSC4BuildingModelRotationProperty property. For details, take a look at my SC4 Automata As Props tutorial, it's about automata models, but it applies to most other 1-Z/R models too.

I don't think there's any need to make the model and texture smaller, this will make the whole thing harder, I'm afraid. Now about slopes, I really can't think of any solution that would make it looking right for all (or most) cases. Even if you make the Occupant Size very small and set the Orient to Slope property, the model will be conforming to the slope of the tile it is in, not the adjacent one. Maybe if you move the prop box to the edge of the lot (as far as it can go) it might be better, but I'm not sure.

And forgot to mention, shadows (from other models, like poles or subways) cast on such models look OK, unlike shadows cast on BAT-exported models.

Lowkee33

Okay, I get it.  I just had to figure out how to go from a texture to an offset-able model.    Looking through NAM I found the model you used and saw that the FSH assigned to it were just the MIPs.  I did a simple override with the Instances and in game it works (just noticeable under a brown box).  I suppose the easiest thing to do would be to copy/paste those S3Ds out of NAM and give them my own Instances.

Even the 7 rep thing makes sense to me (one type, one group, and five zooms) now.  Thanks Cogeo, this method is much more preferable than photoshop guess and check.

I believe the shadow issue you refer to occurs when the LOD of the model is above .3 meters.  (Casting Shadows on Props.  I came across a model recently with this issue where the shape of a non-shadowed cube was very visible. 

Lowkee33

More questions down the line.  Can these models be rotated in LE?  I am trying to make some corner lots, where the orientation is not north/south for the driveway.  Should I make a new model with the texture rotated?

cogeo

The model is a prop, isn't it? Can't it simply be rotated in LE, just like all other props? Or I don't understand the question maybe?

Lowkee33

No worries.  It can be rotated in LE, but since model the appears the same in all rotations, I don't know if it would be rotated in-game.  I never tried it, but simply made new s3ds and rotated using your program.

cogeo

Did you add the kSC4BuildingModelRotationProperty property? This makes models with 1 rotation view (RKT0 or RKT3) rotating in-game (otherwise they display the same side in all rotations, as you mentioned).

Lowkee33

Quote from: cogeo on April 26, 2011, 02:16:22 PM
Did you add the kSC4BuildingModelRotationProperty property? This makes models with 1 rotation view (RKT0 or RKT3) rotating in-game (otherwise they display the same side in all rotations, as you mentioned).

The driveways work great in-game.  Image Link.  All of the lots in the picture are 1x3.  There are 2 house lots (stage 2) with roads needed in the front.  The 3 house lots are stage 3, and need corner roads.  For the front roads, the driveway works as you said it would.  The corner pieces need the driveway to be in two directions (or at least not south facing).  Rotating in LE does nothing, and I can only assume the same for in-game.  The models always face south, I guess.  To fix this I now have three driveway models using the same texture, the original, and for the East side, West side corner lots.  I didn't make a north facing one (though this is an option for LotConfigPropertyRequiredRoads?).