Jump to content

Cutting a flat surface to equal separate pieces


massoblivion

Recommended Posts

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?

 

Link to comment
Share on other sites

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 by f1480187
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.

×
×
  • Create New...