Author Topic: ComplexFresnel Texmap  (Read 65765 times)

2015-04-27, 03:02:50

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Beta version released. Quick presets test (used same glossiness value for all materials (exl. Chromium) only for testing purpose).
Tested with V-Ray 2.x.x, 3.x.x, Corona Renderer 1.x.x, Default Scanline

Based on OSL shader code by Vlado (Chaos Group): http://docs.chaosgroup.com/display/OSLShaders/Complex+Fresnel+shader#

Installation instructions included.

2015-04-27, 03:27:32
Reply #1

oncire

  • Active Users
  • **
  • Posts: 59
    • View Profile
thanks!

2015-04-27, 17:27:26
Reply #2

steyin

  • Active Users
  • **
  • Posts: 375
  • BALLS
    • View Profile
    • Instagram Page
I assume this is like Grant's method of adjusting the colormap graph, but instead you can insert the exact values for RGB based off the wavelength charts?

2015-04-27, 23:47:59
Reply #3

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Texmap calculate own fresnel for each wavelength. If you put texmap in the Corona material reflection color slot - don't forget disable material fresnel calculations (enter 999) :)

2015-04-28, 09:52:03
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Hi Regimantas, is it possible to add ability to save own presets or we have to go with map / material library route?

Didn't have much time to play with it, but i find results rather strange. But of course more tests is needed to draw some conclussions.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-04-28, 17:02:10
Reply #5

gabyanz

  • Active Users
  • **
  • Posts: 38
    • View Profile
Any chanche to have it for max 2012?

I'd like to play with.... since I've read the Viscorbel article...


tnx
Gaby

2015-04-28, 20:45:02
Reply #6

fco3d

  • Active Users
  • **
  • Posts: 54
    • View Profile
So... how do I use this?
If I go to that website link I only get one value for n and k, I can't find anything that tell me the RGB parts,
also if I compare the presets values with the info in that website, they look different.

Any ideas?
Thanks.

2015-04-28, 21:42:57
Reply #7

steyin

  • Active Users
  • **
  • Posts: 375
  • BALLS
    • View Profile
    • Instagram Page
So... how do I use this?
If I go to that website link I only get one value for n and k, I can't find anything that tell me the RGB parts,
also if I compare the presets values with the info in that website, they look different.

Any ideas?
Thanks.

The RGB wavelength values are taken as the median of their ranges typically. If you look up red on wikipedia for example, its range is 620-740, so the 650 value used in the map is an approximation of its average. You would then find that number for each color, and input it into the wavelength box on the refractive index page.

For example (the copper values), inputting the R value of .65 gives you an n=.27105 and k=3.6092, hence the .271 and 3.609 in the map. Inputting the same RGB wavelength values under a different material from the index pull down will give you the corresponding n and k values for that material (ie: for aluminum, R value of .65, n=1.3424, k=7.4737, which aligns with the values on the fresnel map)

These are estimated numbers of course, not exact values.

2015-04-29, 01:08:50
Reply #8

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Another experiment ;)
I try to develop a Texmap plug-in which reproduces the effect of thin film interference on a surface.
It is based on code: http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/thin-film-interference-for-computer-graphics-r2962
Plugin will be free and compatible with Corona Renderer.

2015-04-29, 01:21:57
Reply #9

fco3d

  • Active Users
  • **
  • Posts: 54
    • View Profile
So... how do I use this?
If I go to that website link I only get one value for n and k, I can't find anything that tell me the RGB parts,
also if I compare the presets values with the info in that website, they look different.

Any ideas?
Thanks.

The RGB wavelength values are taken as the median of their ranges typically. If you look up red on wikipedia for example, its range is 620-740, so the 650 value used in the map is an approximation of its average. You would then find that number for each color, and input it into the wavelength box on the refractive index page.

For example (the copper values), inputting the R value of .65 gives you an n=.27105 and k=3.6092, hence the .271 and 3.609 in the map. Inputting the same RGB wavelength values under a different material from the index pull down will give you the corresponding n and k values for that material (ie: for aluminum, R value of .65, n=1.3424, k=7.4737, which aligns with the values on the fresnel map)

These are estimated numbers of course, not exact values.

Thank you for the explanation, now it make sense.

2015-04-29, 10:14:13
Reply #10

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Any chanche to have it for max 2012?

I'd like to play with.... since I've read the Viscorbel article...

tnx
Gaby

Unfortunately, lower than 2013 it isn't planned.

2015-04-30, 01:57:17
Reply #11

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Small ThinFilm texmap test.
Works perfectly for Corona Interactive - it is possible to experiment up to infinity... :D

2015-04-30, 10:57:50
Reply #12

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • Marcin
    • View Profile
This looks so sexy. Can't wait to try it! Reminds me of the good old CoronaColorMapper times:
https://forum.corona-renderer.com/index.php/topic,577.msg4397.html#msg4397
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2015-04-30, 12:09:52
Reply #13

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
The thin film tests look good!

2015-04-30, 12:26:26
Reply #14

dubcat

  • Active Users
  • **
  • Posts: 425
  • ฅ^•ﻌ•^ฅ meow
    • View Profile
Small ThinFilm texmap test.
Works perfectly for Corona Interactive - it is possible to experiment up to infinity... :D

Love it !
             ___
    _] [__|OO|
   (____|___|     https://www.twitch.tv/dubca7 / https://soundcloud.com/dubca7 ( ͡° ͜ʖ ͡°) choo choo

2015-04-30, 13:27:13
Reply #15

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be

2015-04-30, 17:39:39
Reply #16

antanas

  • Active Users
  • **
  • Posts: 269
  • Hmm ...
    • View Profile
 Really nice things both of those!
 Looking at 'em, they got me thinking- it could probably be possible to do some similar map for translucency fraction map and of how tremendously helpful that map could be, I mean some sort of similar falloff driven map which could have some presets for imitation some real world translucency values (I know those arent' there in reality, but...)  for let's say some plastics, leaves, marbles and other semitransparent stones - those which can be relatively easily faked without the use of sss. Plus that map could have some fresnel driven map inputs on it's own to help imitate some of the more complex stuff, though not necessary cause one can possibly use it in the mix or coronaMix maps to make that, still it could be easier to use that way for sure. Of course some logic must be found for it to operate in the desired/predictable way + no small amount of testing might be needed too but in the end, something tells me, it could be really great )

2015-04-30, 18:22:29
Reply #17

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
So... how do I use this?
If I go to that website link I only get one value for n and k, I can't find anything that tell me the RGB parts,
also if I compare the presets values with the info in that website, they look different.

Any ideas?
Thanks.

The RGB wavelength values are taken as the median of their ranges typically. If you look up red on wikipedia for example, its range is 620-740, so the 650 value used in the map is an approximation of its average. You would then find that number for each color, and input it into the wavelength box on the refractive index page.

For example (the copper values), inputting the R value of .65 gives you an n=.27105 and k=3.6092, hence the .271 and 3.609 in the map. Inputting the same RGB wavelength values under a different material from the index pull down will give you the corresponding n and k values for that material (ie: for aluminum, R value of .65, n=1.3424, k=7.4737, which aligns with the values on the fresnel map)

These are estimated numbers of course, not exact values.

Let me know if you want to improve this - there are some CSV values that allow you to convert between spectrum and cieRGB/XYZ/sRGB. Each of sRGB primaries actually corresponds to multiple spectral wavelengths
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-05-01, 01:52:41
Reply #18

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
Really nice. Only just got round to using this now. And thanks very much.

Would it be possible to only have just the n values also. I know we can manually type this in the the Fresnel IOR but with this plugin maybe there's a possibility to save these reusable values as a preset and for the complex metals that have different value in the RGB range which was suggested above somewhere.

So with this plugin you can save values for basic materials like polycarbonate with a Fresnel IOR (n value) of 1.5846 http://refractiveindex.info/?shelf=3d&book=plastics&page=pc this can be saved without the need to refer back to a reference.

Would be really handy to have a seperate area for basic materials and n values along with what's there. So we could plug it into the Fresnel IOR map for the simple mat types also. Just a wee suggestion.

Again, thanks for the freebee :)
« Last Edit: 2015-05-01, 02:05:41 by 3dwannab »

2015-05-01, 03:08:16
Reply #19

oncire

  • Active Users
  • **
  • Posts: 59
    • View Profile
+1 for presets especially for repeatetive task... i dont know how plugins works.. but you can add "saveinisettings" and "getinisettings" in the code for user to load save some values...

2015-05-01, 05:06:13
Reply #20

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
+1 for presets especially for repeatetive task... i dont know how plugins works.. but you can add "saveinisettings" and "getinisettings" in the code for user to load save some values...

At this stage I don't think of the user presets. Perhaps in the future... It's not a maxscript - c++. Implementation is possible, but it not an easy way as with maxscript. But it is possible - read/write values from/to text/xml file or whatever.
About single n value - it exactly isn't :) This texmap is not for this purpose.

2015-05-02, 03:44:20
Reply #21

danielmn

  • Active Users
  • **
  • Posts: 70
    • View Profile
great job siger

here are some test i did with the copper preset  and using the glossy falloff curve viscorbel talks about.
Daniel M. Najera
3D Enviroment Artist
danielmn81@gmail.com
https://www.facebook.com/daniel.m.najera1

2015-05-04, 14:03:17
Reply #22

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
ComplexFresnel texmap plugin for 3ds Max version 1.0.0 available for download (Free!).
http://www.sigerstudio.eu/shop/3ds-max/sigertexmap-complexfresnel/

2015-05-04, 19:06:22
Reply #23

oncire

  • Active Users
  • **
  • Posts: 59
    • View Profile
cool!!!... and with "presets"...

2015-05-11, 01:34:25
Reply #24

aTanguay

  • Active Users
  • **
  • Posts: 44
    • View Profile
Thank you for both of these map types...they're very very cool.

Mmmm, subtle.

2015-05-12, 16:40:09
Reply #25

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
ComplexFresnel texmap plugin updated to v.1.0.1
Fixed Thread Safety issues. I recommend to re-download updated version for production use.
http://www.sigerstudio.eu/shop/3ds-max/sigertexmap-complexfresnel/

Now texmap can be used and as simple Fresnel map. Enter 0.0 values for k parameter. When n parameter values will be different - you get a colored Fresnel curve :) For metals it's physically incorrect, use both params (n and k).
« Last Edit: 2015-05-12, 16:46:09 by Siger »

2015-05-18, 23:26:59
Reply #26

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
ComplexFresnel plugin updated (v.1.0.2 - minor bug fixes).

2015-05-25, 22:13:29
Reply #27

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
ComplexFresnel plugin updated (v.1.0.3 - added standard Output dialog).

2015-07-03, 16:40:38
Reply #28

VASLAVO

  • Active Users
  • **
  • Posts: 295
    • View Profile
some issues with this plugin, if you open a scene created with an earlier 1.03 version it renders wrong or if you pick the map inside the material (complex fresnel) 3dsmax crashes, and if you open an scene created with 1.03(new version) on an pc that have an earlier version of the plugin installed, it crashes to, here is a pic with the error result with the new version of the plugin.

2015-07-10, 13:26:30
Reply #29

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Hi,
yes, early versions not compatible with newer version: added Output dialog - changed paramblock. ThinFilm plugin have the same issues.
Problem can be solved by paramblock version checking, but I can solve it only when return to home. Currently I'm on leave...

2015-07-10, 16:36:54
Reply #30

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be

2015-07-11, 07:45:42
Reply #31

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Hopefully you mean "on holiday"...

Yes :D

2015-08-19, 15:44:05
Reply #32

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Currently I'm work on new CMPPmax update. I think about remade all metal materials with my ComplexFresnel plugin.
What your opinion? Whether it is worth doing it? In principle, materials will be more physically correct...

2015-08-19, 17:25:51
Reply #33

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 761
    • View Profile
    • belly.be
I am quit happy with the current presets.
Mostly if people on different forums talk about making materials better on you comapre those results with there previous results, you hardly see any noticeable changes.
If I were you and you see clearly the changes, I would make use of your plugin.




2015-08-19, 17:42:13
Reply #34

steyin

  • Active Users
  • **
  • Posts: 375
  • BALLS
    • View Profile
    • Instagram Page
I think it helps make your product more unique if you're including a map you made with the materials. Anytime I use your mats I replace the falloff with the fresnel map, so having it done for me already would be nice too.

2015-09-03, 14:01:49
Reply #35

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Updated free plugins: ComplexFresnel and ThinFilm to v.1.0.4:
* Fixed references issues.
Many thanks to Ondra Karlík (Corona Renderer team) which found a silent bug and helped to remove it.
Version compatible with previous (1.0.3).

http://www.sigerstudio.eu/shop/plugins-free/sigertexmap-complexfresnel/
http://www.sigerstudio.eu/shop/plugins-free/sigertexmap-thinfilm/

2015-10-06, 19:45:46
Reply #36

3dwannab

  • Active Users
  • **
  • Posts: 362
    • View Profile
Trying to get the tin Fresnel values to work but came up against a limit on the the µm. For tin it's (0.73 – 12) which is out of range for the map.

In say an advanced custom mode could the user add in their own µm and relate it to the value of n and k.

Tin: http://refractiveindex.info/?shelf=main&book=Sn&page=Golovashkin-293

2015-11-05, 15:33:12
Reply #37

zhangjx511

  • Active Users
  • **
  • Posts: 54
    • View Profile
Thank you for the plug-in, ask how soap bubbles materials tone, you can tell me, thank you.

2016-10-01, 17:22:49
Reply #38

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Important ComplexFresnel update - fixed and optimized performance (up to 50%).

2016-10-01, 17:45:18
Reply #39

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
I have to say many many thanks for these maps and for making them available for free, they're all really useful.

2016-12-19, 00:11:49
Reply #40

RobH2

  • Active Users
  • **
  • Posts: 14
    • View Profile
Has this been recompiled for Max 2017?

2016-12-19, 10:15:48
Reply #41

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
https://www.sigershop.eu/free-3ds-max-plugins/sigertexmaps-complexfresnel/

Quote
25.04.2016 – v1.0.5
* Added support for 3ds Max 2017.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2017-04-13, 06:16:56
Reply #42

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Updated plugins:
ComplexFresnel
ThinFilm
SigerNoise
SigerScratches
-- Added support for 3ds Max 2018
https://www.sigershop.eu/free-3ds-max-plugins/

2017-04-13, 10:49:02
Reply #43

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
Many thanks for the quick update to 2018!

2018-03-25, 17:24:23
Reply #44

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
ComplexFresnel plugin updated to v.1.0.8
- Added support for 3ds Max 2019.
Compatible with Max 2017 - 2019
For Max 2013 - 2016 use v.1.0.7

https://www.sigerstudio.eu/sigertexmaps-complexfresnel/

2018-03-25, 19:14:38
Reply #45

pokoy

  • Active Users
  • **
  • Posts: 1850
    • View Profile
Again, thanks for the quick recompile!

2018-11-12, 22:33:28
Reply #46

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Updated free plugins SigerNoise (ProSimplex and ProVoronoi), SigerScratches to version 1.0.5
* Added compatibility with 3ds Max 2019

https://www.sigerstudio.eu/sigertexmaps-sigernoise/
https://www.sigerstudio.eu/sigertexmaps-sigerscratches/

2019-03-31, 22:05:57
Reply #47

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Updated free plugin ComplexFresnel
* Added compatibility with 3ds Max 2020
https://www.sigerstudio.eu/sigertexmaps-complexfresnel/

2021-04-01, 11:32:56
Reply #48

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Updated free plugins: SigerNoise, ThinFilm, SigerScratches and ComplexFresnel.
* Added compatibility with 3ds Max 2022
https://www.sigerstudio.eu/category/plugins-free/plugins-free-3dsmax/

2021-04-01, 11:41:21
Reply #49

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8779
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Thank you for not forgetting to recompile the plugins. Neil Blevins already gave up on his crusade, so it's nice to see that someone still cares about 3ds Max's community.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2021-04-02, 06:21:55
Reply #50

inohide

  • Users
  • *
  • Posts: 4
    • View Profile
I really think so. I appreciate it.

2022-04-02, 21:54:49
Reply #51

Siger

  • Active Users
  • **
  • Posts: 184
    • View Profile
    • Siger Studio
Updated free plugins: SigerNoise, ThinFilm, SigerScratches and ComplexFresnel.
* Added compatibility with 3ds Max 2023
https://www.sigerstudio.eu/category/plugins-free/plugins-free-3dsmax/