talespopla.blogg.se

Floor generator 3ds max
Floor generator 3ds max





floor generator 3ds max

Startlength=random.randint(2,20)*maxlength/20 Randomlength = random.randint(minlength,maxlength) Gapwidth = rs.GetReal("enter gap width", 2)

floor generator 3ds max

Minlength = rs.GetReal("enter plank min length",700) Maxlength = rs.GetReal("enter plank max length",2000) Width=rs.GetReal("enter plank width",140) ModifyTextureMapping(table,newmesh,1,texmap)įloorwidth = rs.GetReal("enter floor width size",10000)įloorlength = rs.GetReal("enter floor length size",10000) RandY=(texWidth-length)*random.uniform(0,1) RandX=(texHeight-width)*random.uniform(0,1) #add mesh to document to apply a texture map Pts2.append(3d(0,0,20))įor i in range(0,len(pts2)):#modify pointsįor pt in pts2:#add points to original points a check to avoid seams on short ends to not come to close togetherįor a, b, c in vertices: (a, b, c) rotation (180 degrees) of textures for more quasi uniqueness making the planks not straight, but this will require denser meshes Planks are, the more it can be randomized Right now a texture size of 2000 x 300 units is chosen. Script will generate floor planks and add random text coordinates to each plank Which is currently not possible vray as far as I know. To work properly and ultimately randomization of the map color per object Would require a multimaterial and ability to assign material IDs to objects Goal is to make something that looks like floor generator for 3dsmax

floor generator 3ds max

Floor maker script *** work in progress ***







Floor generator 3ds max