Random level generator
Does any of you guys have suggestions on how i should approach this? Thanks in advance!
Moderator: Inside3D Admins
void T_WriteBrush(brush_c *B)
{
fprintf(text_fp, " {\n");
int lx = VX(B->x);
int ly = VY(B->y);
int lz = B->low;
int hx = lx + 64;
int hy = ly + 64;
int hz = B->high;
// East
fprintf(text_fp, " ( %d %d %d ) ( %d %d %d ) ( %d %d %d ) %s 0 0 0 1 1\n",
hx, ly, lz, hx, ly, hz, hx, hy, lz, B->tex_name);
// South
fprintf(text_fp, " ( %d %d %d ) ( %d %d %d ) ( %d %d %d ) %s 0 0 0 1 1\n",
lx, ly, lz, lx, ly, hz, hx, ly, lz, B->tex_name);
// West
fprintf(text_fp, " ( %d %d %d ) ( %d %d %d ) ( %d %d %d ) %s 0 0 0 1 1\n",
lx, hy, lz, lx, hy, hz, lx, ly, lz, B->tex_name);
// North
fprintf(text_fp, " ( %d %d %d ) ( %d %d %d ) ( %d %d %d ) %s 0 0 0 1 1\n",
hx, hy, lz, hx, hy, hz, lx, hy, lz, B->tex_name);
// Top
fprintf(text_fp, " ( %d %d %d ) ( %d %d %d ) ( %d %d %d ) %s 0 0 0 1 1\n",
lx, ly, hz, lx, hy, hz, hx, ly, hz, B->tex_name);
// Bottom
fprintf(text_fp, " ( %d %d %d ) ( %d %d %d ) ( %d %d %d ) %s 0 0 0 1 1\n",
lx, ly, lz, hx, ly, lz, lx, hy, lz, B->tex_name);
fprintf(text_fp, " }\n");
}
JasonX wrote:I see that, but how do i position this cuboids in the world?




JasonX wrote:It looks great, man. But what do you mean by route of BSP models? Randomly generating a path and positioning BSP models along this path accordingly in real time?
JasonX wrote:Similar to this maybe? viewtopic.php?t=1621
Users browsing this forum: No registered users and 1 guest