Joined: Sep 16, 2010
Post Count: 2
Status:
Offline
Apply a texture on a door
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.
When I apply it, here is the rendering:
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 ?
Joined: Jul 31, 2010
Post Count: 121
Status:
Offline
Re: Apply a texture on a door
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.
----------------------------------------
Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status:
Offline
Re: Apply a texture on a door
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
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Apply a texture on a door
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
Germany
Joined: Aug 28, 2011
Post Count: 5
Status:
Offline
Re: Apply a texture on a door
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?").
Germany
Joined: Nov 14, 2010
Post Count: 233
Status:
Offline
Re: Apply a texture on a door
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.
Germany
Joined: Aug 28, 2011
Post Count: 5
Status:
Offline
Re: Apply a texture on a door
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:
When I place it as a texture in SH3D it looks like this:
That´s not what I want, so I feed the image to the tool which delivers me an image like that:
When I place it again in SH3D it now looks like this:
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?