Apply a texture on a door

This topic has been viewed 12748 times and has 13 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
hutch
Posts: 2
Joined: Thu Sep 16, 2010 10:55 pm

Apply a texture on a door

Post by hutch »

Hello,

I would need some help about texture on a door.
I tried to apply the same method than for walls (draw a texture with a size identical as the wall with Gimp) which is working fine.
So I have a texture for my doors (83 x 208) that I apply on a door with the same dimensions.
Image

When I apply it, here is the rendering:
Image

It seems that the texture is applied from the center of the door as a mosaic. If it's not clear enough, let me know and I will try to be clearer ;) Is there a tip/trick I missed ?

Thank you by advance for your feedback.
Hutch
User avatar
whippetsleek
Posts: 121
Joined: Sat Jul 31, 2010 11:54 pm

Re: Apply a texture on a door

Post by whippetsleek »

I think it is because the texture is being applied to the whole object file. The door frame, and the door. If you know how to edit object files, you could import the door into a 3d program, and apply your texture to just the door.
Image
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Apply a texture on a door

Post by hansmex »

Hutch:

There's another solution:
- insert a doorframe of the required size; give it a colour or a texture
- inside the doorframe, insert a box of the correct size
- choose Modify -> Texture , choose the texture of your liking, but do NOT apply it
- choose Modify and give the texture the exact height of the box that you inserted inside the doorframe

If all is well, you should now see a texture that repeats exactly once (vertically). If the width of the texture isn't correct, you will have to use a graphics program to change the size of the texture to exactly match the size of the inserted box.

I hope I explained it clearly enough.
Good luck.

Hans
Hans

new website - under constuction
hansdirkse.info
hutch
Posts: 2
Joined: Thu Sep 16, 2010 10:55 pm

Re: Apply a texture on a door

Post by hutch »

Thank you for your feedback.

In fact, I'm more comfortable with Gimp than other 3d tools... so I spent some time in this way & found a solution :)

So the starting point is this one:
Image

I splitted the picture into quarters, and applied on earch vertical & horizontal mirror.
Image
Image
Image
Image

Finally recompose the picture with the quaters...

Image

And here is the rendering :)

Image

Celebration :) Now I have to remove the figures from the quarters
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Apply a texture on a door

Post by Puybaret »

Hutch,
I'm glad you found a solution even if I feel it's a bug that I'll have to resolve (or at least explain). [:-/]
When you apply the same texture on a simple box, you don't get the same result and I think it's not normal.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
pencilart
Posts: 188
Joined: Tue Oct 02, 2007 4:37 pm

Re: Apply a texture on a door

Post by pencilart »

Hutch: That's interesting how that works.
User avatar
krasse_muraene
Posts: 5
Joined: Sun Aug 28, 2011 3:44 pm
Country: Hamburg, Germany

Re: Apply a texture on a door

Post by krasse_muraene »

Hi folks,

I am very new to SH3D and I also experienced this problem when I wanted to texture a poster I put on a wall in a SH3D project.

I coded a little tool in 1 hour or so that does the slicing of an image and reorganizing the 4 parts the way it is needed to work around this bug. If anybody is interested, I will gladly share the tool.

You can also do the job in any image manipulation software, of course, but the work is tedious and you have to be very precise (and throughout the whole work fight the thought "grmbl... why do I have to do this?").

Regards, Krasse Muräne
User avatar
macfrog
Posts: 230
Joined: Sun Nov 14, 2010 7:36 pm
Country: Germany

Re: Apply a texture on a door

Post by macfrog »

Welcome Krasse Muräne:)
(Krasser Nickname, btw:)
In the end, everybody would like to see a simple to use plugin or an object editor integrated into SH3D, but this would probably blow the program beyond any means. it is still free, so we will have to cope with little glitches here and there.
thanks for your contribution anyway.

greets
macfrog
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Apply a texture on a door

Post by hansmex »

Thomas,

What exactly does your tool do?
Do I need another program to use it, or is a stand-alone tool?
Could it be converted to a plug-in for SH3D?

I'm always curious for useful extensions or plug-ins.

Hans
Hans

new website - under constuction
hansdirkse.info
User avatar
krasse_muraene
Posts: 5
Joined: Sun Aug 28, 2011 3:44 pm
Country: Hamburg, Germany

Re: Apply a texture on a door

Post by krasse_muraene »

Hello macfrog, Hans & all the other forum members!

At the present the tool is a small standalone application that runs under windows (XP/Vista/7) utilizing the DirectX engine to do a little image manipulation. The tool loads an image of your choice and

1. makes a copy of the image in the RAM
2. cuts the copy in 4 pieces
3. swaps positions of these pieces right the opposite way they appear in SH3D
4. saves the new image where you tell it to

All you have to do is tell it the input file and the output destination.


Let´s say this is the image you want to use as texture on a poster in SH3D:
Image

When I place it as a texture in SH3D it looks like this:
Image


That´s not what I want, so I feed the image to the tool which delivers me an image like that:
Image


When I place it again in SH3D it now looks like this:
Image

Fine, that´s what I wanted. Saves me quite some time and hassle when I want to put some posters in a room in SH3D.

I also thought about making it as a SH3D plugin, but that would need more time for development, time I don´t have in fact. And in particular I trust that the bug will be resolved, sooner or later. It would be interesting to know if the bug will be removed before putting more work into this.

Well, the algorithm is pretty simple, somebody who is allready firm in developing SH3D plugins should be able to implement this pretty fast. But it would be better if the bug itself got fixed.

By the way, is this a bug that everybody can reproduce, or does it only occur under certain circumstances and I am one of the unlucky guys?

Regards,
Thomas
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests