feature requests

Discussion related to the exporter plugin for Autodesk 3ds Max.

Moderators: Ratow, hedphelym, coordinators

Re: feature requests

Postby patro » Fri Oct 15, 2010 4:07 pm

hedphelym wrote:Dispersion is added to glass2 shader today.
Also added the environment map rotation fix.

more to come.

Hi,

I can't find the rotation fix for the environment map. also the new sky parameters :(

but dispersion work well for glass2.. also the new velvet material :)
the dispersion value work well it's fast.

lampspectrum texture not tried yet

I look in to the lxs file.... but I can't find a value for the dispersion! is it a fixed value?

thank you again
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: feature requests

Postby hedphelym » Fri Oct 15, 2010 4:14 pm

the dispersion is just a bool. on or off. There's no value.
User avatar
hedphelym
Developer
 
Posts: 793
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby patro » Fri Oct 15, 2010 6:20 pm

a small fast test
velvet and lampspectrum... nice... they seams to work perfectly :)
luxout.png
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: feature requests

Postby hedphelym » Mon Oct 18, 2010 11:01 am

A big breakthrough today.. (for me at least, lol).

I've wanted the LR Mix material to work for some time,
so I've created a GUI for the material, and been thinking about how to implement it.

You choose shader in 2 first slots (any LR shader).
and then the mix amount.

The problem was this:
When you add materials like this INTO a "mix" shader, it automatically becomes a submaterial.
The current code did not allow you to check for parameters inside a sub material,
only in the "top" material.

So I've been testing since last release of luxmax, and today I found a way to do this
without rewriting the whole material system.

Here's my output from my test:
#setting up mix material
#m->GetSubMtlTVName: Material 1: Material #8 ( LR Metal )
"#Metal type in submaterial is: " ["gold"]

As you can see I've grabbed the metal type from the "submaterial" metal shader.
This did not work before. But now I can pass the parameters freely.

screenshots:

Main shader:
LR_mix_test_ui.jpg


Submaterial #1:
LR_mix_test_shaderslot1_ui.jpg


This means that the mix shader is one gigantic step closer.
User avatar
hedphelym
Developer
 
Posts: 793
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby patro » Mon Oct 18, 2010 11:59 am

so.. works it?
I understand that it works now!
how does the mix work... shaders, amount, mixing curve?
please more detail :)
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: feature requests

Postby hedphelym » Mon Oct 18, 2010 12:01 pm

It's not complete yet, but my theory on how it can be implemented works.

It will support both texture map as "mix" and spinner with value. (all features that mix material should support).
[edit]:

It now detects and creates metal material if it's in a "LR Mix" material.
This is the most complex thing I've coded for a long while,
but I found a great way of doing this without destroying any of the previous material code.

And It works with any type of material already supported by luxrender.

I will post as soon as I've got a working version \ test render.
I hope to continue tomorrow.

tested with one gold, and one copper material in one of each slot:

it outputs as this:

"string name" ["gold"]
"float vroughness" [0.001000]
"float uroughness" [0.001000]

Material "metal"
"string name" ["copper"]
"float vroughness" [0.001000]
"float uroughness" [0.001000]

then all that's needed is to make them "named materials", then create the mix with value, and render! :)
User avatar
hedphelym
Developer
 
Posts: 793
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby hedphelym » Tue Oct 19, 2010 9:39 am

mix material is now working for "Metal" material.

I started with this one, then move on coding the rest of them too,
but keep in mind it takes some time.

Here's and example:

material in slot 1 is aluminium;
mix0.2.jpg

mix0.2_mat.jpg


material in slot 2 is Gold:
mix0.9.jpg

mix0.9_mat.jpg


the mix amount is (at this time) specified by a separate spinner:
mat_amount.jpg
mat_amount.jpg (6.51 KiB) Viewed 179 times
User avatar
hedphelym
Developer
 
Posts: 793
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby patro » Tue Oct 19, 2010 1:37 pm

hi,
good that it's works.

if you get the mix amount and mix curve to work... you could also try to use the same knowledge about, to support the max mix shader!
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: feature requests

Postby hedphelym » Tue Oct 19, 2010 11:41 pm

3dsmax only has "blend" shader - no shader named "mix shader".
Blend shader is the one I'm using for making Lux MIX material.

Lux Mix material supports the following:
Code: Select all
mix::amount    float texture     The value or texture to mix by     0.5


so this means; either a texture (LR imagemap) or "float" value which is made by spinner.

So using mixing curve is not something that's needed,
mixing curve outputs transitionzone - upper and lower limits (2 floats).

only thing we need is texture or spinner.
User avatar
hedphelym
Developer
 
Posts: 793
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby patro » Wed Oct 20, 2010 3:58 am

sorry my bad...

I didn't meant the mix shader as material.... but the mix shaders as map.
the mix map is very similar to the one used to mix 2 materials inside a blend material.... also used from you for the new Lr Mix Blend.
2010-10-20_103019.jpg

so... I think that if you are able to support the mix function (mix amount mix curve), of the new "lr mix blend" material...
the same knowledge could be used to support the 3ds max "mix map".
obviously the sub slot of the "mix map" are to be used with lrmap, lrcostant, lrblackbody and so on.

Luxblend-> LuxRender support the "mix map"

thank you for your interest.
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

PreviousNext

Return to LuxMax (Autodesk 3Ds Max Exporter)

Who is online

Users browsing this forum: No registered users and 1 guest