Author Topic: How to get coloured neon tubes?????!!!!  (Read 1600 times)

2024-01-04, 20:04:21

johnnyswedish

  • Active Users
  • **
  • Posts: 239
    • View Profile
Hi Support,

I need to create a simple row of neon tube lights going from cyan/light blue to white. When I crank up the light all tubes go white which I suppose in real life would happen but I need to visualise them coloured. They emit the light correctly but need the tubes to be coloured, is there a easy way to achieve this or do I have to do it post in Photoshop? Many thanks for any ideas :-) 

2024-01-04, 20:37:58
Reply #1

johnnyswedish

  • Active Users
  • **
  • Posts: 239
    • View Profile
I saw this and its perfect! But link is dead. Any advise how to create it please, please, please :-)

2024-01-04, 21:00:54
Reply #2

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5468
    • View Profile
Ray switch so the directly visible and emitted light colors are different intensities, so direct visible doesn't blow out to white?
Tom Grimes | chaos-corona.com
Product Manager | contact us

2024-01-04, 21:05:20
Reply #3

johnnyswedish

  • Active Users
  • **
  • Posts: 239
    • View Profile
Hi TomG,

Much appreciate your quick response. How do I do this? Never used Rayswitch or distant shader before??? Thanks, John :-)

2024-01-05, 13:02:54
Reply #4

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5468
    • View Profile
Howdy! I'd suggest https://docs.chaos.com/display/CRC4D/Corona+Ray+Switch+Shader and even
(it's Max, but principles are the same) as good resources to pick up how to use the shader, then you can test to see if it does what you need it to do

(simple version: create two LightMtls one for casting light with high intensity and one with low intensity to be viewed for "preserve the color of the tube", then put the first into the GI slot of the RaySwitch, and the second for preserve the color of the tube into the Directly Visible, Reflection, and Refraction slot of the RaySwitch)
Tom Grimes | chaos-corona.com
Product Manager | contact us

2024-01-05, 13:11:08
Reply #5

johnnyswedish

  • Active Users
  • **
  • Posts: 239
    • View Profile
Tom, You are a legend! Thank you and have a good weekend :-) John

2024-01-05, 13:18:26
Reply #6

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5468
    • View Profile
You are welcome, I hope it does resolve the issue for you and if not, let us know. Have a great weekend there too, neon tubes included lol!
Tom Grimes | chaos-corona.com
Product Manager | contact us

2024-01-05, 14:56:48
Reply #7

johnnyswedish

  • Active Users
  • **
  • Posts: 239
    • View Profile
Worked a treat! Thanks :-)

2024-01-05, 15:07:05
Reply #8

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5468
    • View Profile
Great to hear, ty for sharing the results of the test!
Tom Grimes | chaos-corona.com
Product Manager | contact us

2024-01-08, 11:07:16
Reply #9

tuami

  • Active Users
  • **
  • Posts: 169
    • View Profile
hey can someone explain to me why this is not working for me? thanks!

2024-01-08, 13:57:27
Reply #10

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3873
  • Bengamin
    • View Profile
    • Cormats
Hmm, I think that this will depend on your camera exposure? According to real-life examples, the result is as expected.



If you really want to fake it, you could also duplicate the mesh and make it slightly larger and hide it from the camera using the comp tag.

Bengamin Jerrems l
Portfolio l Click me!

2024-01-08, 16:39:55
Reply #11

tuami

  • Active Users
  • **
  • Posts: 169
    • View Profile
Hey  Beanz,

could you explan me why the object isnt red in this example with ray switcher material.
Thanks!

*edit
can it be that raywitcher does not work with light material ?
« Last Edit: 2024-01-08, 16:49:42 by tuami »

2024-01-08, 21:55:42
Reply #12

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5468
    • View Profile
Interesting, we'll take a look.

Meantime you can copy the tube twice. On one, apply the color and intensity that should emit into the scene, and in Advanced settings in the LightMtl uncheck Visible Directly, in reflections, and in refractions. On the other tube, apply another LightMtl with desired color / intensity to be seen on the tube, and uncheck Emit Light.
Tom Grimes | chaos-corona.com
Product Manager | contact us

2024-01-09, 09:09:16
Reply #13

tuami

  • Active Users
  • **
  • Posts: 169
    • View Profile
Interesting, we'll take a look.

Meantime you can copy the tube twice. On one, apply the color and intensity that should emit into the scene, and in Advanced settings in the LightMtl uncheck Visible Directly, in reflections, and in refractions. On the other tube, apply another LightMtl with desired color / intensity to be seen on the tube, and uncheck Emit Light.

Hi TomG
thanks for the explanation, i just noticed that and i am sometimes a bit curious to find out why something is not working that should actually work :)
cheers

2024-01-09, 14:38:34
Reply #14

piotrus3333

  • Active Users
  • **
  • Posts: 247
    • View Profile
Please do remember that drt / tonemapping is big part of how neon lights look.
a few common examples:

Marcin Piotrowski
youtube