Canardia Posted April 22, 2010 Share Posted April 22, 2010 I need to expand a terrain from 1024*3 tiles to 4096*4 tiles, so that the old height data stays in the middle and only new flatland is added around it. I tried to open the raw file with gimp, but it imports it always as 1024x512. Why can't the terrain just be a simple DDS file? The file size of the raw file seems also a bit wierd: 2097152 bytes, but it should be (1024)*(1024/8)*(4) (RGBA 8-bit) = 524288 bytes. As RGBA 16-bit it would be 1048576 bytes, so where does the double size come from? Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Pancakes Posted April 23, 2010 Share Posted April 23, 2010 not to hijack you, but can you even get the 4096*4 tile terrain to work in the first place? Does the collision work throughout the entire terrain? For me I fall right through around the edges of the terrain and I'd be interested if you've tried that size yet and tried the collision between the default controller in the editor and the terrain that is far from the center Quote Core I5 2.67 / 16GB RAM / GTX 670 Zbrush/ Blender / Photoshop CS6 / Renoise / Genetica / Leadwerks 3 Link to comment Share on other sites More sharing options...
Marleys Ghost Posted April 23, 2010 Share Posted April 23, 2010 @Pancakes: try SetWorldSize() 1 Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Masterxilo Posted April 23, 2010 Share Posted April 23, 2010 2097152 bytes, but it should be (1024)*(1024/8)*(4) (RGBA 8-bit) = 524288 bytes The format of the terrain height data raw is single channel 16bit/ 2 byte (one entry for each gridpoint), so the file size IS correct 1024*1024*2 == 2097152 I don't know if your image editing program can load double precision single channel data. Can you set how to load the raw? In Photoshop, there's this dialog and you'd need the following settings: Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Recommended Posts
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.