News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

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.

Turbolux glass dispersion in OCL

Started by Andy H, August 19, 2022, 01:28:38 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Andy H

This may be graphic card setup specific. ( like just my graphics card ).  But is anyone else having trouble with glass dispersion in OCL ( TC 2022 plat, build 33.4. Graphic card RTX 2060 ).

Scenario.  Turbolux engine, OCL ticked.
New from scratch.  Draw 100 mm sphere.
Select object, material palette, assign glass material.
Switch material palette to 'Active drawing', select glass material, and click 'Edit turbolux material.
In render manager,  open drop down box for dispersion, and set to 'const_float'.
Left pane, click dispersion.  Right pane, type in 0.0025.

On my machine, TC then mostly freezes after 0.002.  Occasionally it lets me enter the '5' and click the OK button, but then still freezes.

Just wondered if its a problem just on my computer

Torfinn

Confirm, it happen here as well, but my card is a very old one, so maybe ...
Set glass material and open it's active material, change to constant float, try to set dispersion to 0,0035 like in the hint, and it freeze, if click inside TC then it start to spin and crash

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

Andy H

Thanks for checking it Torfinn.

I guess for the first year or two, we have to accept the odd bug and limitation.

Jeff_in_90620

Quote from: Andy H on August 19, 2022, 01:28:38 PM... Switch material palette to 'Active drawing', select glass material, and click 'Edit turbolux material.
In render manager,  open drop down box for dispersion, and set to 'const_float'.

Did exactly that.  There is no triangle by "Dispersion (B term..." indicating an expandable drop box.  There is a Shader setting, but it is ghosted.

You did mean the "Glass" material, named exactly that, right?


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Jeff_in_90620

Dang... I am unable to modify or delete my first reply.

In any case, I tried again and found the 'Dispersion' selection as follows:

From the OP:
Switch material palette to 'Active drawing', select glass material, and click 'Edit turbolux material.
In render manager,  open drop down box for dispersion, and set to 'const_float'.

If you click on the 2nd Glass tab to expand it and then select the Dispersion (B term of the Cauchy's equation) tab in the expanded menu, then you will not be able to do anything.

Replace the second line above with:
In the Render Manager popup, do not click on any of the tabs at the left just yet.  Click on Dispersion (B term of the Cauchy's equation).
Then continue with the instructions.

Now that I could successfully access the settings, I was able to enter 0.0025, so... CNR.


Jeff

Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Torfinn

Was you able to let the material re render preview in Render Manager after change it to 0.0025 also Jeff, without it crash TC ??

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

Jeff_in_90620

Quote from: Torfinn on August 20, 2022, 12:04:20 PMWas you able to let the material re render preview in Render Manager after change it to 0.0025 also Jeff, without it crash TC ??

Yes.  It was almost instantaneous.  I have also been rendering the sphere with three other objects using OCL while I experiment with the Noise setting.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Dean

Quote from: Andy H on August 19, 2022, 01:28:38 PMThis may be graphic card setup specific. ( like just my graphics card ).  But is anyone else having trouble with glass dispersion in OCL ( TC 2022 plat, build 33.4. Graphic card RTX 2060 ).

Scenario.  Turbolux engine, OCL ticked.
New from scratch.  Draw 100 mm sphere.
Select object, material palette, assign glass material.
Switch material palette to 'Active drawing', select glass material, and click 'Edit turbolux material.
In render manager,  open drop down box for dispersion, and set to 'const_float'.
Left pane, click dispersion.  Right pane, type in 0.0025.

On my machine, TC then mostly freezes after 0.002.  Occasionally it lets me enter the '5' and click the OK button, but then still freezes.

Just wondered if its a problem just on my computer

Andy, as a general rule when working with diffraction, caustics... you want to use the Bidirectional Path CPU render style along with the metropolis sampler.
OCL render styles will not produce the optimum desired effect.
Also, are you aware of the OCL Kernel compilation process?
"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

Jeff_in_90620

Quote from: Dean on August 21, 2022, 05:06:04 PMas a general rule when working with diffraction, caustics... you want to use the Bidirectional Path CPU render style along with the metropolis sampler.
OCL render styles will not produce the optimum desired effect.

Hhmmm... for the Dispersion problem, I've been experimenting with the Metropolis server and the Intel OIDN Denoiser specified under Options / TurboLux Engine, with the RT Path OCL Rendering Mode.  It seems unlikely that any of these settings would induce a failure when Dispersion is set greater than 0.002".


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Torfinn

The problem is that it freeze after set "2" at the end, i also tried with * 25.4 = 0,0635 and same problem
Switched over to Imperial and tried there, no luck it still freeze
Same thing if preset Metropolis, but that should not affect the pre render anyway in RM

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

Torfinn

But it did  :o

When we set it to use OCL it also change the pre view render in RM to RT Path OCL, change that to RT Path CPU and it works like a charm :)

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

Dean

#11
You tell me the difference  :)
Don't get me wrong, OCL render styles do have a purpose.


"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

Torfinn

It's not the render it self Gamle ørn :)
It's in Render Manager where the preview change to RT Path OCL that make it freeze when TC try to re render it if we set the Dispersion from default 1 to 0.0035 like in the hint for it.
If i go in to property in RM and change it to RT Path CPU before i change anything, it do not crash.

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

Dean

Quote from: Torfinn on August 22, 2022, 08:59:55 AMIt's not the render it self Gamle ørn :)
It's in Render Manager where the preview change to RT Path OCL that make it freeze when TC try to re render it if we set the Dispersion from default 1 to 0.0035 like in the hint for it.
If i go in to property in RM and change it to RT Path CPU before i change anything, it do not crash.

Torfinn

Hey Old Buddy  :)
Thanks for explaining.
I see it now...
It's in the Log error report.
The report runs in the RM.
"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

Torfinn

Thanks Gamle ørn :)

Then i will report it as a bug, i did not know the report also run in RM

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

Andy H

#15
Thanks all. For checking this out.


Quote from: Dean on August 21, 2022, 05:06:04 PMAndy, as a general rule when working with diffraction, caustics... you want to use the Bidirectional Path CPU render style along with the metropolis sampler.
OCL render styles will not produce the optimum desired effect.
Also, are you aware of the OCL Kernel compilation process?

Thanks Dean.  Bidirectional does produce more symmetrical caustics.

The Kernel thing.  is a pain in the rear end. It shouldn't take TC that long, to get a bit of info from the graphics card.