• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Making Models for Transit Networks: Some General Specifications

Started by Tarkus, February 22, 2008, 05:33:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mtg

QuoteAnd maybe finish the curve

Ahh yes, I still have to do part 2 (see page 20)

mtg

Quotedo you think you could do the second tile?

That will be just elevating the next EMIS and just chance the IID in the RUL wouldn't it?


mtg

Well I managed to get the second tile in, it took me a while to realize that I had to flip the RHW2 turn instead of rotating it  ()testing()
I'm trying the diagonals now I wrote this code for the extension of the right turn (I think it's right but it doesn't work  ()what())

first the image of what did went right  ()stsfd()


second the: "HELP" image  ;)

mtg


Blue Lightning

#425
Hmm... try this (for the top right one)

0x5DE0C500,0,0,0x5E000A00,2,0=0x5DE0C500,0,0,0x5DE1A500,1,0
0x5DE0C500,0,0,0x5E000A00,3,1=0x5DE0C500,0,0,0x5DE1A500,1,0

HEMISTrans0C S to E, diagonal RHW-2 W to N = HEMISTrans0C S to E, HEMISDiagonal1A W to N

And the bottom left

0x5E000A00,3,0,0x5DE1C500,0,1=0x5DE0A500,0,0,0x5DE1C500,0,1
0x5E000A00,2,1,0x5DE1C500,0,1=0x5DE0A500,0,0,0x5DE1C500,0,1

Diagonal RHW-2 E to N, HEMISTrans1C S to W = HEMISDiagonal0A E to N, HEMISTrans1C S to W

The second line for both code blocks are to catch any mirrored rotations of the diagonal RHW-2.

That should get it for all rotations. Now once we get this down we can start moving along the diagonal.



Also known as Wahrheit

Occasionally lurks.

RHW Project

mtg

Thanks vince, I'll put in that code when I get homethis afternoon!

mtg

I see where I went wrong, I just don't know why I went wrong

My code (the wrong one)
Started whit the piece on the same rotation as it ended in the last code,
Your code (the one that does work  :thumbsup:)
Strats with the piece at rotation zero.
why is that? 

mtg

In my logic this would be the following code, but it isn't  ()what()

0x5de0c500,0,0,0x5e000a00,2,0=0x5de0c500,0,0,0x5de1a500,1,0
0x5de0c500,0,0,0x5e000a00,3,1=0x5de0c500,0,0,0x5de1a500,1,0
0x5de1a500,1,0,0x5e000a00,0,0=0x5de1a500,1,0,0x5de1c500,1,0

mtg

Ok, this is how far I got (thanks Vince! :)) I tried about very possible combination on rotation and flip there is for the next piece, but with no success   :'(



please can someone give me another small (or big tutorial) on rotation and flip

Blue Lightning

#430
Rotation: Rotation 0 is where the model/texture is currently as you see it in reader.
Rotation 1 rotates it once clockwise. So for instance, if we have a diagonal that goes from S to E, rotation 1 would make it W to S.
Rotation 2 is just 180 degrees from 0.
Rotation 3 is the inverse of 1 from 0.

Flip applies after the rotation is done, and flips horizontally
so <- flipped would be ->
and X\ flipped would be /X

The key in coding for diagonals is to see all situations. Take my code for bottom left example from above.

A RHW-2 diagonal at rotation 0 is /X
I need it to go E to N, which is \X
That would be 1 counterclockwise rotation, so it would be rotation 3 flip 0
However, if we rotate 180: X/
Then flip horizontally: \X
Results in rotation 2, flip 1.

The best way to visualize overrides is with a good ol pencil and paper, drawing a rough rep of the two textures/models in rotation 0. Then, draw them side by side (L-R). Then rotate them in your head until they line up or are a mirror (flip) of what you want. The flip can be one, none, or both, you'll just flip the one(s) that needs to be flipped. Take note of the rotation and flip, and code.

And don't forget that sometimes you just need to work backwards. That means drawing it as you want it and then figuring rotation and flip, and also writing code "backwards" like I did with my second bit of code.

EDIT: And also, remember the code works in all rotations of the same situation.
Also known as Wahrheit

Occasionally lurks.

RHW Project

mtg

Thanks Vince!  I'll have a good look at this tomorrow, and put it in practice!

Jonathan

You also have to remember that the RULs are left to right, no matter what the texture is , the RUL is always looking for a texture to the right of another texture.

(I don't know the RHW IIDs off by heart and don't have access to the files, so I can't check your RULs, and if the following you already know, I'm sorry)

The texture on the left will always be the HEMIS
The texture on the right will always be the RHW-2
(maybe in a a rare circumstance this is will not be the case though)
0xTheLeftTexture,0,0,0xTheRightTexture,0,0=0xTheReplacingLeftTexture,0,0,0xTheReplacingRightTexture,0,0

The Left texture must always have (this is in override networks only btw)the road touching the right side of the tile. The Right texture must always have the road touching the left side of the tile.


In your situation you are looking for situations which match this:

Because the diagonal tiles are symmetrical it will mean there will be more than 2 lines of RULs, even though it looks like only 2 lines will be needed.


For the lines I find complicated, I put the texture in paint (by just doing a print screen from the reader, all that is needed is a rough guide) Then clone and rotation by 90 degrees clockwise 3 times, to get all 4 rotations.
Then take each rotation one at a time, clone it and then flip it horizontally. That gives me all the possible rotations/flips of the texture.
Which I can the copy and match to get all the possible combinations, that are possible in game and therefore get the RULs.

This is an example of what I would to find the possible RULs for this texture(except I add the text and coloured rings just to show you exactly, normal it would be much less neater and just a quick job to work out the more complicated RULs, as doing that for each RUL would take for ever so after using that for a while you get used to it and can do it in your head):


Pretty much what Vince said, except he can do it in his head :)

Jonathan




Blue Lightning

#433
Sometimes, the texture to be overridden is on the left too ;) (and some cases, both)

And yes, I often just do the entire process in my head :P only the ones that stymie me are put down visually (or when I was new at this)
Also known as Wahrheit

Occasionally lurks.

RHW Project

mtg


mtg



mtg

QuoteUnderpasses now? Cheesy

Bring it on!  ;D

I must say that this is more fun than I thought it would be! and ferry addictive  :D

mtg

ok for a ortho underpass I need a model of the underpass, lets say road. than I have write a override where it says
HEMISortho next to rhw2 over road  = HEMISortho next to HEMIS over road ??  or am I thinking to simpel now  :)

Korot

Nope, your not. Now you just have to find the IID of the RHW-2xRoad intersection. And of course make the proper model. (raise deck from E-MIS over road).

Regards,
Korot