Displacement Tests ( Skindigo )

Announcements, requests and support regarding SkIndigo - the Sketchup / Indigo exporter.
User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Wed Jul 02, 2008 3:58 am

The trouble I seem to experience is on perpendicular (non-subdivided) walls.
The edges seem to split open .
If I put 'on' subdivision in skindigo, the geometry becomes an organic form, while I just want the walls to remain coplanar (except for corners). Also, using subdivision causes a lot of crashing, even on very low values (sometimes even at 4)...

I haven't got this when using displacement in Fry or Vray. In Indigo it seems to work in another way... (in both other apps one sets a subdivision value in 'px' (mostly 256) and a height in model scale units .)

Is there maybe a difference between 'normal' displacement and Micro-displacement?

User avatar
Whaat
Developer
Posts: 1827
Joined: Fri Dec 22, 2006 6:15 am
Location: Canada
Contact:

Post by Whaat » Wed Jul 02, 2008 5:36 am

kwistenbiebel wrote:The trouble I seem to experience is on perpendicular (non-subdivided) walls.
The edges seem to split open .
If I put 'on' subdivision in skindigo, the geometry becomes an organic form, while I just want the walls to remain coplanar (except for corners)
I don't know about the crashing but I think if you are able to 'wrap' the texture around a corner so that each vertex has the same UVs, then you won't get the edge split effect. I might be wrong. Displacement should work a bit better in the next version of SkIndigo.

I have never used displacement in any other app. I like the idea of controlling subdivision only with a 'pixel' value. I would like to simplify the displacement interface in SkIndigo but I need to run some tests first.

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Wed Jul 02, 2008 7:15 am

The more I try to use displacement the less I seem to be able to control it :)

A Sketchup cube:
Image

Skindigo 1.1.5 :
displacement value: 0.3
subdivision turned 'OFF':
Image



Skindigo 1.1.5 :
displacement value: 0.9
subdivision turned 'OFF':
Image



Skindigo 1.1.5 :
displacement value: 0.3
subdivision turned 'ON'
Max subdivisions: 9
PT: 0.015
CT:-1
result= blob
Image
Last edited by kwistenbiebel on Wed Jul 02, 2008 8:25 am, edited 1 time in total.

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Wed Jul 02, 2008 7:29 am

As a reference I tried displacement in Fry Render on the same cube:

Image


The reason why the edges are closer together (no splitting open) in the Fry output is that the pitch black areas (RGB 0,0,0) of the displacement map correspond to a maximum negative displacement value. (= 'pushed in' geometry).
Pure white (RGB 255,255,255) will displace to the maximum positive value (='pushed out' geometry).
The medium grey value of RGB 127,127,127 has zero displacement.



In Indigo, RGB 0.0.0 is zero displacement and RGB 255,255,255 is the maximum positive displacement, meaning that all is displaced by 'pushing out' geometry and never 'pushing in'.

Thus the reason of the big gaps in the Indigo output.


Don't know if my explanation is clear.
Last edited by kwistenbiebel on Wed Jul 02, 2008 8:24 am, edited 1 time in total.

neo0.
Posts: 1784
Joined: Thu Feb 28, 2008 7:11 am
Location: the US of A

Post by neo0. » Wed Jul 02, 2008 7:46 am

Where can I get displacent maps?

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Wed Jul 02, 2008 8:02 am

More weird results.
This time a cube with rounded edges, textured with the method you use to project a texture on a cilinder:


SU-image:
Image

Indigo output (displacement height 0.9, subdivision off):
Image


As a reference: the Fry output (forgive me posting this, it is just as a mean to sort this out)
256 px
height 10 cm
Image
Last edited by kwistenbiebel on Wed Jul 02, 2008 9:43 am, edited 3 times in total.

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Wed Jul 02, 2008 8:49 am

kwisten: your explanation of displacement of 0,0,0 vs FF,FF,FF is correct - and to make indigo act like Fry or others, you simply set the C component of the subdiv map to negative one half the B component.

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Wed Jul 02, 2008 9:31 am

Aha...thank you.
I am going to try that.....
So there are actually 6 (:!: ) parameters to consider when using displacement :

1. the Gain
2. the Max subdivions
3. pixel treshold
4. curvature treshold
5. a
6. b
7. c

(number 6 is the same as number 1).

Now that IS complicated :lol: (at least for my brain it is).

User avatar
Whaat
Developer
Posts: 1827
Joined: Fri Dec 22, 2006 6:15 am
Location: Canada
Contact:

Post by Whaat » Wed Jul 02, 2008 10:11 am

kb:

dont' confuse 'subdivision smoothing' with subdivision. If you put any value >0 for Max Number of Subdivisions, the geometry will be subdivided regardless if the 'subdivision smoothing' box is checked.

What does 256px mean in Fryrender?

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Wed Jul 02, 2008 10:17 am

I see.
Whaat wrote:What does 256px mean in Fryrender?
In Fry ," 256px" means a displacement refinement of 256 pixels per uv-tile.
It is a parameter to define the amount of virtual micro triangles that will be generated.
Basically, it defines the quality of the displacement. Higher value=higher quality.

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Fri Jul 04, 2008 2:35 am

No one else tried displacement through Skindigo 1.1.5 yet?
I would love to hear how it is working out for you...

crojack
Posts: 396
Joined: Tue Dec 04, 2007 1:48 pm
Location: Portland, Oregon
Contact:

Post by crojack » Fri Jul 04, 2008 4:20 am

I tried for awhile,
you can see the other sketchup displacement thread, and I ran into the same problems you are having.

I couldn't find any sort of "base" settings, even with the same material.

It also seemed like the displacement would change based on if the plane was vertical or horizontal; and also, how far away the camera is from the material plane. But, it all seemed almost uncontrollable (well, for my absolutely limited experience with disp. maps)

I do think it is one of the coolest things, but I couldn't get it to work consistently, and went back to the stable release to get some renders done, haven't had time to do anymore testing.

one thing that is frustrating si that the previews of the materials with disp. maps looked great! but it never correlated to the actual scene.

User avatar
kwistenbiebel
Posts: 496
Joined: Sat Jan 27, 2007 12:31 am

Post by kwistenbiebel » Fri Jul 04, 2008 4:39 am

I am glad I am not the only one experiencing difficulties with displacement.
Thanks for the reply...

User avatar
Pibuz
1st Place 100
Posts: 2646
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Post by Pibuz » Fri Jul 04, 2008 7:37 pm

I'd be very happy to enter the magic world of displacement, but as i said i cannot work without instances any more...I think this new feature kinda scares me... :evil:

User avatar
suvakas
3rd Place Winner
Posts: 2613
Joined: Mon Sep 04, 2006 11:08 pm
Location: Estonia
Contact:

Post by suvakas » Fri Jul 04, 2008 8:58 pm

How is the displacement related to instances?

Post Reply
83 posts

Who is online

Users browsing this forum: No registered users and 45 guests