PDA

View Full Version : GTR2->RACE07: Distant objects pop in at fixed distance


Mojo66
9 November 07, 10:10
While (still...) working at the Fuji conversion, I have the GTR2 version ready and working, but have problems with it in RACE07. The track features Mt. Fuji as an .GMT object at quite a distance on the horizon. While in GTR2, MT. Fuji can be seen from all over the track, in RACE07 it pops out of some kind of fog at exactly 1200m distance (see screenshots, GTR2 is to the left, RACE07 at the right).

Here are the relevant lines from the .trk file:
View=mainview
{
Clear=True
Color=(0, 0, 0)
Size=(1.0, 1.0) Center=(0.5, 0.5)
FOV=(77.75, 62.50)
ClipPlanes=(0.50, 4500.00)
View=rearview
{
Clear=True
Color=(149, 218, 254)
Size=(512.0, 256.0) Center=(256.0, 128.0)
FOV=(77.5, 62.5)
ClipPlanes=(0.50, 200.00)
}
}

//-------------------------------------------------------

AmbientColor=(110, 110, 130)
FogMode=LINEAR FogIn=(700.00) FogOut=(2500.00) FogDensity=(1.00) FogColor=(190, 198, 213)
GroupMethod=Dynamic

Light=FDirect01
{
Type=Directional Dir=(0.5, -0.9, 0.5) Color=(220, 220, 220)
}

Instance=fuji
{
MeshFile=fuji.gmt CollTarget=False HATTarget=False
}

I have set every single figure to astronomical values, without noticing any effect at all, and on Mt. Fuji in particular. The LODout of fuji.gmt is set to 10000. The track is otherwise finished and ready for release. Any help appreciated.

PS: I observed the same effects on other (private) conversions from GTR2.

simracer
9 November 07, 12:52
Look in the tracks .GDB file for these entries...

DayFogIn = xx.x
DayFogOut = xxxx.x

They probably override the trk's fog values.

Increasing the DayFogOut= value should solve the problem.

Mojo66
9 November 07, 16:04
Unfortunately not. The thing still pops in at the same distance, just without the fog effect. Anybody else have an idea? I can't release Fuji speedway without Mt. Fuji, right?

DucFreak
9 November 07, 17:03
Try increasing the ClipPlanes, say, a 10 times increase in the value... test and see how it goes? :confused: :uhm:


View=mainview
{
Clear=True
Color=(0, 0, 0)
Size=(1.0, 1.0) Center=(0.5, 0.5)
FOV=(77.75, 62.50)
ClipPlanes=(0.50, 45000.00)
View=rearview
{
Clear=True
Color=(149, 218, 254)
Size=(512.0, 256.0) Center=(256.0, 128.0)
FOV=(77.5, 62.5)
ClipPlanes=(0.50, 2000.00)

simracer
9 November 07, 17:41
I think Ducfreak is correct about the clip planes.

In the material properties of fuji.gmt you should set the flag called 'no clip'
If your using 3dsimed this is very easy to do.

Mojo66
9 November 07, 17:47
That was the first value I tried to raise. In fact, what I found out is that this value is completely ignored. It seems as if the clip distance is hardwired into the game.

Mojo66
11 November 07, 22:34
Just for the record, I've inserted the Mt.Fuji object into Spa, just to the effect that it pops into view at exactly the same distance, which btw seems to be 1900m (not 1200m as I mentioned before), see attached pic.
Which, together with the fact that the value of ClipPlanes doesn't seem to have any effect at all, leads me to assume that Race07 has a hardwired clipplanes value of 1900, which might have an effect on large tracks, like the Nordschleife.
While simracer had the brilliant idea to merge Mt. Fuji into the skybox, this might not work for all large tracks.