Page 1 of 1

Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:20 am
by Martin
Let's start the thread for super quick and useful tips & tricks.
Doesn't matter if already known ones or very obvious.
This will help all of us and most of all beginners.

Fewer nodes and very simple setups, short explanation, screenshot and example file.
Please add a tip or trick number and title, I will add to the content in the first post.

CONTENT
1. Infinite Floor
2. Specular map as mixing factor
3. Shadeless material
4. Fake Immersion
5. Camera Ray tip
6. Fake HDRI reflections per object
7. Mixing two shaders depending on camera distance
- Some render optimization steps from Mario to reduce memory usage
8. Fake HDRI reflections
9. Quickly Rotate Environment Texture in Viewport
10 - Easily Control Normal Direction in Normal Node

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:22 am
by Martin
01 - Infinite Floor

1. Floor plane
2. Background plane rotated 45° angle and moved away from the camera
3. AO shader added to both planes

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:24 am
by Martin
02 - Specular map as mixing factor

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:26 am
by Martin
03 - Shadeless material
Mix Transparent shader with other shader and Camera Ray as a factor.

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:27 am
by Martin
04 - Fake immersion

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:37 am
by Martin
05 - Camera Ray tip
Blue material is seen for everything in the scene except the camera.

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 12:52 am
by Martin
06 - Fake HDRI reflections per object

Re: Quick Tips & Tricks

Posted: Fri Jan 05, 2018 7:27 pm
by heyBear
These are great tips. Cool idea! Should be pinned.

Re: Quick Tips & Tricks

Posted: Sat Jan 06, 2018 1:47 am
by Martin
07 - Mixing two shaders depending on camera distance.

Re: Quick Tips & Tricks

Posted: Wed Jan 10, 2018 11:22 pm
by heyBear
Stumbled across this in another thread from Mario:
Mario Tran Phuc wrote:
Wed Jan 10, 2018 5:01 pm
Hi,

here a list of render optimisations I usually try to reduce memory usage. Maybe some of them might help with your scene:

- use render instances / cyinstance tag and enable render instance in mograph objects cloner,matrix)
- split foreground, midground, background and composite them after. The holdout shader creates transparent objects.
- use AO bounce & Texture Limit in the Rendersettings
- set Clamp Direct and Clamp Indirect to "0"
- disable Reflective and Refractive Caustics
- Set Volume Step Size higher and max Steps to lower try 24 on both
- Increase Subdivision Rate
- Reduce Curve Subdivisions
- deactivate Multiple Importance Sampling in the object materials when using GPU
- Use large Rendertiles when using GPU (split the renderresolution into the amount of GPUs)
- Render without Motionblur
- use translucent material setups instead of SSS / avoid SSS on instances
- avoid denoising
- change spline objects to have lesser segments

Cheers,

Mario

Re: Quick Tips & Tricks

Posted: Sun Jan 28, 2018 10:36 pm
by Jonas Schmidt
08 - cyEnvironment IBL Light Path Split

Ghirardo asked in this following Post
Is there any way to have an environment image (not seen by camera)
with a different Background (seen by camera)
The solution is very simple so Mario asked me to share my solution here in the Shared uploads section as well :D

Maybe you guys have other ideas with the Light Path node, too :-)
Guess there are many node secrets to be uncovered :lol: Feel free to share.
First of all you need two environment textures.
Then use the versatile light path node as a factor in the mix shader to split the texture information.

To make it work use the Light Path output "Is Camera Ray".

Now you have one environment which is just seen in the reflection channel, the other one is seen as the background.
Nice effect ;-)
Cy4D_HDRI_Split_JS.jpg
Cy4D_HDRI_Split_JS.jpg (366.43 KiB) Viewed 1953 times

As an Environment Shader I used the 2x IBL Controller made by Martin Wall.
You can find the node in the Shared Upload section:
viewtopic.php?f=6&t=268

Please also have a look at my node setup & the c4d file.
You just need to replace the missing HDRI texture files in the environment nodes.
Cy4D_HDRI_Split_JS-Node_Setup.jpg
Cy4D_HDRI_Split_JS-Node_Setup.jpg (283.19 KiB) Viewed 1953 times
And here the Cinema 4D scene incl. cyEnvironment Material:
Cy4D_HDRI_Split_JS.c4d
(310.52 KiB) Downloaded 60 times
_
Cheers,
Jonas

Re: Quick Tips & Tricks

Posted: Mon Jan 29, 2018 12:50 am
by Martin
09 - Quickly Rotate Environment in Viewport

A very useful little trick that Mario showed us some time ago:
1. Drag cyEnvironment (or Null) into the Mapping Node > Mapping from Object
2. Rotate cyEnvironment Object (or Null) in the viewport.

Re: Quick Tips & Tricks

Posted: Wed Feb 14, 2018 1:51 am
by Martin
10 - Easily Control Normal Direction in Normal Node

Quite the same as one above, but worth to mention.
Blender has this very useful sphere in the Normal node and we have input fields what is very difficult to use.
No more. Add Mapping node and the null into it, preview Dot output, rotate the Null instead of sliders.