Jump to content

Some terrain bugs, again


MrIslomaniac
 Share

Recommended Posts

If anyone can approve these bugs, I would be so pleased:

 

Terrain = CreateTerrain(512);
SetTerrainHeight(Terrain,260,260,1);

Here I do not see anything, in Physicsdebug I do see the terrain...

 

Terrain = CreateTerrain(512);
ScaleEntity(Terrain,Vec3(4,100,4));
SetTerrainHeight(Terrain,260,260,0.03);

or

Terrain = CreateTerrain(512);
SetTerrainHeight(Terrain,260,260,1);

Here a simple CreateBox does not interact correctly with the terrain ...

 

 

 

Greetings fellas

post-171-092714800 1279133737_thumb.jpg

Link to comment
Share on other sites

You can't scale terrains with ScaleEntity, because the physics shape is already created and cannot be changed. You can make your own LoadTerrain() function, which creates a micro-sbx file with terrain only, which has also 4 meter per tile setting, and uses some blank white heightmap, and then loads the micro-sbx file. I think that should be part of gamelib, since it's quite nice to have.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

What does it mean "does not interact"? Also may be more helpful if you post the code.

Well I posted the relevant code ...

Other things are just a rendering frame, a mmoveable camera and a box. You can see the "wrong interactions" in the pictures.

 

@Lumojaa: It also happens, when I do not scale the terrain, not so strong as in the pictures, but it occures ...

and what about this case?

 

Terrain = CreateTerrain(512);
SetTerrainHeight(Terrain,260,260,1);

No graphical terrain anymore, just physics

Link to comment
Share on other sites

Well the updater says, I am up to date, do I have to download it anywhere else?

 

AH NVM, just found out why ...

But the terrain Bug with height 1 still isn't fixed

Hehe, it only shows the terrain, when the height is under 0.5

 

I would really love to load a sbx file, but i need to change the terrain in code, so is there any way i can get a terrain from a sbx-file?

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.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...