News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Floor/Carpet tile layout

Started by Flatron, August 23, 2015, 04:29:19 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Flatron

Hi,

I've been using DesignCAD for many years but I've never had any luck with 2D floor tile layout.

Here's what I want to do.

I've bought a stack of end of line Carpet tiles (500mm x 500mm) and I want to lay them in some of the rooms in my house in a sort of "creative" way.

Each tile variant has been photographed (90 in all) and I now want to "try them out" on the floor plan I've drawn in DC.

Is there any way of batch importing these image files ready to grab (handle ready etc) and quickly locate into the grid and then move about?

Thanks



Rob S

Wow, that is a lot of images to stuff into one file.

My first effort would be devoted to reducing the file-size of these images to the minimum you can where you can still see the patters at the required resolution.

I'm not aware of any existing macros to import images, but you might try recording one, and then editing it to import sequentially numbered files.   The import macro command accepts parameters for the filename and the location.

Do you expect to create cuts for the corners and edges also? 

AFAIK this can't be done within Designcad, so you either have to make cuts in your image editing program, which would require yet more images to be imported, or you could draw a hatch solid in the foreground to hide the edges of the tiles that stick outside of your room dimensions .
User since forever

Dr PR

In addition to Rob's suggestions (reducing file size is important!) here is a different approach that you might want to try.

Create a 500mmx500mm plane and duplicate (N) it 90 times, Then tile your images onto each plane with "Tools/Texture Mapping."

It is more work, but this way you can use ordinary handles to move and rotate the planes. But the images will be visible only in a 3D shaded drawing. You can also add walls, furniture, lights, etc., to get a better idea of what it would look like.

You can use these "carpet tiles" in the 3D drawing so you can view the patterns at different angles to see what they would look like on the floor - hard to imagine from just a 2D top down drawing.

Phil
DesignCAD user since 1987

Dr PR

#3
Here is an example of a texture mapped image of 500mmx500mm planes with photos texture mapped onto the planes.

Note: The original pictures were not square so there is some stretching. You should edit your photos to be square (same length on both sides) if they are not already square (or to the same height/width ratio as the planes if the planes are not square).

In Texture Mapping I used the" Grid Patch Mapping" and the "Grid and Plane" option.

You also need to adjust the lighting angle in "Options/Options/Light Source" - I recommend a 30-45 degree vertical angle for starters. I also use the "Move with eye" option for most things, but for interior scenes you might want to make the light angle fixed relative to the room (disable "Move with eye") more like what you would see in the house.

Phil
DesignCAD user since 1987

Flatron

Hi,

Many thanks, obviously true experts...even after so many years I think I must still be an absoloute novice!

Like you both pointed out, image size is the big challenge and reducing it to a usable size screws up the image too much.

Seeing as I only need to get an idea of the layout and what it'll generally look like then it's time for:

Plan B, which is to "colour pick" each tile's dominant colour and use this to hatch fill a 500 x 500 box.

Seeing as I've got 90 variants it's going to be quite time consuming. Make box, fill, group and set handle.

Is there a quick way?

Cheers

Ron

samdavo

Flatron,
(off topic)
I was standing (almost) exactly in your shoes a year or two back.  Not that I needed the sophistication of images.   

I had to buy a couple of similar coloured medium-sized rugs to cover up two large "islands" of "seconds" tiles. :)
Incidentally, that's a good trick because you vacuum the carpet, and it looks like the entire room has been done.

Basically the colour of a room depended on its size and the number of tiles of each colour. 
Then there are the ones that have a defect along one side - which you can still use around the sides (or under sideboards etc lol).   
In the end I was able to re-carpet the entire house for about $40 - and only had a handful left over :)
And the sense of satisfaction was infinitely greater than if I had bought new ones.
"Many a mickle makes a muckle" as my Scottish grandfather used to say. 
Good luck   , cheers

samdavo

#6
Quote from: Flatron on August 23, 2015, 11:08:19 AM
Make box, fill, group and set handle.
Is there a quick way?
Why not just draw a grid, then "hatch fill" the various squares?

PS You can also Hatch using image - but it gets pretty tricky (scaling, aspect ratios, x and y shifts in each tile, etc)  (2 cents)

PS I believe Phil's texture mapping option would be better and/or easier to control.

Flatron

Hi,

Thanks, good stuff,  I can see that I'm not alone!!

What I've done so far is to pick out the average colour for each tile and batch converted to RGB and then added them as custom colours by editing the .cus file (all ready for filling my boxes with). It's a bit of a detail but as I said before I've got 90 variants and the custom colour box only allows 64. Is there a way to increase this capacity to 90?

Thanks

Ron

samdavo

Ron
well, one way would be to do a single sample of each, (using infobox to change / twig the colours) - and then use "same as" to colour the full population (2 cents)

Dr PR

#9
Ron,

I doubt that you can change the maximum number of custom colors.

There are ways to "fake" more colors.

One way is to create a fine grained hatch color overlaid over a different background color. The result may appear to be a blend of the two colors when viewed from a distance. I say "may> because view distance and angle will have a string influence upon what the program displays.

Another is to experiment with the Hatch gradient patterns for the Win_Solid hatch. With this you can generate unique color gradient patterns using only the few basic colors.

Another way is to generate color "tile" JPEG images in another program and use Hatch to put these JPEG images onto the Win_Solid hatch pattern for each carpet tile type.

****

The program will create at least 32,000 different custom colors. You do not have to save a custom color to the custom color file. You can apply it directly to an object.

Perhaps you could create a macro that would create a 500x500 square plane and then create a custom color using the RGB values and apply it to the plane. Then you could repeat this 90 times using different RGB values. I don't know if you can generate custom colors from a macro - perhaps some of the macro gurus can explain.

Be sure to offset each new plane from the position of the last so all 90 don't stack on top of each other.

Phil
DesignCAD user since 1987

Rob S

Colors and their effect on the eye are very subtle, as you will know if you've ever tried picking paint colors.

I don't think you will be able to approximate the final effect of your pattern by using mono-color "equivalents"

I would definitely pursue your original idea of inserting the actual images into the plan, to get a better idea.

Far be it from me to discourage any effort to use Designcad for almost anything, but I fear this might be one case where you might actually be better off laying out physical tile samples on a floor!!

That way, the partner, if one exists, will not be able to come along later and say, "But dear, that doesn't look anything like what you showed me!!!!"
User since forever

Flatron

Hi,

Thanks for all the advice.

In the end I landed up bulk resizing all the tile images to a compromise size (15kb) and inserted them one at a time (surprisingly quickly) into a grid which was at the right size and spacing etc. Setting handles on the way.

With snap grid and handles and a honed technique for shifting them around, the plan started to evolve.

End result was not as expected, it had to be either a solid colour in each area, some sort of geometric pattern or an attempt at random placement.

Not enough of any one type to think about solid colour, so that was easy to eliminate. Random, well, this is impossible when one is doing the random bit oneself!

Landed up with geometrical, "stripes" of the same tile across the building (12 in each stripe). With a bit of shuffling of the stripes I think we had a good plan.

Job now finished and it worked out better in real life than DC could make it....but DC was essential.

Thanks again

Ron


samdavo

Ditto.
As I say to the missus, no one but us will ever know we only paid $50 for the entire houseful of carpet tiles (including hiding spare white ones under rugs) :)