Author Topic: Displacement issue  (Read 24828 times)

2014-04-07, 23:43:03

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
Hi guys, I'm having an issue with displacement. I'm getting these weird subdiv lines on the brick and i cant get rid of that open edge.

my first time using displacement in corona

any suggestions?

thanks


EDIT: i've managed to get rid of the lines. I had a subdivide on the wall with noise with is my usual workflow in vray. turning off fixed that issue. so just the open edge now?
« Last Edit: 2014-04-08, 00:07:28 by hunter1st »

2014-04-08, 10:20:24
Reply #1

gabrielefx

  • Active Users
  • **
  • Posts: 109
    • View Profile
in Octane for Max this issue is caused by a wrong scale setting
It's the lack of double precision gpus path tracing. That unstitching you see can't be computed.
Also in Octane there is a rayipslon bias control. I donno if it exists in Corona.

regards

2014-04-08, 12:53:34
Reply #2

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
in Octane for Max this issue is caused by a wrong scale setting
It's the lack of double precision gpus path tracing. That unstitching you see can't be computed.
Also in Octane there is a rayipslon bias control. I donno if it exists in Corona.

regards


I usually get this issue with vray with I use 2D displacement. is world space like using 3d displacement in vray?

2014-04-08, 14:26:28
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8881
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You have to assign same smoothing groups to surfaces if you don't want edges to be torn appart.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-04-08, 14:36:38
Reply #4

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
You have to assign same smoothing groups to surfaces if you don't want edges to be torn appart.


thanks ill give this a  go

2014-04-08, 15:12:40
Reply #5

Juraj

  • Active Users
  • **
  • Posts: 4768
    • View Profile
    • studio website
For true, good-looking displacement along edge, not only smoothing group (smoothing groups are btw separate vertices along separated SG islands, it's no longer single mesh, so this output is logical )
but unwrapped continuous mapping.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2014-04-09, 01:15:27
Reply #6

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
For true, good-looking displacement along edge, not only smoothing group (smoothing groups are btw separate vertices along separated SG islands, it's no longer single mesh, so this output is logical )
but unwrapped continuous mapping.


Hi juraj, hi romullus, My walls are already unwrapped. I tried the smoothing groups and it gave undesired affects, just as I though the shading would screw up. Seems to have fixed the problem like you said but now I have some terrible shading. Surely you shouldn't have to add a SG to get displacement working on corners? I would never usually use smoothing groups for anything except maybe with a turbo smooth for modelling.

any other suggestions? If theres no fix I'm happy to leave those edge opening in and i'll paint them out later in PS.





 

2014-04-09, 09:15:47
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12789
  • Marcin
    • View Profile
I'm too lazy to start max so here is a mouse-to-ms-paint drawing. Try adding more edges where at the corner and then apply smooth modifier. And make these edges really close to the corner.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-04-09, 10:42:17
Reply #8

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
I'm too lazy to start max so here is a mouse-to-ms-paint drawing. Try adding more edges where at the corner and then apply smooth modifier. And make these edges really close to the corner.


thanks Maru ill give it a whirl later :)


2014-04-09, 11:47:46
Reply #9

agentdark45

  • Active Users
  • **
  • Posts: 577
    • View Profile
I'm too lazy to start max so here is a mouse-to-ms-paint drawing. Try adding more edges where at the corner and then apply smooth modifier. And make these edges really close to the corner.

Interesting, I've tended to a avoid using displacement due to the undesirable effect that smoothing has on sharp cornered objects. I might have to give this a whirl...

It would still be nice to have displacement that works like vray's - apply and forget about it, no smoothing groups, geometry modification e.t.c.
Vray who?

2014-04-09, 15:39:58
Reply #10

Juraj

  • Active Users
  • **
  • Posts: 4768
    • View Profile
    • studio website
It would still be nice to have displacement that works like vray's - apply and forget about it, no smoothing groups, geometry modification e.t.c.

I could show you like 50 threads at CGArchitect on Vray's section where people ask the very same question about the same problem, and have been doing so for...past 10 years.
It's endless cycle where people become desperate and everyone gives them only one piece of advice.

So no. It works the very same way only with more (and very nifty) controls. Vray just also offers additional 2 modes (simple SubD and excellent 2D Texture space disp). Same protocol, people just don't know how to displace in general or
don't understand how their geometry behaves in render time. There is the option to force "continual edges" but it's not one-click saver for all cases.


Ok, here is proper workflow : // Renderer agnostic - I use the same workflow in Vray, Maxwell, and Corona. There is no difference, it's still 3dsMax Geometry.

1: Basic wall blockout.
2:Chamfer the corners (using QuadChamfer plugin for example) // Quite bit suitable than direct SubD in this case. It's quite obvious you can't smooth a cube visually ?
[ and on side note, chamfer everything everywhere, for the rest of your life ]]
3:Now you apply single smooth group if there wasn't.
4:You can directly unwrap, or apply box mapping for easier proportions, and then unwrap so it wraps continually around the chamfered corners.
[ to make this step take literally few seconds, unwrap by the spline the chamfered wall now follows horizontally ]
5:Now you can safely displace the walls for visully the best result.


There are possible workaround and dirty ways:

Invert the disp map and use negative displacement: Your geo will displace against each other. No black open edges.
« Last Edit: 2014-04-09, 16:03:34 by Juraj_Talcik »
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2014-04-09, 16:04:56
Reply #11

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
It would still be nice to have displacement that works like vray's - apply and forget about it, no smoothing groups, geometry modification e.t.c.

I could show you like 50 threads at CGArchitect on Vray's section where people ask the very same question about the same problem, and have been doing so for...past 10 years.
It's endless cycle where people become desperate and forget to use logic and their brain.

So no. It works the very same way only with more (and very nifty) controls. Vray just also offers additional 2 modes (simple SubD and excellent 2D Texture space disp). Same protocol, people just don't know how to displace in general or
don't understand how their geometry behaves in render time. There is the option to force "continual edges" but it's not one-click saver for all cases.


Ok, here is proper workflow : // Renderer agnostic - I use the same workflow in Vray, Maxwell, and Corona. There is no difference, it's still 3dsMax Geometry.

1: Basic wall blockout.
2:Chamfer the corners (using QuadChamfer plugin for example) // Quite bit suitable than direct SubD in this case. It's quite obvious you can't smooth a cube visually ?
[ and on side note, chamfer everything everywhere, for the rest of your life ]]
3:Now you apply single smooth group if there wasn't.
4:You can directly unwrap, or apply box mapping for easier proportions, and then unwrapp so it wraps continually around the chamferred corners.
5:Now you can safely displace the walls for visully the best result.


There are possible workaround and dirty ways:

Invert the disp map and use negative displacement: Your geo will displace against each other. No black open edges.


This is basically the approach i did yesterday. I tired chamfered edges but it gave me even more holes even with a smoothing group. Plus I don't really want rounded edges on my sharp bricks. I'll try adding in some support edges and see what happens. Maybe my wall doesn't have enough divisions but it works fine with vray.

Ill repost later tonight.

2014-04-09, 16:10:49
Reply #12

Juraj

  • Active Users
  • **
  • Posts: 4768
    • View Profile
    • studio website
Chamfer doesn't need a radius, it can add support loops only. All very easy with QuadChamfer plugin.

Did you unwraped it correctly ? After chamfering ? Continuous mapping ? Because there is no reason why it wouldn't work then, but it won't if these steps are misaligned,
because each piece of geo is displaced by different piece of map.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2014-04-09, 18:14:29
Reply #13

agentdark45

  • Active Users
  • **
  • Posts: 577
    • View Profile
It would still be nice to have displacement that works like vray's - apply and forget about it, no smoothing groups, geometry modification e.t.c.

I could show you like 50 threads at CGArchitect on Vray's section where people ask the very same question about the same problem, and have been doing so for...past 10 years.
It's endless cycle where people become desperate and everyone gives them only one piece of advice.

So no. It works the very same way only with more (and very nifty) controls. Vray just also offers additional 2 modes (simple SubD and excellent 2D Texture space disp). Same protocol, people just don't know how to displace in general or
don't understand how their geometry behaves in render time. There is the option to force "continual edges" but it's not one-click saver for all cases.


Ok, here is proper workflow : // Renderer agnostic - I use the same workflow in Vray, Maxwell, and Corona. There is no difference, it's still 3dsMax Geometry.

1: Basic wall blockout.
2:Chamfer the corners (using QuadChamfer plugin for example) // Quite bit suitable than direct SubD in this case. It's quite obvious you can't smooth a cube visually ?
[ and on side note, chamfer everything everywhere, for the rest of your life ]]
3:Now you apply single smooth group if there wasn't.
4:You can directly unwrap, or apply box mapping for easier proportions, and then unwrap so it wraps continually around the chamfered corners.
[ to make this step take literally few seconds, unwrap by the spline the chamfered wall now follows horizontally ]
5:Now you can safely displace the walls for visully the best result.


There are possible workaround and dirty ways:

Invert the disp map and use negative displacement: Your geo will displace against each other. No black open edges.

Awesome, thanks for taking the time to post those steps. That will really come in handy!
Vray who?

2014-04-10, 02:09:39
Reply #14

hunter1st

  • Active Users
  • **
  • Posts: 34
    • View Profile
    • hunter1st
Chamfer doesn't need a radius, it can add support loops only. All very easy with QuadChamfer plugin.

Did you unwraped it correctly ? After chamfering ? Continuous mapping ? Because there is no reason why it wouldn't work then, but it won't if these steps are misaligned,
because each piece of geo is displaced by different piece of map.

hey juraj. I've managed to sort it. thanks for the tips. really impressed with the render times. All it needed was some supporting edges.

heres a couple of WIPS


2014-12-02, 15:03:05
Reply #15

cosbu

  • Active Users
  • **
  • Posts: 15
  • civil engineer
    • View Profile
Octane has a feature for displacement called "offset" that basicaly pulls the whole geometry back and the tearing effect is somehow reduced. Can this beed done in corona? I could not find it
civil engineer

2014-12-02, 15:16:19
Reply #16

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
you can do it by lowering both maximum and minimum distances
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-12-02, 17:14:46
Reply #17

cosbu

  • Active Users
  • **
  • Posts: 15
  • civil engineer
    • View Profile
Thank you keymaster for your fast answer. You do great job. I've got brainstuck
civil engineer

2015-04-19, 15:56:04
Reply #18

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
Thanks Jurak for this pointer here. Sorry for digging up an old thread.

I've done something similar but with maybe a few less steps and using max 2015+ standard modifiers.

So, to get rounded corners the 'LAZYier' and a way that works is to:

  • Add a smooth modifier on top of the edit poly. Set to autosmooth (see screenshot).
  • Then add a Chamfer modifier (in max 2015+) over the top of that with the settings in screenshot. Trick here is to smooth the 'unsmoothed edges' and then smooth over that with a threshold of 180.
As long as your very low poly base mesh is unwrapped well then this I find is the easy way to do this. To unwrap the objects I use miauu's easy peel script as part of his script pack vol 2.

Hope this helps someone.

EDIT: This method is also useful when wanting to chamfer edges to. See screenshot of result here. Just flick between from smooth off to unsmoothed edges to get the result you're after in the chamfer modifier. (haven't found a use for smoothed edges yet). Also, set the autosmooth modifier below the chamfer modifier to whatever threshold to want but 30-45 works well in most cases.
« Last Edit: 2015-04-19, 16:23:38 by 3dwannab »

2015-04-20, 10:39:10
Reply #19

3dgraphics

  • Active Users
  • **
  • Posts: 150
    • View Profile
How u subdivide the faces to get a clean result with the displacement map?

2015-04-20, 12:28:43
Reply #20

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
In render settings.

2015-04-20, 15:14:55
Reply #21

3dgraphics

  • Active Users
  • **
  • Posts: 150
    • View Profile
Thanks ;)

2015-04-21, 09:40:51
Reply #22

juang3d

  • Active Users
  • **
  • Posts: 636
    • View Profile
Hey guys, did you tried wi OpenSubDiv?

I did not because I'm sick right now, but you may achieve pretty good defined chamfers and hard edges without having to modify your model with such amount of chamfers, those chamfers destroy the model for future modifications I think, and with OpenSubDiv you can avoid that.

I still have to try also the adaptive mode in max2016 and corona, this could be pretty awesome avoiding huge amount of polygons if they are not needed, but I'm not sure how is it going to behave with displacement.

Just throwing some ideas since I can't do anything right now :P

Cheers!

2015-04-21, 11:48:38
Reply #23

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
The chamfer mod is non destructive ;) And the best thing is that there's no extra loops or manual work needed to create them. I usually turn the effect off from displaying in the viewpprt by right clicking on the modifier in the modifier stack and turning it off in the viewport to speed up the viewport if needed. If I have lots of those modifiers I use the Zorb modifier script to globally turn them off.

Tried sub d with this and couldn't achieve the result as it rounds the corners and not chamfers them.

Ps. Got well soon.

2015-04-22, 20:10:52
Reply #24

juang3d

  • Active Users
  • **
  • Posts: 636
    • View Profile
Hi 3dwannab

I though it was a modelling modification, I did not read it correctly :)

Anyways, I don't mean Sub-D, I mean OpenSub-D, you can use creasing to define the hardness of an edge or vertex, so you don't have to do any chamfer at all (but some support edges may be welcome, not completely needed, but welcome), it's something you have in max 2015 ext2 and in max 2016, I recommend you to take a look at it.

Cheers!

P.S.: Thanks, I hope I'll be up and runnig next week :) Still sick :P

2015-04-23, 14:51:01
Reply #25

Juraj

  • Active Users
  • **
  • Posts: 4768
    • View Profile
    • studio website
Maybe it's the implementation by Autodesk, or it's not as suitable for very precise architectural modelling but I find the Crease&OpenSubdiv to work...just weirdly.

I use "SelectHardEdges" Script (I know 3dsMax has it in ribbon, but it fucking doesn't work at all as should), and Chamfer modifier in Quads mode. I gave up on QuadChamfer modifier, since latest version
produces so much bugs (re-selects random edges), the guy absolutely ignored two emails I sent him. Fantastic product support...
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2015-04-23, 16:26:15
Reply #26

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
My thoughts exactly on the open sub-d. Organic modelling yes, hard edges, no (only with support edges) so may as well use the turbosmooth in this case. I like the chamfer modifier method because it doesn't add any unnecessary polys on 'flat' areas.

Juraj - Selecting hard edges is like using the smooth modifier if you set the angle threshold then max chamfer modifer to smooth based on those angles with the setting in the screenshot I posted above. Works without any manual work what-so-ever (well in my experience with it anyway) :)

2015-04-23, 17:10:56
Reply #27

Juraj

  • Active Users
  • **
  • Posts: 4768
    • View Profile
    • studio website
My thoughts exactly on the open sub-d. Organic modelling yes, hard edges, no (only with support edges) so may as well use the turbosmooth in this case. I like the chamfer modifier method because it doesn't add any unnecessary polys on 'flat' areas.

Juraj - Selecting hard edges is like using the smooth modifier if you set the angle threshold then max chamfer modifer to smooth based on those angles with the setting in the screenshot I posted above. Works without any manual work what-so-ever (well in my experience with it anyway) :)

Ah, ok, now I connected it in my mind :- ) Does it always work correctly ? Perhaps that's what the script is actually doing...I'll check it inside.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2015-04-23, 19:32:47
Reply #28

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
... Does it always work correctly ? Perhaps that's what the script is actually doing...I'll check it inside.
The script selects the edges based on the angle and so does the smooth modifier when you think about it when you combine it with smoothing based on those angles then yeah.


2015-04-23, 19:45:57
Reply #29

Juraj

  • Active Users
  • **
  • Posts: 4768
    • View Profile
    • studio website
:- D Anchorman.
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!