massoblivion Posted January 10, 2017 Share Posted January 10, 2017 I have a square landscape that's about 4000x4000 polys, and i have to cut it to 16x16 equal pieces, so i could make LOD's for a game project. Do you guys have any ideas how to do that? Thanks for answering. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 10, 2017 Share Posted January 10, 2017 (edited) Try flatten terrain and fracture it with a regular grid. slice_terrain.hipnc Edited January 10, 2017 by f1480187 Quote Link to comment Share on other sites More sharing options...
massoblivion Posted January 10, 2017 Author Share Posted January 10, 2017 Thanks, i tried it, but i look for a less memory consuming way. Just restarted my PC after 20 minutes of waiting. Quote Link to comment Share on other sites More sharing options...
Atom Posted January 10, 2017 Share Posted January 10, 2017 What were you waiting for? I tried F1's file while my CPU was under complete load and I still was able view all the LOD versions without waiting. What are the hardware specs of the machine you are using? Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 10, 2017 Share Posted January 10, 2017 (edited) I used lightweight geometry. According to Performance Monitor, it costs about ~800 megs of RAM and 1-2 minutes of computing to slice 500x500 grid to 16x16 chunks. Some sort of divide and conquer should be used. You can try to compute cluster attribute, if the grid is sorted, without cutting anything. // Primitive wrangle. int size = 1024; // Number of primitives per side. int divs = 16; // Number of chunks per side. int div_size = size / divs; int row = @primnum / size; int col = @primnum % size; int div_row = (row - row % div_size) / div_size; int div_col = (col - col % div_size) / div_size; i@cluster = div_row * divs + div_col; It took around 800 MB of RAM for 4000x4000 grid with Scene View and Geometry Spreadsheet closed. You can cook nodes by middle-clicking in network view. Then cache it into the file. chunk_grid.hipnc Edited January 10, 2017 by f1480187 Quote Link to comment Share on other sites More sharing options...
massoblivion Posted January 12, 2017 Author Share Posted January 12, 2017 (edited) Thanks, nice scripting Edited January 12, 2017 by massoblivion Quote 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.