Jump to content

Randomly falling through terrain, and other weirdness


Mitovo

Recommended Posts

Hello,


Been working on a test/sandbox map. I imported a heightmap generated with L3DT, which is 2048x2048, 16-bit PNG.

 

  • I've set up a water plane.



    I've set up have set up a decoration object, using one of the included grass textures. This decoration object only shows up on the grass texture layer.



    I've set up two layers of my own textures (grass and rock), using the "flood fill" option, to place rock texture only on steep surfaces, etc.



    Everything up to this point was fine. Terrain runs smoothly, no problems.

 

In running around, I noticed the grass decorator is showing up under water, which I don't want. So... I added a 3rd, sand, layer to paint below the waterline, where the grass won't show up (since it's limited to the grass texture layer). The sand material/texture is the one included with the default install of T3D.


Upon painting this texture, my character fell through the terrain, and now nothing I do is correcting it. I recreated the terrain, and have the same issue.


So, I have no idea what's going on, or why painting a 3rd texture is causing the terrain to stop colliding... but... well, that's why I'm posting about it here :)


As for the "other weirdness", every now and again, different objects will get "locked" to other ones. For example, I was trying to move the player drop object above the ground (since, for some reasin, every time I import a heightmap - even if it's the same one - it seems to import at random heights (more on this later), so I have to adjust the player drop and/or the water plane so they're correctly positioned. Anyway, what will happen at random is that the player drop, for example, will get "locked" to the terrain. So, if I move the player drop, the terrain is moving with it. It's happened when trying to move the water plane as well. I have to reopen the map in order to fix it. Very odd issue.


The main issue, though, is the random falling through the terrain? Any idea of why this might be happening?


Thanks.

Link to comment
Share on other sites

Does that happen only when you edit the terrain?


Or does falling through the terrain happen even if you save, exit, and reload the level?


If it's the former, could just be that when you add that third material, it's triggering a rebuild of the terrain block, and the collisions are wiped momentarily, but I'd need to know if it's ONLY during editing to be sure.

Link to comment
Share on other sites

Does that happen only when you edit the terrain?


Or does falling through the terrain happen even if you save, exit, and reload the level?


If it's the former, could just be that when you add that third material, it's triggering a rebuild of the terrain block, and the collisions are wiped momentarily, but I'd need to know if it's ONLY during editing to be sure.

 

Hi there, Jeff,


Well, when I re-opened the editor just a bit ago, the problem seems to have fixed itself.


So, is that what's happening, is that it's kind of "refreshing" the terrain when you add new layers, etc?


Aside from adding that new layer, I hadn't touched anything else. So, if that's all it is, then I can live with re-opening the file once in a while.


Any hint as to why items sometimes get "locked" together? Where the character spawn gets locked to the terrain, and both move, etc?


Thanks!

Link to comment
Share on other sites

When you're experiencing the 'locked' behavior, was it after trying to select something by clicking on it?


I've found that occasionally, when I've been clicking on other parts of the UI, or switched windows or the like, the cursor may think it's been clicked and held, causing it to act like a drag-selection, and multiple things get selected.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...