Author Topic: Mix material displacement rotation on previous material  (Read 2013 times)

2019-11-14, 15:41:19

Matej Ovsenek

  • Active Users
  • **
  • Posts: 30
    • View Profile
I'm trying to make an earth, so I applied a beauty texture to a sphere, with displacement on UVW mapping. Earth material.
Then I needed to mask out half of the earth for the city lights on the dark side, so I made another material and added it to the earth in top of the Earth material with opacity masked with 3D gradient on texture mode. Lights material.



I needed to rotate the Lights material opacity to match the orientation of where the sun was shining from, but keep the lights map itself orientated the same way always, so I used a Projector on Spherical set to object in the self illumination tab of the Lights material to keep it in place.
So I'm only rotating the mask. Rotated it into position and my displacement map from Earth material moved with the lights mask. Earth material diffuse map stays the same orientation as it should.



STR: rotate top material on Spherical with underlying displacement material on UVW. Displacement should rotate, diffuse should stay the same.

speccy:
Operating System
   Windows 10 Pro 64-bit
CPU
   Intel Xeon E5 2670 @ 2.60GHz   58 °C
   Sandy Bridge-EP/EX 32nm Technology
   Intel Xeon E5 2670 @ 2.60GHz   67 °C
   Sandy Bridge-EP/EX 32nm Technology
RAM
   64,0GB DDR3 @ 666MHz (9-9-9-24)
Motherboard
   ASUSTeK COMPUTER INC. Z9PA-D8 Series (Socket-R 2011)   31 °C
Graphics
        NVIDIA GeForce GTX 1070 (ASUStek Computer Inc)   64 °C
   4095MB NVIDIA GeForce GTX 1070 (Gigabyte)   53 °C
   ASPEED Technology ASPEED Graphics Family(WDDM) (ASUStek Computer Inc)
   ForceWare version: 441.08
   SLI Disabled

I've uploaded a simplyfied scene. 1573742520_displ-bug.rar


Using Version: 5.0 daily Nov  5 2019 (core 5 (Release Candidate 4))
« Last Edit: 2019-11-14, 16:05:39 by Matej Ovsenek »
----------------------------------------------
matej.ovsenek - Skype
matej.ovsenek@gmail.com
https://www.facebook.com/matej.ovsenek

2019-11-20, 13:56:50
Reply #1

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
(Internal ID=425300582)
Bengamin Jerrems l
Portfolio l Click me!