Heightproblem while placing custom made objetcs

WrpTool island creator utility

Moderators: Lone Wolf, Snake Man

Jens198

Heightproblem while placing custom made objetcs

Post by Jens198 » 2004-09-14 16:48:29

Hi folks,

I try to place custommade objects (railway tracks and a railwaybridge) on my map using wrptool 0.950. Now I got the following problem:

In Wrptool I set a certain Y value for the height of the object (in this case 6.5 for the center bridge), take a short look at the preview --> everythings ok

Image

--> pbo the island, go ingame --> I get this result:

Image

No matter what value I set for the height the bridge is always under water. The same is this the last railroadtrack on the left side (notice that it's a little bit below the last track farther to the left).
The ground level in this area is not the same in different spots. It goes from 5.2 (fields on the left side) down to -2.5 in the middle of the river.

Any ideas what I'm doing wrong here?

Thanks a lot in advance.

Jens

User avatar
shinRaiden
Captain
Posts: 176
Joined: 2004-02-27 18:29:53

Re: Heightproblem while placing custom made objetc

Post by shinRaiden » 2004-09-14 17:43:40

The problem is that there are quircks with how OFP handles bridges. This is kind of preliminary, but it's the explanation of what you need to properly build OFP compatible bridges.

From a posting by Midship:
...
bridges are from class road but behave like class house, concerning 'land contact'. bridges cannot be lifted higher then 1/2 of their overall height extend, relative to their origin, but be burried to ground, until they become invisible. The overall model height for instance, one can get from the nice ODOL Explorer. From the highest LOD resolution, MinPos and MaxPos are giving this value. For the most_stred30 model, these are -20.756 m and 20.755 m, which as said, allows the bridge to be shifted upwards for not more then about 20.755 m, relative to the O2 origin.
Also, from the ODOL Explorer one gets an offset of 12.983 m for the Roadway/Memory LOD, on how much the road is above the surface (actually the roadway levitates). Therefore, the most_stred30 road strip, in total cannot be higher then about 33 m above the terrain. From this, one may get a rule, to calculate bridges in general. Y = Ty - Ly + Ry

Y: the height value to be put in the OPRW wrp matrix (perhaps Dschulle may see if the Y value from the object inspector is the same, then from the objects O2 origins. To be on the safe reference side, here I introduced the terrain height).
Ty: the terrain level, where the bridge pole (O2 XZ origin coordinate) is.
Ly: the offset from the Roadway/Memory LOD, away from the origin line.
Ry: the desired road strip level (constraint: Ry<Ly+My/2 (My: overall model height).

If one makes a road, then from the last segment, the bridge pole coordinate and the height from at least one open road corner Memory vertex are known (also the bridge parameters from the XML road list (ODOL Explorer). This allows to place and connect a bridge segment automatically to the previous road segment. If the first bridge segment is calculated and for the reason that bridges are straight, the following bridge segments will keep level automatically. As seen, if one appends another road segment at the end of a bridge, it's properly connected, but in dependence of the terrain slope, somewhat above or below the bridge end, the only work one has to do finally with the Elevation Tool and on behalf of the rebuild function.
What you probably need to do is make your bridge piers taller so they don't 'float'.

User avatar
shinRaiden
Captain
Posts: 176
Joined: 2004-02-27 18:29:53

Re: Heightproblem while placing custom made objetc

Post by shinRaiden » 2004-09-14 17:50:28

Looking at the screenshots though I think you may be setting yourself up for a little trouble.
  • Your bridge placement angle is not a multiple of 90deg. This makes it very difficult to control skewing on detail level changes.
  • Your river bed is / instead of _/. This also impacts your ability to control the absolute position of the bridge at anything other than very_low.
  • It doesn't appear that the riverbank cell elevation points on all four corners of the bridge span are identical in height. OFP's fractalization will cause you grief there too.

Jens198

Re: Heightproblem while placing custom made objetc

Post by Jens198 » 2004-09-14 20:02:21

:D ;D :D ;D :D ;D :D ;D :D ;D :) :)

Image

User avatar
shinRaiden
Captain
Posts: 176
Joined: 2004-02-27 18:29:53

Re: Heightproblem while placing custom made objetc

Post by shinRaiden » 2004-09-15 05:48:45

Okay, so which part was the problem?

Dschulle
Captain
Posts: 162
Joined: 2003-05-18 02:00:14

Re: Heightproblem while placing custom made objetc

Post by Dschulle » 2004-09-15 06:55:16

Did you try to change detail level ?
Does the KI like the bridge?

User avatar
Arne
Newbie
Posts: 6
Joined: 2004-09-15 17:25:21

Re: Heightproblem while placing custom made objetc

Post by Arne » 2004-09-15 12:31:05

As I constructed the bridge, I'll answer here. I set the level where the railroad tracks on the bridge are to Y=0. Thought it would make placement easier for Jens, but I was wrong. I raised all LODs 15m.
Now we've got to check how the AI behaves...

thanx, Arne

Who is online

Users browsing this forum: ClaudeBot [Bot] and 1 guest