Quick Tips & Tricks

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:20 am

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
Last edited by Martin on Wed Feb 14, 2018 1:52 am, edited 15 times in total.

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:22 am

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
Attachments
Infinite Floor.png
Infinite Floor.png (214.19 KiB) Viewed 1729 times
Last edited by Martin on Fri Jan 05, 2018 12:40 am, edited 1 time in total.

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:24 am

02 - Specular map as mixing factor
Attachments
Example01.png
Example01.png (394.05 KiB) Viewed 1729 times
Example02.png
Example02.png (400.89 KiB) Viewed 1729 times
Last edited by Martin on Fri Jan 05, 2018 1:03 am, edited 1 time in total.

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:26 am

03 - Shadeless material
Mix Transparent shader with other shader and Camera Ray as a factor.
Attachments
Shadeless.png
Shadeless.png (375.22 KiB) Viewed 1728 times
Last edited by Martin on Fri Jan 05, 2018 1:06 am, edited 2 times in total.

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:27 am

04 - Fake immersion
Attachments
Fake Immersion.c4d
(241.08 KiB) Downloaded 41 times
Fake Immersion.png
Fake Immersion.png (343.02 KiB) Viewed 1728 times

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:37 am

05 - Camera Ray tip
Blue material is seen for everything in the scene except the camera.
Attachments
Camera Ray.png
Camera Ray.png (287.01 KiB) Viewed 1727 times
Last edited by Martin on Fri Jan 05, 2018 1:05 am, edited 1 time in total.

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Fri Jan 05, 2018 12:52 am

06 - Fake HDRI reflections per object
Attachments
Fake Reflections.jpg
Fake Reflections.jpg (223.16 KiB) Viewed 1436 times
HDRI_reflections.png
HDRI_reflections.png (425.18 KiB) Viewed 1723 times
Last edited by Martin on Mon Jan 29, 2018 1:05 am, edited 2 times in total.

heyBear
Posts: 181
Joined: Sun Nov 27, 2016 10:54 pm

Re: Quick Tips & Tricks

Post by heyBear » Fri Jan 05, 2018 7:27 pm

These are great tips. Cool idea! Should be pinned.

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Sat Jan 06, 2018 1:47 am

07 - Mixing two shaders depending on camera distance.
Attachments
Example.gif
Example.gif (1.06 MiB) Viewed 1672 times
Setup.png
Setup.png (24.15 KiB) Viewed 1672 times

heyBear
Posts: 181
Joined: Sun Nov 27, 2016 10:54 pm

Re: Quick Tips & Tricks

Post by heyBear » Wed Jan 10, 2018 11:22 pm

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

Jonas Schmidt
Posts: 11
Joined: Fri Jan 12, 2018 12:50 am
Location: Hamburg, Germany

Re: Quick Tips & Tricks

Post by Jonas Schmidt » Sun Jan 28, 2018 10:36 pm

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 1449 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 1449 times
And here the Cinema 4D scene incl. cyEnvironment Material:
Cy4D_HDRI_Split_JS.c4d
(310.52 KiB) Downloaded 46 times
_
Cheers,
Jonas

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Mon Jan 29, 2018 12:50 am

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.
Attachments
Null.jpg
Null.jpg (77.39 KiB) Viewed 1444 times
Null.gif
Null.gif (1.25 MiB) Viewed 1444 times

User avatar
Martin
Posts: 545
Joined: Sat Dec 17, 2016 12:03 pm

Re: Quick Tips & Tricks

Post by Martin » Wed Feb 14, 2018 1:51 am

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.
Attachments
Direction of the normal.gif
Direction of the normal.gif (559.11 KiB) Viewed 1259 times
Example.jpg
Example.jpg (56 KiB) Viewed 1259 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest