Displacement issues

Announcements, requests and support regarding SkIndigo - the Sketchup / Indigo exporter.
Post Reply
10 posts • Page 1 of 1
User avatar
Bosseye
Posts: 312
Joined: Fri Jan 01, 2010 10:52 pm
Location: Bristol, UK

Displacement issues

Post by Bosseye » Wed Jan 16, 2013 8:58 pm

Morning all,

I've had this problem before, but I don't think anyone was able to help out with it, so I'm hoping this specific topic will focus the great minds of the forum. I've had this issue for numerous versions of SKIndigo/Indigo now, so I'm assuming its a Sketchup problem.

Basically whenever I subdivide a face with a displaced texture on it, I get these glitches in the texture originating at the corners of the cut. I get the same problem regardless of whether I texture the face then cut out the geometry, or if I cut out the geometry first and then texture the face.

Can anyone assist? I can't think of a way around this and currently it means I can't displace textures in walls with anything cut out of it, eg windows.

Thanks in advance.
Displacement 1.jpg
Displaced texture, no cut out, no error
Displacement error.jpg
Displaced texture, cut out added, texture error

User avatar
Zom-B
1st Place 100
Posts: 4701
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: Displacement issues

Post by Zom-B » Wed Jan 16, 2013 10:18 pm

while that scene renders in Indigo go to the displacement material, set it to diffuse and check on the bottom the checkbox for "random triangle colors" then you'll see the effect of the subdiv you did.
Thats a great base to start debugging :)
polygonmanufaktur.de

User avatar
Bosseye
Posts: 312
Joined: Fri Jan 01, 2010 10:52 pm
Location: Bristol, UK

Re: Displacement issues

Post by Bosseye » Thu Jan 17, 2013 4:48 am

Thanks - I've got subdivision set to 9 at the moment, any less and the displacement map looks a little....wrong... for some reason. At that level of subdivision the random triangle option essentially just returns a purple texture :lol:

I think I've found a workaround, whether it will always work I'm not sure - if I add a couple more lines in sketchup from the corners of the cut out up the main face of the wall, ie manually subdivide the main face from the cut out then the problem seems to disappear. Not sure why though.

User avatar
OnoSendai
Developer
Posts: 6244
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Displacement issues

Post by OnoSendai » Thu Jan 17, 2013 4:51 am

Hi Bosseye,
Can you email me the scene as a PIGS?

Cheers!

noldo
Posts: 28
Joined: Thu Feb 09, 2012 5:38 am

Re: Displacement issues

Post by noldo » Thu Jan 17, 2013 5:09 am

I think the problem is related to the triangulation of the face with the hole in the middle.
Try to subdivide the face in sketchup in quad with the same dimension.

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Displacement issues

Post by CTZn » Thu Jan 17, 2013 8:48 am

Bosseye wrote:I think I've found a workaround, whether it will always work I'm not sure - if I add a couple more lines in sketchup from the corners of the cut out up the main face of the wall, ie manually subdivide the main face from the cut out then the problem seems to disappear. Not sure why though.
This is the right way to do, construction lines will define the mesh quality before subdivisions.

As noldo suggested, each face of the mesh should be of roughly the same size to keep the level of detail of displacement consistent. Less faces will be created for the same apparent displacement quality. View dependent subdivisions may help a bit otherwise.

Cotty posted a nice illustration some times ago about adding construction lines to a SU model to fix long triangles. In arch viz vertical and horizontal lines are used generally.
obsolete asset

User avatar
Bosseye
Posts: 312
Joined: Fri Jan 01, 2010 10:52 pm
Location: Bristol, UK

Re: Displacement issues

Post by Bosseye » Fri Jan 18, 2013 8:56 pm

OnoSendai wrote:Hi Bosseye,
Can you email me the scene as a PIGS?

Cheers!
Sorry Ono, I deleted the scene - it was only a swift test one. I can set you up another one and send it if you think it will be useful?

Also thanks to noldo and CTZn, that makes sense to me and the fact that some additional subdivision (manually adding lines) seems to resolve the problem would imply you're correct.

Thanks to all who replied anyway.

User avatar
OnoSendai
Developer
Posts: 6244
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Re: Displacement issues

Post by OnoSendai » Fri Jan 18, 2013 11:19 pm

Bosseye wrote:
OnoSendai wrote:Hi Bosseye,
Can you email me the scene as a PIGS?

Cheers!
Sorry Ono, I deleted the scene - it was only a swift test one. I can set you up another one and send it if you think it will be useful?

Also thanks to noldo and CTZn, that makes sense to me and the fact that some additional subdivision (manually adding lines) seems to resolve the problem would imply you're correct.

Thanks to all who replied anyway.
Yes please do!

User avatar
Bosseye
Posts: 312
Joined: Fri Jan 01, 2010 10:52 pm
Location: Bristol, UK

Re: Displacement issues

Post by Bosseye » Sat Jan 19, 2013 12:22 am

:lol: So I recreated the scene and it won't do it now..... :lol: All working fine. I haven't done anything differently on this one so not sure why. I haven't even subdivided the main face manually either, its just a hole cut in a wall.

If it happens again I'll email you the scene.

EDIT - maybe its a size thing. I'll try again with a bigger wall, this latest one is a bit smaller than my original scene.

EDIT 2 - Nope, all works fine, even if I make the wall massive. Ah well, forget about it for now. Cheers.
Displacement ok.jpg
Displacement ok triangles.jpg
Displacement ok 1.jpg

User avatar
cotty
Posts: 314
Joined: Tue Aug 03, 2010 7:59 am
Location: Germany
Contact:

Re: Displacement issues

Post by cotty » Sat Jan 19, 2013 2:28 am

CTZn wrote:Cotty posted a nice illustration some times ago about adding construction lines to a SU model to fix long triangles. In arch viz vertical and horizontal lines are used generally.
Here it is...
little gallery... http://unverzagt.biz/cottysgallery/

Post Reply
10 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 15 guests