Subdivision + displacement test

General questions about Indigo, the scene format, rendering etc...
Post Reply
138 posts
User avatar
OnoSendai
Developer
Posts: 6243
Joined: Sat May 20, 2006 6:16 pm
Location: Wellington, NZ
Contact:

Subdivision + displacement test

Post by OnoSendai » Sun May 11, 2008 10:30 pm

Messing around with some subdivision surface code, also with displacement mapping the subdivided mesh.

The preview surface in this scene is subdivided three times to create 2.8M triangles. The subdivision is done at scene load time currently, so it does take rather a lot of RAM.

I'll look into dynamic subdivision later, but this serves as a good benchmark for performance.

The map 'spherebump.jpg' is used as a displacement map here.

The 'ripples' on the surface are due to incorrect UV generation I think, as opposed to triangle resolution limitations.

Also there's the rather glaring issue of discontinuities at creased edges in the surface :)
Attachments
displacement.png
displacement.png (318.49 KiB) Viewed 14344 times
spherebump.jpg
spherebump.jpg (21.65 KiB) Viewed 14344 times

User avatar
fused
Developer
Posts: 3648
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Post by fused » Sun May 11, 2008 10:45 pm

omg!

i saw it coming :D

that will be a great release!

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

Post by OnoSendai » Sun May 11, 2008 10:46 pm

Some more pics.
Both these have 2 levels of subdivision, obviously displacement is used in one of the materials :)
Attachments
displaced.jpg
displaced.jpg (96.66 KiB) Viewed 14334 times
no_displace.jpg
no_displace.jpg (96.17 KiB) Viewed 14334 times

User avatar
PureSpider
Posts: 1459
Joined: Tue Apr 08, 2008 9:37 am
Location: Karlsruhe, BW, Germany
Contact:

Post by PureSpider » Sun May 11, 2008 10:50 pm

w00t! giev us t3h MPD now! :D

User avatar
Kosmokrator
Posts: 1141
Joined: Sat Jul 29, 2006 11:52 am
Location: Greece-Athens

Post by Kosmokrator » Sun May 11, 2008 10:56 pm

looks promising Ono......
lets see how far can reach this stuff!!

thnx for ur work
1)Core i7 965XE stock CLOCK ,PSU:CHIEFTEC 850W
M/B ASUS P6T DELUXE,WATERCOOLING ZALMAN RESERATOR 2
MEMORY:6GB CORRSAIR @1600,Ati HD 4870x2,
MONITOR:LG 1950SQ,CASE:THERMALTAKE SOPRANO

BbB
Posts: 1996
Joined: Fri Feb 09, 2007 8:28 am
Location: Berlin
Contact:

Post by BbB » Sun May 11, 2008 10:57 pm

Now we're talking. We're on the way to Nirvana!
Once you're done with this, Ono, I seriously can't think of any more feature to request!

(PS: I don't know if that helps, but both Maxwell and Fry have this problem of displaced meshes tearing apart at sharp edges. Their solution is to set the smoothing angle of the mesh at 90 degrees instead of 60...)

EDIT: Does this mesh have split vertices by any chance?
Last edited by BbB on Sun May 11, 2008 11:00 pm, edited 1 time in total.

User avatar
CoolColJ
Posts: 1738
Joined: Mon Jun 25, 2007 1:47 pm

Post by CoolColJ » Sun May 11, 2008 10:58 pm

:shock: 8)

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

Post by OnoSendai » Sun May 11, 2008 10:59 pm

I thought the Fry guys solved the tearing problem?

There is a possible solution which is to insert some tris to form a 'wall' along the tear.

BbB
Posts: 1996
Joined: Fri Feb 09, 2007 8:28 am
Location: Berlin
Contact:

Post by BbB » Sun May 11, 2008 11:02 pm

I thought the Fry guys solved the tearing problem?
Could well be... They got a new version on the way anyway.

Man, I can't wait for this. That and the shift lens = full architectural suite!

EDIT: I actually don't mind some tearing pbms in the initial release. We can still do walls, carpets, grass, etc... Wicker might be trickier...

Gengibre
Posts: 19
Joined: Sun Jan 20, 2008 7:02 am

Post by Gengibre » Mon May 12, 2008 12:34 am

How much ram?? How much ram Ono??

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

Post by Kram1032 » Mon May 12, 2008 12:58 am

YAY :D

On the third image, what happened to the pink part of the texture on the lower right? The green mat on the lower left also looks slightly different in tone...
Did you use reinhard for those? :)

YAY :D
YAY :D
*please help! my disk's stuck*
YAY :D
...

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

Post by CTZn » Mon May 12, 2008 2:10 am

!!! HURRAY !!!


Me happy !!! Let's see how much ram that takes !!!


Side note:

What disp does is pushing the surface in the direction of the surface normal, so no wonder if you have a sharp edge to tear the mesh ! Set you normals correctly and everything should be fine. I never heard about "fixing" this "issue", but setting proper normals, final dot.
obsolete asset

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

Post by suvakas » Mon May 12, 2008 2:39 am

F***ing ace !!!!!
Shifted lens and displacement were my only wishes. Now if you could also manage to fix the fireflies issue somehow, then I see no point in using any other unbiased renderer than Indigo !
Great stuff Ono!

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

Post by CTZn » Mon May 12, 2008 2:51 am

BTW is there an output normal threshold, or is the disp mesh all the way smooth ? A threshold is cool, notably for natural surfaces.

Also a texture or angle threshold: if contrast/angle between two vertices of the original mesh is under that limit, do not subdivide.

Actually there is a lot of different ways to control displacement, wait'n'see !
obsolete asset

User avatar
Azazeo
Posts: 38
Joined: Sun Apr 13, 2008 1:58 am
Location: Belarus
Contact:

Post by Azazeo » Mon May 12, 2008 2:52 am

Нихера себе!!!
Wow!!! Amazing!..
Will new beta come soon?
...and the Earth becomes my throne!

Image

Post Reply
138 posts

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest