Guide: Templating - Replace active maps - static

Forums: Guide: Templating - Replace active maps - static
DAZ Studio Integrated Plugin (Integrated Plugin maintained by OTOY)

Moderator: BK

Forum rules
Please keep character renders sensibly modest, please do not post sexually explicit scenes of characters.

Guide: Templating - Replace active maps - static

Postby linvanchene » Thu Jun 02, 2016 8:16 am

linvanchene Thu Jun 02, 2016 8:16 am
I just tried to follow up an issue mentioned in another thread

compare:
Share materials
viewtopic.php?f=44&t=51431

when I stumbled upon some limitations that may not be that known when templating and using the function to "Replace active maps".


Using "Replace active maps" will replace all maps in all slots no matter if they are template or not.
Users may actually have assumed that "replace active maps" would only affect template nodes and leave all other image nodes unchanged.
This is not the case.

It seems in order to have the intended result of not updating all map slots when using the "replace active maps" function one has to add all maps that should remain unchanged to a template node with "STATIC dont replace with loaded content" activated.


- - -

To illustrate this two test scenes that show the behaviour of "Replace active maps" with and without using template nodes with "Static - don't replace with loaded content"

Test scene 01

- plane with
mix material
Material 1 template diffuse map
Material 2 diffuse map
checks mix

Mix material - Material 1 with templating activated.jpg
Mix material - Material 1 with templating activated


Mix material - Material 2 with normal image attached.jpg
Mix material - Material 2 with normal image attached


- Now save this material in your user presets.

- Load a new scene

- Add plane
- load a different map in the DAZ Studio surfaces

New scene with new DAZ Studio material.jpg
New scene with new DAZ Studio material


- autoconvert the scene (maybe needed to load the maps into OcDS memory)

New scene - autoconverted.jpg
New scene - autoconverted


- now add your previously created user preset with the checks mix pattern

New Scene - Result of Replace active maps.jpg
New Scene - Result of Replace active maps


What I expected to happen was that the

- templated image would get replaced by the new "active map" of the DAZ Studio diffuse slot
- the other not templated image node would not be affected

What DID happen was that both diffuse slots got updated with the new map in the DAZ Studio surface slot.


- - -

If you look closely at the template node options you will notice that there is a setting for

Static (don't replace by loaded content)

So one could assume if one would now use that in the mix material 2 option then the original map should stick and not be replaced.

Let's try.

Test scene 02

- plane with
mix material
Material 1 template diffuse map
Material 2 template diffuse map with Static (don't replace by loaded content) activated
checks mix

Scene 02 Material 2 templating STATIC dont replace with loaded content.jpg
Scene 02 Material 2 templating STATIC dont replace with loaded content


- save this template setup as a user preset

- create a new scene with a plane with a different diffuse map in the DAZ Studio materials applied

- autoconvert the scene (maybe needed to load the maps into OcDS memory)


- now add your user preset with the checks mix pattern that has STATIC active

Scene 02 user preset with STATIC templating applied.jpg
Scene 02 user preset with STATIC templating applied


- right click to use "Replace all active maps"

Scene 02 Replace all active maps.jpg
Scene 02 Replace all active maps


-> End result:

Scene 02 end result - it is actually working.jpg


Now the image looks as expected.

- The templated node of material 1 was updated with the new diffuse map from the DAZ Studio surface zone
- The templated node of material 2 that was set to static remained and was not updated.

- - -

Test scenes as .duf added in .zip

Templating Test.zip
(115.52 KiB) Downloaded 1274 times


Templating test scene 01 & 02 include the material presets that you can save to your own user presets.

Replace maps missing test scene 01& 02 show the result of applying the presets to a new DAZ Studio scene with different diffuse maps applied to the plane.


- - -

Now we can of course discuss if this workflow is intuitive and simple.

Would it be possible to add an additional right click options next to "Replace all active maps" that gives the option to:

"Replace active maps of template nodes" ?

Selecting his option would not replace all those maps that are not templated.

But one could assume that IF that would be possible there would not have been this whole workaround with adding those maps that should not be replaced in a STATIC template node.

- - -
Win 10 Pro 64bit | Rendering: 2 x ASUS GeForce RTX 2080 Ti TURBO | Asus RTX NVLink Bridge 4-Slot | Intel Core i7 5820K | ASUS X99-E WS| 64 GB RAM
FAQ: OctaneRender for DAZ Studio - FAQ link collection
User avatar
linvanchene
Licensed Customer
Licensed Customer
 
Posts: 783
Joined: Mon Mar 25, 2013 10:58 pm
Location: Switzerland

Re: Guide: Templating - Replace active maps - static

Postby TRRazor » Thu Jun 02, 2016 3:57 pm

TRRazor Thu Jun 02, 2016 3:57 pm
Appreciate the input here, mate.
This will be really helpful for a lot of users, trying to understand the templating system.

Keep up the good work!
W10 64 bit | i7 3770K | MSI Geforce RTX 2080 (8GB) + GTX Titan Black (6GB) | 32 GB DDR3 RAM
User avatar
TRRazor
Licensed Customer
Licensed Customer
 
Posts: 684
Joined: Sun Nov 03, 2013 10:21 am

Return to DAZ Studio


Who is online

Users browsing this forum: No registered users and 10 guests

Tue Mar 19, 2024 10:05 am [ UTC ]