Author Topic: Corona Slicer Material playground!  (Read 19898 times)

2021-12-07, 17:10:01

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 476
    • View Profile
From the latest Corona Renderer 8 Daily Builds Changelog:
  • Added new Corona Slicer Mtl   
Download Link : https://drive.google.com/file/d/1UbEYs_wGvGY_nkw4so69oeuam915awBD/view?usp=sharing

Corona Slicer can be found in "Materials>Corona>CoronaSlicerMtl"

How to use?

1. Create any polygon geometry which you want to use as a Slicer Object.
2. Create a new material "CoronaSlicerMtl" and apply to your slicer object.
3. Intersect your Slicer object with any object you want to slice.








« Last Edit: 2021-12-08, 13:08:57 by maru »
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us

2021-12-07, 17:34:26
Reply #1

marchik

  • Active Users
  • **
  • Posts: 256
    • View Profile
So, if I understand correctly, we cannot leave the light calculation unchanged and the slicer cannot be used as a "complex plane for camera clipping", or I missed smth?

2021-12-07, 17:37:09
Reply #2

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Try using it in rayswitcher, it should help
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2021-12-07, 18:00:04
Reply #3

marchik

  • Active Users
  • **
  • Posts: 256
    • View Profile
Try using it in rayswitcher, it should help

Yes, sometimes I am not very quick-witted, I admit. :D Thanks, Ondra!

PS
so far, the only thing I've found is that we cannot use displacement for this inside slice mtl, otherwise everything works as expected
« Last Edit: 2021-12-07, 18:12:55 by marchik »

2021-12-07, 18:18:22
Reply #4

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
dont worry, proper tutorials that will show this and more are coming in later ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2021-12-07, 19:23:07
Reply #5

John.McWaters

  • Active Users
  • **
  • Posts: 268
    • View Profile
    • JohnMcWaters.com
I haven't used this yet.........but holy heck it looks like the shit! We've been needing something like this for awhile now.

2021-12-08, 06:29:33
Reply #6

scionik

  • Active Users
  • **
  • Posts: 182
    • View Profile
So, if I understand correctly, we cannot leave the light calculation unchanged and the slicer cannot be used as a "complex plane for camera clipping", or I missed smth?

Yeah, I've had the same question.
Thanks to Ondra for the tip on how to do this.

2021-12-08, 20:19:19
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Slicing things in half is fun.

I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-12-09, 23:44:46
Reply #8

Jpjapers

  • Active Users
  • **
  • Posts: 1644
    • View Profile
Im glad this feature is finally getting worked on :) It would be great if the caps could retain the material of the object they belong to. Im not sure if thats already a thing but i couldnt see an example of that up there.

2021-12-10, 10:40:28
Reply #9

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
That's already possible. My example above, does exactly that.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-12-10, 12:04:50
Reply #10

Jpjapers

  • Active Users
  • **
  • Posts: 1644
    • View Profile
That's already possible. My example above, does exactly that.

Oh ok i had assumed there were multiple slicers at play there, Nevermind!

2021-12-10, 12:21:33
Reply #11

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
there were multiple slicers at play

As you can see in the picture: obviously only one chain saw ;]


Good Luck




Never underestimate the power of a well placed level one spell.

2021-12-10, 14:41:10
Reply #12

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Haha, actually Jpjapers is right, i used couple slicers there. The second one was dedicated specifically for the rear seat, as i wanted to adjust UV mapping for better looking capping. Nevertheless, no special cap material was used.

BTW, i would like to ask devs if there's something can be done to improve capping of intersecting meshes. Currently it gives pretty messy result, as you can see from engine block and gearbox.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-12-13, 13:58:21
Reply #13

julobo

  • Active Users
  • **
  • Posts: 10
    • View Profile
hi, good work on this.
Would it be possible to have an option to ignore xref scenes? For example, cut the walls of an appartment but not the furniture of the xref...

2021-12-13, 22:17:40
Reply #14

shoebu23

  • Active Users
  • **
  • Posts: 24
    • View Profile
Devs,

First- amazing!  This is a totally new way to approach imagery and very very excited about it!  One issue(and this was sort of mentioned regarding intersecting meshes) is to figure out how to handle situations like the attached.

Left bottle - no slicer
Second bottle - showing the effect on just the liquid - amazing, dream come true!!!
Third bottle - the 'error' when you introduce the glass bottle to the Slicer (this is because the liquid intersects with the walls of the glass for correct rendering)
Forth bottle - final (incorrect) result with the glass is ignored in the Slicer Material.  Since the cap is only taking place in the space between the glass walls.

Cheers!



2021-12-26, 18:09:29
Reply #15

giza

  • Active Users
  • **
  • Posts: 26
    • View Profile
Hi,

is there any specific rule about the geometry that gets sliced with this new material?
I was testing it with a file where the mesh is imported from ArchiCAD (walls of the apartment) and as you may see in the attached screenshot it makes some weird spots here and there for some reason. It is same in interactive and regular rendering.

2022-01-03, 09:32:42
Reply #16

rowmanns

  • Corona Team
  • Active Users
  • ****
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

is there any specific rule about the geometry that gets sliced with this new material?
I was testing it with a file where the mesh is imported from ArchiCAD (walls of the apartment) and as you may see in the attached screenshot it makes some weird spots here and there for some reason. It is same in interactive and regular rendering.
Hi,

I believe this issue has already been fixed internally and should be out in the next daily build :)

Cheers,

Rowan
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2022-01-05, 11:54:57
Reply #17

giza

  • Active Users
  • **
  • Posts: 26
    • View Profile
rowmanns That is great, thank you.

2022-01-05, 16:51:26
Reply #18

rowmanns

  • Corona Team
  • Active Users
  • ****
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
rowmanns That is great, thank you.
Hi,

Just to let you know it didn't make it into todays daily build. But it is on the way :)

Rowan
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2022-01-09, 11:48:11
Reply #19

LorenzoS

  • Active Users
  • **
  • Posts: 291
    • View Profile
First of all, you have done a great job.
I ask you if it would be possible to have an option that reverses the way of working of the coronaSlicerMtl, that is to show only what intersects the geometry to which the coronaSlicerMtl is applied.

thank you

2022-01-13, 13:18:33
Reply #20

karlingermano

  • Active Users
  • **
  • Posts: 15
    • View Profile
Hi,

The new slicer is amazing, really useful new feature!
I have one question: is it possible to have displacement on the slicer object. For me it seem that displacement works properly on the object which I sliced from but it isn't visible on the slicer.
Did I do something wrong?

Thanks

2022-01-14, 13:23:53
Reply #21

rowmanns

  • Corona Team
  • Active Users
  • ****
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

is there any specific rule about the geometry that gets sliced with this new material?
I was testing it with a file where the mesh is imported from ArchiCAD (walls of the apartment) and as you may see in the attached screenshot it makes some weird spots here and there for some reason. It is same in interactive and regular rendering.
Fixed in the latest daily which you can find here: https://forum.corona-renderer.com/index.php?topic=33839.msg193862#msg193862

Let me know if you still have issues.
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2022-01-15, 18:39:54
Reply #22

LorenzoS

  • Active Users
  • **
  • Posts: 291
    • View Profile
Hi,
it wil be possible to include/esclude also an xrefscene from slicer material?

2022-01-18, 15:39:40
Reply #23

jasond

  • Active Users
  • **
  • Posts: 36
    • View Profile
I'm so glad this feature will finally be implemented! Will save many headaches.

In its current form, can the coronaslicer only cap in one colour? For the icing on the cake, is there a way to set up multiple cap colours?

Currently when using the slice modifier, I simply create a 2 mat multi-subobject material to give the sliced part of an object a different colour. (Slice modifier + cap typically assigns mat id 2). This allows you to differentiate between sliced, nested objects and have the slice plane as an instanced modifier.

Attached is a crude example

2022-01-18, 15:47:35
Reply #24

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5434
    • View Profile
Only way I could think of is to duplicate the slicer, use include exclude list as to which objects each one affects.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2022-01-18, 15:55:13
Reply #25

jasond

  • Active Users
  • **
  • Posts: 36
    • View Profile
I thought of this as well but then you'd have to keep instancing slicer objects / materials. I sometimes have to section 10-20 objects (machine parts) at once to create a section view so this would be a tedious option...

I suppose more complex slice scenarios like this may still be a job for the slice modifier. It's just no good at complex imported CAD geometry as it often creates lots of artifacts and distorted geometry.

2022-02-08, 10:37:38
Reply #26

K3D.

  • Users
  • *
  • Posts: 1
    • View Profile
Yep, slicing things is fun :)

Honestly, I thought it would only work with simple geometry, but it works great with whatever complex shape you use. Great job on this one!

2022-02-08, 11:17:03
Reply #27

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12709
  • Marcin
    • View Profile
I'm so glad this feature will finally be implemented! Will save many headaches.

In its current form, can the coronaslicer only cap in one colour? For the icing on the cake, is there a way to set up multiple cap colours?

Currently when using the slice modifier, I simply create a 2 mat multi-subobject material to give the sliced part of an object a different colour. (Slice modifier + cap typically assigns mat id 2). This allows you to differentiate between sliced, nested objects and have the slice plane as an instanced modifier.

Attached is a crude example


You can also use it with Multimap in "instance" or "material id" mode - https://support.corona-renderer.com/hc/en-us/articles/4402649799441
Then the cap will have a different color depending on what object is capped.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-02-08, 11:18:15
Reply #28

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12709
  • Marcin
    • View Profile
Yep, slicing things is fun :)

Honestly, I thought it would only work with simple geometry, but it works great with whatever complex shape you use. Great job on this one!

Yeah, it does work with complex shapes! :)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-02-08, 16:03:50
Reply #29

jasond

  • Active Users
  • **
  • Posts: 36
    • View Profile
I'm so glad this feature will finally be implemented! Will save many headaches.

In its current form, can the coronaslicer only cap in one colour? For the icing on the cake, is there a way to set up multiple cap colours?

Currently when using the slice modifier, I simply create a 2 mat multi-subobject material to give the sliced part of an object a different colour. (Slice modifier + cap typically assigns mat id 2). This allows you to differentiate between sliced, nested objects and have the slice plane as an instanced modifier.

Attached is a crude example


You can also use it with Multimap in "instance" or "material id" mode - https://support.corona-renderer.com/hc/en-us/articles/4402649799441
Then the cap will have a different color depending on what object is capped.

Just tried with both options. Unless I'm doing something wrong, neither work. In the attached example, the inside tube is set to material id 3 for both tests. The multimap in 'material id' mode (left) never gets to the third colour (purple) plus there's an anomaly when the cutter doesn't fully pass through the object being sliced and switches to id 2. The inside tube should have purple caps, the outside should be red since its id 1.

Not sure how instance would work here in the case that we do not have instanced objects. Also, I have not tested objects that are assigned multi-subobject materials which we use often.


2022-04-20, 15:24:55
Reply #30

Jpjapers

  • Active Users
  • **
  • Posts: 1644
    • View Profile
Is there any future scope to have the slicer capping functionality added to the camera clipping settings in the corona camera? A Checkbox for capping would be useful for rendering orthographic elevations with the ortho projection camera.
« Last Edit: 2022-04-20, 15:34:56 by Jpjapers »

2022-05-04, 12:10:45
Reply #31

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 476
    • View Profile
Hi,

I have logged this feature request in our system to be reviewed by our devs.

(Report ID=1589)
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us

2022-05-05, 01:22:45
Reply #32

shortcirkuit

  • Active Users
  • **
  • Posts: 307
    • View Profile
Is there any future scope to have the slicer capping functionality added to the camera clipping settings in the corona camera? A Checkbox for capping would be useful for rendering orthographic elevations with the ortho projection camera.

this would be absolutely perfect!

2022-05-05, 14:56:40
Reply #33

jasond

  • Active Users
  • **
  • Posts: 36
    • View Profile
Additional functionality to allow for different cap colours based on object/material id would be so helpful for when you're slicing many objects at a time with a single slicer. Drop a multimap in there for cap colour and bam, done. As it is now, looks like you can only have a single cap colour for everything. Sure you can have  many instances of a slicer to cut multiple objects to allow for multiple cap colours but that's very tedious when in theory you only need one.

2022-05-06, 09:21:45
Reply #34

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
Is there any future scope to have the slicer capping functionality added to the camera clipping settings in the corona camera? A Checkbox for capping would be useful for rendering orthographic elevations with the ortho projection camera.

Here is a working mock-up: open scene, select camera, run IR, activate camera clipping and cruise around. I misused the "show in viewport" checkbox to toggle slicer material on/off.


Good Luck



Never underestimate the power of a well placed level one spell.

2022-05-06, 13:17:40
Reply #35

aaouviz

  • Active Users
  • **
  • Posts: 882
    • View Profile
    • Another Angle 3D
Is there any future scope to have the slicer capping functionality added to the camera clipping settings in the corona camera? A Checkbox for capping would be useful for rendering orthographic elevations with the ortho projection camera.

+1!
Nicolas Pratt
Another Angle 3D
https://www.instagram.com/anotherangle3d/

2022-05-07, 21:36:21
Reply #36

Jpjapers

  • Active Users
  • **
  • Posts: 1644
    • View Profile
Is there any future scope to have the slicer capping functionality added to the camera clipping settings in the corona camera? A Checkbox for capping would be useful for rendering orthographic elevations with the ortho projection camera.

Here is a working mock-up: open scene, select camera, run IR, activate camera clipping and cruise around. I misused the "show in viewport" checkbox to toggle slicer material on/off.


Good Luck

Oh Interesting! So it just works already just accidentally??

2022-05-09, 08:44:53
Reply #37

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
So it just works already just accidentally??

Depends on the point of view. As you can see, you can already do it by using a simple rig with a linked slicer box which changes its size depending on the clipping plane and camera frustum. I just wanted to know how it "feels" to have such a feature.


Good Luck



Never underestimate the power of a well placed level one spell.

2022-10-04, 12:08:25
Reply #38

aaouviz

  • Active Users
  • **
  • Posts: 882
    • View Profile
    • Another Angle 3D
Is it possible to reverse the clipper?

So it works as an includes only?

An example; I want soil in a pot. I get a nice soil model from megascans but it isnt the shape of my pot. So I create an 'inverse' of the pot shape (so shell outwards from it) and use this to clip the excess megascans 3d soil model.

But it'd be nice to simply use the pot shape instead of making a new model. So essentially all I'd have to do is apply the clipper material and ideally tick 'boolean' or something, so it clips everything OUTSIDE of the clipping shape.
Nicolas Pratt
Another Angle 3D
https://www.instagram.com/anotherangle3d/

2022-11-04, 21:15:07
Reply #39

LorenzoS

  • Active Users
  • **
  • Posts: 291
    • View Profile


2022-12-02, 18:44:12
Reply #41

jrgby

  • Active Users
  • **
  • Posts: 69
    • View Profile
I just tried using this to recess some spotlights but I guess it still interprets the light as being inside geometry and doesn't work (inside parent geo and slicer object).
See image of ceiling slab, with intersecting cylinder+slicer mtl and coronalight.

Could this work somehow? Feels like it would be a pretty handy feature.

2022-12-02, 18:50:55
Reply #42

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Did you use include/exclude feature, or doesn't it work with hierarchies?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2022-12-05, 10:57:25
Reply #43

jrgby

  • Active Users
  • **
  • Posts: 69
    • View Profile
Did you use include/exclude feature, or doesn't it work with hierarchies?
Ok, I completely overlooked the material excludes - works perfectly!

2023-02-05, 14:53:09
Reply #44

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Just discovered that if you include parent object in Slicer's include/exclude list, then its effect propagate to child objects as well. If it's not the limitation of 3ds max itself, then it would be nice to have an option to affect only included object without its child.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-02-08, 12:46:07
Reply #45

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 543
    • View Profile
Just discovered that if you include parent object in Slicer's include/exclude list, then its effect propagate to child objects as well. If it's not the limitation of 3ds max itself, then it would be nice to have an option to affect only included object without its child.

Hi, thanks for checking this.
It is now reported.
A checkbox to affect children or not may be a good idea.

(Internal ID=1051616618)
Aram Avetisyan | chaos-corona.com
Chaos Corona Support Representative | contact us

2023-02-08, 13:23:04
Reply #46

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
That would be sweet indeed. Thank you!
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-04-28, 10:46:01
Reply #47

Jeriel

  • Users
  • *
  • Posts: 2
    • View Profile
I have an Autocad file as a dwg link in max. Working units are in mm.

Assigning a UVW (modifier) gives a normal result without using the slicer material. (left image)  Using the slicer material however makes the UVW oversized on the sliced parts. (right image) Sliced faces are marked red.



Coronaslicermtl options: cap sliced geometry on, override cap material off, no exclusions, assigned to a simple 3ds max box. Insulation material is non real world scale, tiling 1/1 and UVW modifier with the correct scale in mm's. Issue also happens on simple 3ds max objects. Not only on dwg links. Also tested it with real-world scale, same results.





2023-04-28, 10:57:45
Reply #48

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Slicer capping gets its UV coordinates from the slicer object, so you need to adjust its UVs to get desired scale.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-04-28, 15:34:55
Reply #49

Jeriel

  • Users
  • *
  • Posts: 2
    • View Profile
Ah, that does the job.Thanks!

Well, knowing there are multiple objects with multiple UVW's being sliced using 1 coronaslicermtl-object ... Can a checkbox "Use target UVW's" being added to the Coronaslicermtl?


2023-04-29, 11:41:00
Reply #50

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I think it's easier said than done, or even imagine how that could possibly work. It seems pretty intuitive when we talk about slicing boxes with perpendicular faces and box mapping, but can you say how mapping should be transferred when objects of arbitrary shape are involved?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures