Author Topic: Transparency versus geometry comparison  (Read 21671 times)

2014-07-10, 19:43:10

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8843
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Did a little test to see what's the best method to make foliage in Corona. Results are self-explanatory.
Opacity texture used, was 8bit RGB tiff. Should i use grayscale image as opacity map, with method B i can get very similar render times to method C, so B is a clear winner for me. Of course, your mileage may vary ;]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-07-10, 19:54:25
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
That makes sense. Embree can chew through any number of geometry, as long as it does not include many transparent surfaces. That involves switching over to texture evaluation, calling slow 3dsmax bitmaps, then switching back, etc.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-07-10, 20:01:01
Reply #2

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8843
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Speaking about slow max's bitmaps, during this test i played a bit with filtering. I was shocked how rapidly performance is droping when one lowers blur parameter in coordinates rollout or add aditional bitmaps to material o_O
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-07-10, 20:03:44
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
lowers blur? Dont you mean increases?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-07-10, 20:11:38
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
This is interesting, I would never expect such differences in rendering time.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-07-10, 20:25:28
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8843
  • Let's move this topic, shall we?
    • View Profile
    • My Models
lowers blur? Dont you mean increases?
No, i mean lowering. If i set texture bluring to 0.1 for diffuse, translucency and normal maps, i get about 66% performance in rays/s compare it to default bluring.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-07-10, 20:31:17
Reply #6

Ondra

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

2014-07-10, 20:51:59
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
And what if you disable filtering from Corona's ui? Does it make rendering faster or slower?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-07-10, 21:11:36
Reply #8

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8843
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Strangely enough, it makes rendring slower than with filtering on and default (1.0) bluring of textures, but faster than filtering - on and bluring - 0.1
Oh my... must be my mistake somwhere.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-07-11, 01:02:25
Reply #9

Juraj

  • Active Users
  • **
  • Posts: 4761
    • View Profile
    • studio website
I keep the 'B' for my foliage. It's the best of both worlds, gives edge detail of mapped alpha, but still reasonable performance.

The filtering dillema, is just something I hate. Sometimes it gives of superior result, sometimes too shitty artifacts. It's odd how it affects performance.
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-07-11, 16:09:08
Reply #10

steyin

  • Active Users
  • **
  • Posts: 375
  • BALLS
    • View Profile
    • Instagram Page
So then the days of setting blur to default low value are to be gone? Interesting. I always followed Ludvik's advice on that one.

2014-07-11, 16:10:20
Reply #11

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
I always disable filtering globally. :)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2014-07-12, 03:48:27
Reply #12

Juraj

  • Active Users
  • **
  • Posts: 4761
    • View Profile
    • studio website
So then the days of setting blur to default low value are to be gone? Interesting. I always followed Ludvik's advice on that one.

I always found interesting how differently people set this up.

For example:

Bertrand: Filtering OFF, but Blur kept default 1.0
Grant W: Filtering ON, but Blur adjusted to 0.01

Then there is of course, OFF + 0.01, which should in theory give the best result most close to original texture, but that often just produces artifacts, and downright doesn't work for sensitive maps (bump, glossy,etc..).

Now I am interested if this data is something handled purely by 3dsMax, or is it interpreted differently by renderers as this thread suggests ?
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-07-12, 09:19:48
Reply #13

Stan_But

  • Active Users
  • **
  • Posts: 526
    • View Profile
    • https://www.behance.net/archdizs
Quote
Bertrand: Filtering OFF, but Blur kept default 1.0
Grant W: Filtering ON, but Blur adjusted to 0.01

Interesting. But if Filtering OFF is not matter what mult. of texture blurring. Cause it is OFF

I use same setup as Maru - Filtering OFF.

2014-07-12, 10:48:51
Reply #14

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8843
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Interesting. But if Filtering OFF is not matter what mult. of texture blurring. Cause it is OFF

I use same setup as Maru - Filtering OFF.
I am under the same impression as well.
I think, i gonna do some filtering tests soon and split the thread to separate topics.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2014-07-12, 20:42:20
Reply #15

Juraj

  • Active Users
  • **
  • Posts: 4761
    • View Profile
    • studio website
I also thought the same, that if filtering is OFF, blur doesn't matter. But it seems to be it does. Just check the preview ( I have small scene in Vray opened right now and it still makes difference).
I don't therefore think the filtering and blur is connected.

I used filtering OFF for quite some time too, it was the only way how to get good clarity in 2k renders. But when I started rendering more hi-res, and used high-res texture (4k+ with lot's of detail),
filtering off would give me often lot's of noise and artifacts and some materials with reflection/glossiness driven by these textures would appear somehow odd/noisy/artifacty.

And for animations, I have to keep filtering ON otherwise I sometimes get micro-flicker in very detailed textures.
« Last Edit: 2014-07-12, 20:47:42 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-07-12, 21:06:30
Reply #16

lacilaci

  • Active Users
  • **
  • Posts: 749
    • View Profile
But you guys do use filtering on bump maps right? Cause whenever i tried unfiltered bitmaps for bump it's just lot of noise... On other maps i don't turn filtering off, just lower filtering/blur value to 0.3+-.

But I guess I should note here that most of the time i turn off image filtering for corona in vfb rollout/render settings.

2014-07-12, 21:44:03
Reply #17

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
image filtering and texmap filtering are 2 COMPLETELY different things.

BTW: yes, bump mapping needs always some filtering to work, the algorithm is based on it.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-07-18, 15:55:11
Reply #18

greysheep5

  • Active Users
  • **
  • Posts: 32
    • View Profile
    • cy architecture
image filtering and texmap filtering are 2 COMPLETELY different things.

BTW: yes, bump mapping needs always some filtering to work, the algorithm is based on it.

so keymaster, for bitmaps in the bump slot one should always use filtering like pyramidal or summed area instead of none? and what about the blur values?

it was my impression with vray 2.0 that everything worked quite well with almost every map set to filter=none and blur 0,01 so we tried to apply that to corona as well. but as people like juraj stated, the matter is probably a bit more complicated.


the attached image was rendered with corona (only a little post color/contrast/glow) to illustrate a room of an old house we are planning/converting currently (architectural design not visualization mostly)

it´s not meant to be something special or a nice visualization on it´s own but just part of the planning process... anyway, the thing is, in this scene (because it had to cost no time) every single map was set to filtering=none and blur 0,01. even the bumpmaps... we rendered it in 3000px wide and with about 100 passes, turned out quite fine i think, no? i mean especially the (quite dramatic and not very well mapped) bump mapping looks like it works to me?

besides this filtering issues the scene uses every conceivable sin like color correct maps (they are supposed to be slow too?!) for single bitmaps to alter brightness and contrast for using them in different slots of the materials (diffuse, bump, reflection). plus it is lit via an HDR light outside and a few smaller visible and invisible spheres and planes inside... rendertimes for those 100 passes were not very high and i think to get the same out of the box result with vray in reasonable time we would have had a hard time.

so thanks, conclusion again, corona is awesome. just my 2 cents to the topic, not very scientific. ;)

we will experiment a bit more with this whole bitmap filtering stuff i guess, always a pleasure to read how other people do it.

best regards,

chris.
« Last Edit: 2014-07-18, 15:59:37 by greysheep5 »

2014-07-18, 16:19:34
Reply #19

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
I dont know what happens internally in 3dsmax when you use bump mapping without filtering. I just know that you cannot evaluate bump map from a point sample - you need to look into its neighbourhood, which is very similar to what filtering does.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-07-18, 16:49:11
Reply #20

greysheep5

  • Active Users
  • **
  • Posts: 32
    • View Profile
    • cy architecture
I dont know what happens internally in 3dsmax when you use bump mapping without filtering. I just know that you cannot evaluate bump map from a point sample - you need to look into its neighbourhood, which is very similar to what filtering does.

thank you keymaster! sounds convincing, even if i am no programmer by any means. ;)

i will look into that and re-render some scenes for more comparisons. anyway, corona bump mapping works very well compared to what i was expecting from bumps coming from vray.

2015-01-05, 11:54:19
Reply #21

bouhmidage

  • Active Users
  • **
  • Posts: 90
  • Open for any architectural freelance work
    • View Profile
    • Kam studio
How do you converted the geometry ( with alpha map ) to an object  ??

2015-01-17, 10:59:29
Reply #22

druwee

  • Active Users
  • **
  • Posts: 39
    • View Profile
So then the days of setting blur to default low value are to be gone? Interesting. I always followed Ludvik's advice on that one.

I always found interesting how differently people set this up.

For example:

Bertrand: Filtering OFF, but Blur kept default 1.0
Grant W: Filtering ON, but Blur adjusted to 0.01

Then there is of course, OFF + 0.01, which should in theory give the best result most close to original texture, but that often just produces artifacts, and downright doesn't work for sensitive maps (bump, glossy,etc..).

Now I am interested if this data is something handled purely by 3dsMax, or is it interpreted differently by renderers as this thread suggests ?

interesting indeed. - i have been battling with texture blurriness and concluded that high res textures need the Grant approach and smaller resolution textures can do quite well with Betrands approach

the measure being high res 3000x plus and low res being anything below 2500x

interested to hear the technical logic behind this phenomena. but common sense would tilt towards pixel density and how much work the blur&filtering would need to do per relationship between pixels.

2015-02-04, 14:43:18
Reply #23

Demogorgon

  • Active Users
  • **
  • Posts: 10
    • View Profile
I've always used a summed area filter and 1.0 blur :(

2015-04-23, 11:05:12
Reply #24

macrog

  • Users
  • *
  • Posts: 2
    • View Profile
Hi,

is there any script for mass change textures filtering (max 2015) ? I've tried setBitmapParams and massFiltering - but they seems to don't work with Corona materials

thanks in advance

2016-03-28, 12:15:52
Reply #25

Bzuco

  • Active Users
  • **
  • Posts: 110
    • View Profile
    • personal web page
If you dont have option to change leaf geometry shape(example B,C from first post), keep leafe geometry as it is and just decrease color depth of leafs alpha image from e.g. 8bit to only 1bit B/W and save it as png. It has only tiny visual impact but same speed improvement like in example B.