Game Development Community

Problems with terrain and textures on the terrain

by Glynn James · in Torque Game Engine · 05/22/2005 (3:22 am) · 4 replies

Two problem im having atm

1 - Ive played arround with the camera settings to make the player model further away from the camera (smaller on screen) now if i am on a steep slope and pan the camera down to far, part of the terrain disapears and i can see the mesh underneath

2 - ive edited some jpgs for use as terrain textures, but sometimes they seem to render in a strange way - with the corners of some of the textures displaying darker than they are, relighting the scene doesnt seem to alter this - is there a problem with a certain ammount of colours or file format?

i have taken a couple of screenshots and enclosed the two problems with white boxes

any ideas?

www.stormdancer.co.uk/problem.jpg
www.stormdancer.co.uk/problem2.jpg

#1
05/22/2005 (3:13 pm)
The last screenshot shows where the textures failed to blend, I think. Repaint the area that looks like black and it should go away, it will replicate around it but with some work it will disappear :) I don't know what's causing it but I never saw it until 1.3

Edit: If you edited the way the camera works there's no way we can know what you've done. If that's the camera resource, you might wanna look into it a bit more and add some function which casts a ray and tests collision beneath the camera and then positions it accordingly.
#2
05/22/2005 (3:29 pm)
I used the lighting pack and seen this also.
#3
05/22/2005 (3:36 pm)
Simply grab a hard brush and paint over the top. As Stefan says its a blending issue, which is easily resolved by using a hard brush as then its just solid texture over the top of the dodgy non properly blended area.

Btw, its existed since before 1.3. I dont really consider it a "problem" just a slight niggle thats overcome in seconds.
#4
05/22/2005 (6:27 pm)
Thanks guys, i just wanted to check this wasnt some problem with a certain export setting for jpgs and would cause me problems later.

The issue with the camera all i have changed was the cameraMaxDist to 10 and i get this

Ive tried messing withthe minLookAngle maxLookAngle and maxFreelookAngle but the problem still occurs even with more restrictions

It seem sto happen when i have a steep slope the player is travelling down.

I was under the impression that the engine automatically zoomed in on the player model when there was part of the terrain between it and the player, This does seem to be the case but sometimes it doesnt seem to zoom in enough and you get to see the underside of the terrain mesh.

Is there a setting for how rigourously the camera zooms in?

What im after really is a 3rd person camera that can be panned round the player model when the mouse button is held down. and also allow for the scroller on the mouse to zoom in and out.

Im gradually finding the different settings :)