News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Lights & Shadows in RedSDK vs. Turbolux

Started by m_ke, August 30, 2024, 03:40:26 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

m_ke

Hi.
my apologies for opening a second topic within one day, but I think it's sufficiently different.

I have started rendering an architectural drawing with the RedSDK 2024 plugin. Generally I'm impressed with the good quality, already in Draft mode, while the drawing can still fluently be panned and rotated. Also the rendering time in Quality view is impressive.
But I soon came to the point where I couldn't understand how the light sources are controlled. Technically, yes, it is intuitive and nicely documented. But it's not consistently working as documented. So I found bits and pieces of information and tipps, here in the forum or on other sites, that also the renderer makes a difference:
- in RedSDK, the power settings of some light sources would be ignored (I think it was ambient), but equivalent results could be obtained by Luminance profiles.
- I also found the documentation, which light sources produce shadows and which don't, a bit inconsistent.
- Materials looked different, although unchanged while switching between TurboLux and RedSDK (I guess this happens if a common name exists among both the TurboLux and RedSDK materials, right?)
- even unidirectional lights have a target and a xyz orientation in space. Adding new coordinates for the target is suitable for messing things up, but not for straightening directions.
- after all, I was not able to produce any sort of obstruction or shadows with RedSDK

So I made a simple example (attached) to reveal an obvious difference.

My questions is, could any of you recommend some training videos or a compilation of observations that apply to TurboLux and particularly RedSDK? The online help doesn't include a lot about RedSDK and I haven't found much guidance on the Internet, either. But, generally, I prefer it over TurboLux, because it's so much faster. RedSDK is perfect for my needs, already in Draft mode, but it has some flaws, which are likely due to me using it wrongly(?)

Thanks for your help, in advance,
--mike



 
TurboCAD 2024 Platinum 64-bit
RedSDK 2024 Plugin 64-bit

Andy H

With RedSDK, Ambient works with quality render,  But really, in my opinion, it should be set to almost black, then set up other lighting or luminance.  Use Ambient as fine tuning only.  There is a book on lighting from back in the early 1990's.  I've asked Kevin for permission to upload his book to the forum (waiting to hear back from him).  Whilst written mostly for use with Lightworks.  It does go into more detail about standard lighting.

For more realistic lighting.  Both RedSDK and TurboLux are probably better with Luminance.  Visualize is more limited with respect to lighting, and should work fine with standard lights, especially as it can only draft render.

With regards guides.  There are some beginners guides in This part of the forum.  But they don't go into any detail about Standard lighting, as I decided that was covered in the TC help files (and Kevin's book).
   

m_ke

Thank you, Andy, I think your document will prove very useful!

For now, I think the biggest learning for me about RedSDK already is
- RedSDK rendering (both Draft and Quality) would still use the light sources Point/Directional/Headlight/Spot in TC and overlay them with its own method (which is via Luminance)
- These TC light sources shine through all components when rendering in RedSDK (both Draft and Quality mode)
- The TC light sources Ambient/Sky do not have an effect in RedSDK rendering
- preferrably one would turn all TC light sources off if one wanted a controlled lightening experience in RedSDK rendering
- setting RedSDK light sources, on the contrary, means actually "attaching" a given Luminance to an existing element of the drawing
- there is a checkbox to un-/select the creation of shadows, and it's a parameter of the shader in the Luminance element (not a material or component property, for instance)
- shadows would only be created in Quality render mode, not in Draft mode

I know that you wrote Ambient would work in quality render, but it doesn't at my end (unless you meant RedSDK Ambient, then it does, of course)

Currently I'm using mostly RedSDK Draft render mode, because I'm furnishing a house, virtually, and I need to fluently rotate the 3D view a lot, for checking and inspiration.
What got in my way, was that I didn't expect the TC light sources, that I had added at various positions, to shine through walls. They simply added up and many surfaces just got washed out or overly shining.
But it'll be easy to add a better light setup for my purposes, now that I know how things work (and don't).

Thanks,
--mike

PS: Visualize doesn't exist in TC2024. Not sure whether you have it as plugin (?)
TurboCAD 2024 Platinum 64-bit
RedSDK 2024 Plugin 64-bit

Torfinn

Andy know about the render stuff
But Visualize will only work if you are in GDI mode, like not use RedSDK,
you can change in Options >> Native draw but Lightwork is not so good when move stuff like you are used to in RedSDK

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Vlad Veselov

Mike
Quote from: m_ke on August 30, 2024, 03:40:26 PM- after all, I was not able to produce any sort of obstruction or shadows with RedSDK
You have shadow turned off for the light source in this render (see picture)

Just, I recommend using luminance, not light sources.
Luminance has more types of light sources, more options, palette with configured presents with and previews,
the ability to combine several light sources, the possibility of an interactive tuning in a simplified studio or directly in the model
(Render Studio)

Quote from: m_ke on August 30, 2024, 03:40:26 PM- after all, I was not able to produce any sort of obstruction or shadows with RedSDK
My questions is, could any of you recommend some training videos or a compilation of observations that apply to TurboLux and particularly RedSDK?
See for example:

Getting Started with TurboLux v2022/2023
https://forums.turbocad.com/index.php?topic=31003.0

RedSDK - Simple scene with Physical luminance
https://forums.turbocad.com/index.php?topic=25953.0

Jet motor (RedSDK)
https://forums.turbocad.com/index.php?topic=20804.0

Tutorial - rendering of RedSDK
https://forums.turbocad.com/index.php?topic=8615.0

Tutorial - rendering. All renders TC 2023
https://forums.turbocad.com/index.php?topic=31141.0

RedSDK - New Metal Materials
https://forums.turbocad.com/index.php?topic=25658.0

RedSDK - The easiest way how light up the scene
https://forums.turbocad.com/index.php?topic=25525.0

Vlad

Vlad Veselov

Mike,
Quote from: m_ke on August 31, 2024, 02:08:22 AM- The TC light sources Ambient/Sky do not have an effect in RedSDK rendering
Not a problem with Ambient TC light in RedSDK (see attached tcw)
Sky TC Light is not supported in RedSDK, but Sky Shader is in Luminance.

Vlad

Andy H

Quote from: m_ke on August 31, 2024, 02:08:22 AMThe TC light sources Ambient/Sky do not have an effect in RedSDK rendering

I agree with Vlad regarding Ambient.  But would add,  do not use the power setting.  In quality render, clicking the colour button in design director - lights - ambient, allows one the change the colour,  but staying with greyscale (black to white) will lighten (towards white) or darken (towards black)the scene.   


Quote from: m_ke on August 31, 2024, 02:08:22 AMWhat got in my way, was that I didn't expect the TC light sources, that I had added at various positions, to shine through walls. They simply added up and many surfaces just got washed out or overly shining.

This should be more-or-less sorted by checking shadows in the dialog Vlad shows above.  I usually bring up the dialog, by hovering over a light in Design Director, righ clicking the mouse, and in the menu that appears, select properties.

The same behaviour can occur when using some luminance as well as standard lights.

m_ke

Thank you, most helpful.

It was a matter of understanding all the pecularities and digesting /memorizing all the various aspects. And there are many of them, as was to be expected with rendering... :-)

Quote from: Vlad Veselov on August 31, 2024, 10:11:51 PM
Quote from: m_ke on August 30, 2024, 03:40:26 PM- after all, I was not able to produce any sort of obstruction or shadows with RedSDK
You have shadow turned off for the light source in this render (see picture)
Brilliant, I didn't expect particular RedSDK settings to exist in the hosts (TC's) component. Are they added, when you install the plug-in, actually? Well, never mind, they are there :-D

Quote from: Vlad Veselov on August 31, 2024, 11:10:56 PM
Quote from: m_ke on August 31, 2024, 02:08:22 AM- The TC light sources Ambient/Sky do not have an effect in RedSDK rendering
Not a problem with Ambient TC light in RedSDK (see attached tcw)
Sky TC Light is not supported in RedSDK, but Sky Shader is in Luminance.

Vlad
Right, I was too quick with my conclusion. As Andy added, the power setting doesn't change anything (I set it to 100 without making a difference), but the colour of the ambient light does, also at my end.


I must say I got the taste for using RedSDK luminance instead of TC light sources. So far, the following works best for me:
- Draft render mode: RedSDK Draft, because I still can rotate the drawings fluently.
- Quality render mode: RedSDK Raytrace Standard
I'm using two Luminances: Ambient (White, 0.8 ) and Directional (Intensity 0.4 )

Lots of fun :-) What is a bit annoying, though, is to go back and forth between Draft and Quality mode: RedSDK Draft mode turns out darker than Quality mode, so while I adjust the lightening to be good in quality mode, the actual construction work happens "in the dark...", unless I use wireframe view, of course.

By the way, I can't open the LightTest_amb.tcw file, that you uploaded, @Vlad. I get the error message "Failed to open ...: No filter matching this file."


TurboCAD 2024 Platinum 64-bit
RedSDK 2024 Plugin 64-bit

Dean

Hey Mike, :)
try the attached drawing.
Run a RedSdK draft.
If you want run the advanced Redsdk render stlye I have set.

"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Andy H

#9
Quote from: Dean on September 03, 2024, 08:12:53 AMtry the attached drawing.

Dean,  are you using TC 2024.1

If yes.  then it looks like 2024.1 is not compatible with TC 2024.0    Which seems a bit weird, but your file gives a 'no filter error'.


My error, ignore this bit.

Dean

Quote from: Andy H on September 03, 2024, 10:03:55 AM
Quote from: Dean on September 03, 2024, 08:12:53 AMtry the attached drawing.

Dean,  are you using TC 2024.1

If yes.  then it looks like 2024.1 is not compatible with TC 2024.0    Which seems a bit weird, but your file gives a 'no filter error'.

That's strange, Andy.
I created the drawing in TC 2023. The file opens for me and works just fine in TC 2023 and TC 2024.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Andy H

Quote from: Dean on September 03, 2024, 11:24:49 AMThat's strange, Andy.
I created the drawing in TC 2023. The file opens for me and works just fine in TC 2023 and TC 2024.

Oh bugger.  My apologies Dean.  I accidentally must have clicked on Vlad's file by mistake when trying to open the file earlier.

I just tried again and your file opens fine.

Sorry about that.

Andy

m_ke

Quote from: Dean on September 03, 2024, 08:12:53 AMHey Mike, :)
try the attached drawing.
Run a RedSdK draft.
If you want run the advanced Redsdk render stlye I have set.


Thanks, Dean!
Interesting, with your adjustments and the Sky Luminance, the amount of light in Draft Render mode and Advanced Render mode nicely fit, while Quality Render mode is now turning out darker (quite the opposite to what I've been observing when using Ambient + Directional Luminance.
Advanced Render mode takes about 50% longer than Quality Render mode, in this particular example.
I guess, my main goal is to get Draft & Quality mode equal in terms of the amount of light (if I may describe it so bluntly...).
I'm mainly making architectural drawings, now, with bath & kitchen furniture etc., so adding some light shining through the windows adds a nice touch. But I may also go back to using whatever other Luminance, that gives me a better match, to make editing more convenient.

I'll probably do a few tests with different materials and Luminances, going back and forth between Draft, Quality and Advanced Reder mode, and compile a matrix of Luminance behaviour vs various modes. I found several hints in Andy's "RedSDK_doc1" book. I just have to read it a few more times, probably, to memorize things, and reproduce the same in my own drawings.

Thanks,
--mike
TurboCAD 2024 Platinum 64-bit
RedSDK 2024 Plugin 64-bit