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 & Luminances working weird or not at all

Started by jamac, April 04, 2020, 09:29:54 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jamac

I've always had some issues with understanding how Lights work in TurboCAD and I'm just now digging into Luminances, but there's also not much info anywhere on how to work with them other than some basic info in the manual.  I've read through a few posts on the forum here and only gleaned a few insights, but things are not working as I would expect.

I'm only using RedSDK.  I have some factory-set "Chromium + Redsdk" set material cones I subtracted from a "Brass + Redsdk" ring in order to make sure they were nicely reflective.  I also put a sphere in the path of the light to make seeing results a little easier.  I put a light in the cone (but outside the solid) pointing outward (putting the ring in the light's shadow), color set to purple and set to a power of 10.  I've tried all these in both Draft and Advanced Rendering.  The only other light I have on is the default Ambient.  I'm getting unusual results...

Set to Ambient, all of the brass (even behind the light) alters to a purplish brass and the chromium changes to purple, which sounds about right. 

Setting the Type to Point lights the face of the sphere (as expected).  The cone containing the light is a faint purple (I'd expect it to be bright).  But it also lights up the back side of the ring, well behind the light!  I would assume that the Solid ring should block all light from "shining" there.

Directional lights the sphere and doesn't light the ring which is correct, but there is no light in the cone, which I thought there would be.

Headlight lights surfaces perpendicular to the camera and not surfaces facing the camera, like the headlight was moved 90 degrees to the side!

Spot does absolutely nothing.  Turn the light on and off, and there is absolutely no change anywhere.

Sky does nothing, like Spot.

I've also tried putting a "lens" at the front of the cone opening and have tried all sorts of glass and plastic materials as well as giving this lens its own Luminance and get all sorts of odd results as well.  For example, suddenly spot works but in addition to properly lighting the sphere, the inside of the ring lights up, but not the lens!  Spinning the lens 180 degrees adds more light to the sphere and adds lighting to part of the front of the ring!  (see attached picture for this one.)

I've also tried giving a sphere inside the cone Luminances with similar weird results.

For my purposes, I would think that Directional or Spot should work, but they don't, at all!  What am I getting wrong?

TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

jamac

TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

Torfinn

Maybe you should attach a drawing that show your problems, as then it's easier to see what's your issue's.
I'm not a render guy, but there are several others in here that is ;)

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

Majo

#3
The best will be if you post here the File.

RedSDK is powerful and fast, but for good results, some rules must be followed  ::)

Example is in the attachment + add the ePack as example how can be set the scene with RedSDK
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

jamac

Majo, I am not able to load your ring file, probably because I have version 2017 and you're probably running a newer version.

I've attached the file I'm having trouble with.
TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

Majo

My drawing is saved for TC2019 or newer.
Tomorrow I will try saved for TC2017 at work. And looking in to your file
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

Majo

Quote from: jamac on April 07, 2020, 02:24:53 PM
Majo, I am not able to load your ring file, probably because I have version 2017 and you're probably running a newer version.

I did save the drawing for version TC2017 only. Hope will work well.
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

Majo

#7
Quote from: jamac on April 07, 2020, 02:24:53 PM
I've attached the file I'm having trouble with.

Try this example.

Few base rules for RedSDK and Luminances:
1. Do Not use "classic light" if you want realistic result
2. From Luminances use only Physical Luminance as: A)Physical, Rectangular Physical, Spherical Physical and B)Sky/Sun
3. Add the Luminance to the Object/s and use in Properiets "chcecked" -> "Load to Luminances Only" (for "A" luminances)
4. Use ("B")Sky Luminance with HDR image for lightnig scene - add as global for whole scene in Menu->Options->"Render Scene Luminance"
5. Use Sky Environment with HDR image as reflection scene for Object reflection / refraction - add as global for whole scene in Menu->Options->"Render Scene Environment"

Hope will help you
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

jamac

I'll have to dig deeper into this later, but just pulling up your Diamond ring and rendering it, I get results a little different than yours.  For instance, my shadows are a bit pixilated, but I also got the error message that it wasn't able to find the file "Miscellaneous\Matte Shadow".  That and my results are darker than yours.  However, lights seem to be behaving as I'd expect.

With your version of my Light ring, everything seems to behave correctly as well.  However, my rendering is quite pixilated with tiny bright dots of color on the surface of the ring as well as where the light spills on the bottom surface.  I did get a number of error messages opening the file, including...
"Invalid  Quality\Raytrace Standard was found. It will be ignored."
"Invalid  Quality\Global illumination Fine_Tone_HDR was found. It will be ignored."
"Invalid  Quality\Raytrace Fine_Tone_HDR was found. It will be ignored."

I don't know if these are files or blocks of settings within the drawing or what, but they are something I don't understand yet.  I did notice that you changed the material (I'm assuming all of it) to one material vs my setting of Brass for everything except the reflectors I subtracted that were set to Chromium.  Was my method bad practice, and if so, why does TurboCAD let you set any material to any object and keep that even after a Boolean operation?

It looks like, in order to get decent renderings in TurboCAD, you have to learn a lot more than what's in the program's manual.  That and the default settings are entirely wrong?
TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

jamac

This light ring is part of a larger project that I was hoping to submit to their free upgrade competition, and submissions are due on the 10th, but now its looking like that's not going to happen if I can't get a decent render.  I'll try and play around with some of this to try and figure out what I don't know yet.
TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

Majo

#10
Quote from: jamac on April 08, 2020, 10:17:03 AM

"Miscellaneous\Matte Shadow" material you can paste from your TC database from category -> Miscellaneous

"Invalid  Quality\Raytrace Fine_Tone_HDR was found. It will be ignored." -> try to set the Render style manualy like in the Attachments


I changed materials on the Ring. Sorry for that!
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

jamac

Any idea why I'm getting a lot of distinct pixels standing out?  (refer to the image I attached earlier)
TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

AussieBloke

Where the  pixelating is occurring what is the materials shader texture?

Majo

Quote from: jamac on April 08, 2020, 11:01:40 PM
Any idea why I'm getting a lot of distinct pixels standing out?  (refer to the image I attached earlier)

Try edit few parameters as in attachment description
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

jamac

Majo - Those parameters definitely helped with the pixelation.  You've been a big help on these problems.  Thanks!  I wish TurboCAD's documentation on this stuff was a lot better.  I've got more than a solid understanding of all things CAD and I've been doing a ton of camera work in the last decade plus with an awesome mentor (my brother-in-law who only does audio/video production for decades), but this stuff in between those two disciplines is a place I've rarely ventured into.

So my renderings are looking much better now but I now have another problem...
I have a background image that I turned on.  It displays no problem in Draft mode, but in Advanced, the image is black and the lighting blows up all over my objects!  That, and Draft renderings still have strange light issues, such as light shining where it shouldn't, but I'm not so concerned about that.  I'm just trying to figure out how to get a solid looking rendering out.
TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

Majo

If you want add the Background image setup him in
the Environment Shader in a "Sky texture 2D" and
now you will see him in every view (see the attachment).

Here is one notes: that you can not use the floor/plain under the objects!
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak

jamac

This is maddening.  I've spent hours trying to understand Environments in TurboCAD and I still don't know what I'm doing.  I did finally create an environment with my image file and it displays, but with the same lighting blowout I posted earlier.  So whether I do it as an image in a layer or as an image in an Environment, it does the exact same thing, and I don't know why.  I was never able to figure out how to insert the image into a path that looks anything like yours, Majo.  The closest I got was "TC database\Environments\Background\Space\Sky" where I selected "Sky texture 2D" for the background, but there's no place to choose an image file from there.  (I created the "Space" folder.)  I could choose "Environment Map" instead where I could load the image, but I had to load it into "Cube map file name:" and "Background file name:" or I get nothing.  (The other option is "Plain' which is of course just a plain color for the background.)

You can see from the screenshots I took just how different the rendering is with and without the background image in the Environment.  As you can see, the white cylinder in the center of the light ring is not white at all, its black.

There is so little info out there on how to work with these images in an Environment.  I've read through every page from the manual on Environments and never saw how to add an image to an Environment.  I even found a page in the manual that explains that RedSDK has a wonderful "Sky Information" model with lots of detail on how to use it but absolutely nothing on how to actually access it - add it to your drawing.
TurboCAD Pro Platinum V24.0 Build 62.2, 64-bit
Threadripper 1900X, 128GB, GeForce RTX-2080
Windows 10 Home
CAD operator since 1985
TurboCAD user since v8

Majo

#17
Here is link to the RedSDK documentation -> http://www.downloads.redway3d.com/downloads/public/documentation/index.html

And here si how the Sky Shader works -> http://www.downloads.redway3d.com/downloads/public/documentation/bk_ba_adding_a_background.html

And the scheme:


Then you can "play" with Tonemapping "EXPOSURE" operator for lightning the scene. (as example in the attachment)
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

TC Pro Plat x64
www.invent.sk, www.facebook.com/marian.jurcak