Skindigo Displacement tests

Announcements, requests and support regarding SkIndigo - the Sketchup / Indigo exporter.
crojack
Posts: 396
Joined: Tue Dec 04, 2007 1:48 pm
Location: Portland, Oregon
Contact:

Skindigo Displacement tests

Post by crojack » Wed Jun 11, 2008 5:23 am

So, I dived in a started some testing to see if I can figure this out. and, well, I haven't, but I did a few tests to try and get a very ballpark idea of where to start.

I borrowed the mat and the d_map from maxwell :twisted:

anyways, I wanted to start with something that had been proven, even if it is in another renderer.

So, first is the preview.

No Subdiv, and Dis value at .18

see file comments for each pic.

what I don't understand is that I get no displacement in the actual model render, but when i bump up the Dis. value, it seems to raise the whole mesh toward the camera, instead of displacing the actual material???

Does there need to be some sort of anchor mesh that this bases itself off of?

I will resize images if needed.
Attachments
No_sub_d.2.png
No Subdiv
Dis. @ .2
No_sub_d.2.png (536.73 KiB) Viewed 4030 times
No_subdiv.png
No Subdiv

Dis. @ .18
No_subdiv.png (537.55 KiB) Viewed 4030 times
subdiv_1.1.1.png
Max Subdiv@ 1
both thresholds at .1

Dis. @ .18
subdiv_1.1.1.png (531.79 KiB) Viewed 4030 times
subdiv_1-1-1.png
Max subdiv and thresholds @ 1
DDis. @ .18
subdiv_1-1-1.png (526.82 KiB) Viewed 4030 times
bricks_with_grasspreview.png
preview
no Subdiv
Dis. @ .18
bricks_with_grasspreview.png (464.06 KiB) Viewed 4031 times

User avatar
cpfresh
Posts: 501
Joined: Thu Jun 14, 2007 12:20 pm
Location: California, USA
Contact:

Post by cpfresh » Wed Jun 11, 2008 5:36 am

crojack, get the latest material preview scene. it was updated and improved.

keep up these tests, inquiring sketchy-users want to know! :P

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

Post by zsouthboy » Wed Jun 11, 2008 5:39 am

The reason the mesh seems to move is that you have so few polys - you're "displacing' like 4 triangles, so the whole thing appears to move.

Set your subdiv threshold to "-1", and try again

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

Post by crojack » Wed Jun 11, 2008 6:13 am

You mean the Max Subdiv to -1?

I tried that and indigo crashed.

tried .01 and nothing to speak of.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Jun 11, 2008 6:14 am

-1 means disable, I guess?

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

Post by zsouthboy » Wed Jun 11, 2008 7:45 am

Sorry, should've been more specific:

Set the curve threshold to -1

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

Post by kwistenbiebel » Wed Jun 11, 2008 7:53 am

I love these tests.
It can really be helpful to users to see different values of the parameters applied. Good to learn from.

I hope other tests follow...

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

Post by crojack » Wed Jun 11, 2008 9:10 am

I got this to work
with max Subd at 8
PT -1
CT -1

Dis @ .12


but, change anything or try this with a different mat and things go all wonly again.

i tried this on a wall instead of the ground, no dice. (not sure why that would make a difference)

Is there a correlation between the size of the mesh and the values of the parameters?

not sure if a default is possible, hopefully some more people will try out some tests.

it is fun though, but also frustrating, has anyone found a thread or link explaining what each of the parameters does?
Attachments
8_-1-1.png
8_-1-1.png (744.11 KiB) Viewed 3938 times

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

Post by kwistenbiebel » Wed Jun 11, 2008 2:08 pm

Looks nice....but oh boy, this displacement feature seems so difficult to control :roll:
Last edited by kwistenbiebel on Thu Jun 12, 2008 2:52 am, edited 1 time in total.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu Jun 12, 2008 1:45 am

It's still a bit buggy, I guess... All the displacement releases, 'till now aren't stable... as you know^^ Probably the stuff'll get simpler, later :)
Simpler, more effective and less buggy^^

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

Post by kwistenbiebel » Thu Jun 12, 2008 2:55 am

It's probably not easy for Ono to make a multi platform displacement as each host app probably has its own geometry/mesh specifics.

I reckon, Sketchup is the one that creates the most sloppy geom of all :)

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Thu Jun 12, 2008 4:05 am

I guess, that's why he decided (and partly undid his decision) to ignore all the exported normals and calculate them in Indigo internally. ;)

OscarLok
Posts: 23
Joined: Sat Jun 07, 2008 10:24 pm

Post by OscarLok » Thu Jun 12, 2008 5:30 am

Hi crojack,

May I have your skp file with the displacement texture, please? :roll:

Could anybody upload your skp file together with your example, please?
Or where can I download a example of SKP with displacement testing, please?

Thanks
Regards
Oscar

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

Post by neo0. » Thu Jun 12, 2008 6:13 am

How do you assign displacement maps in skindigo?

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

Post by Whaat » Thu Jun 12, 2008 6:47 am

kwistenbiebel wrote:Looks nice....but oh boy, this displacement feature seems so difficult to control :roll:
It's actually not as hard as you think. The most important parameter is the Max Number of Subdivisions which determines the 'resolution', 'fineness', or 'accuracy' of the displacement and the texture 'b' value (Gain in SkIndigo). This is not much different than Bump mapping.

The more complicated parameters are the 'curvature threshold' and the 'pixel threshold'. I might remove these from the SkIndigo interface if I can find some good default values. The thing to remember about these two values is that you don't NEED to ever change them. AFAIK, the main purpose of these parameters is to optimize the subdivision to save memory.

Post Reply
33 posts

Who is online

Users browsing this forum: No registered users and 51 guests