Author Topic: ComplexFresnel Texmap  (Read 29718 times)

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

johan belmans

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 719
    • 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: 8830
  • 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.
Private scene uploader | 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: 335
    • 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: 136
    • 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...

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: 136
    • View Profile
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: 136
    • View Profile
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: 136
    • View Profile
ComplexFresnel plugin updated (v.1.0.2 - minor bug fixes).

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

Siger

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

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

KOGODIS

  • Active Users
  • **
  • Posts: 186
    • 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: 136
    • View Profile
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...