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

sun luminance

Started by nikkipollard, April 13, 2011, 08:24:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nikkipollard

Is it possible to use a sun luminance to accurately see the shadows of a house?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Henry Hubich

#1
Quote from: nikkipollard on April 13, 2011, 08:24:58 AM
Is it possible to use a sun luminance to accurately see the shadows of a house?

While it's not at all unlikely that I'm missing something, I have never had any success with the Latitude and Longitude parameters. Altitude and Azimuth work OK when Lat and Lon are set to zero.

Henry H

Dean

#2
Hi, I recently had some one ask me if I could animate the shadows created from a pergola  in the yard. This can be very useful. I know sketchup is good for this and works great with Turbocad but due to my eagerness to learn more of what is under the hood in Tcad platinum. I told them ,yea sure I 'll animate the shadows so you will know where they sit during certain times of the day. So, I discovered that I am a blabber mouth :'(. now I have no choice but to accomplish this in Tcad. Below is a default drawing which is sitting inside a glass sphere. The curved shadows are interesting. I have a cone sitting in the center set with the lighting attributes load to render luminance only(thanks Henry). There are so many adjustments to configure and understand. I think Henry  has a book explaining the details. Experience is priceless.

here is another angle. pic3, pic4
"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

DTTurbocad

#3
You're welcomed to look at my settings, there is a sphere with a custom sun luminance

Henry Hubich

Quote from: Dave Taylor on April 13, 2011, 01:19:03 PM
You're welcomed to look at my settings, there is a sphere with a custom sun luminance

Gorgeous drawing!

Henry H

nikkipollard

Thank you I think I need an idiots guide.
I will try setting the latitude and longitude to zero
I was just curious as one of the selling points of archicad at the moment is that you can accurately show the suns shadow. Also new laws here dictate that we will have to submit a shadow line with plans in the future I thought it would be easier if the computer could do all the work.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Henry Hubich

Quote from: nikkipollard on April 13, 2011, 11:06:15 PM
Thank you I think I need an idiots guide.
I will try setting the latitude and longitude to zero
I was just curious as one of the selling points of archicad at the moment is that you can accurately show the suns shadow. Also new laws here dictate that we will have to submit a shadow line with plans in the future I thought it would be easier if the computer could do all the work.

It sure would. But the full potential of "Sun" Luminance is not available in TCad. Actually I don't think you have to set Latitude and Longitude to zero, since TCad ignores them anyway. You will have to calculate the Azimuth and Altitude yourself.


Henry H

Dean

#7
I attempted an animation in anilab5. Anilab5 can animate luminance’s. I animated the Azimuth. The animation below starts looking from north turns to east then south and ends up in Dave's original position west. According to Genie the azimuth respectively-0,90,180,270. I still would like to see the shadows on a ground plane. I am working on animating the altitude where 90 being the sun directly overhead. I will post that later. I am in the middle of a project where I need to display. shadows in relation to a design and its location so this is interesting. I am confident Turbocad can  accomplish this Calculating the sun it’s shadows during  different times of the day. would make a great Ruby script to have..
"
I have never had any success with the Latitude and Longitude parametersk. Altitude and Azimuth work OK when Lat and Lon are set to zero."
genie says that when the "modes" (position,intensity)are off Altitude and Azimuth are calculated. When modes are on latitude and longitude are calculated.

give the animation a few seconds to start

"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

Henry Hubich

Quote from: Dean on April 14, 2011, 11:57:08 AM
I attempted an animation in anilab5. Anilab5 can animate luminance’s. I animated the Azimuth. The animation below starts looking from north turns to east then south and ends up in Dave's original position west. According to Genie the azimuth respectively-0,90,180,270. I still would like to see the shadows on a ground plane. I am working on animating the altitude where 90 being the sun directly overhead. I will post that later. I am in the middle of a project where I need to display. shadows in relation to a design and its location so this is interesting. I am confident Turbocad can  accomplish this Calculating the sun it’s shadows during  different times of the day. would make a great Ruby script to have..
"
I have never had any success with the Latitude and Longitude parametersk. Altitude and Azimuth work OK when Lat and Lon are set to zero."
genie says that when the "modes" (position,intensity)are off Altitude and Azimuth are calculated. When modes are on latitude and longitude are calculated.

give the animation a few seconds to start



Not implemented in TurboCAD. To check it out, open the Luminance Editor; select "Sun" Lumimance from the drop-down list; click the question mark in the little green box beside the list; scroll about halfway down, to the explanation of modes.

Henry H

Dean

 Thanks Henry, for pointing that out to me. Though I wish I would have caught that 3 hours ago :'(. so it's the "sky type" and "time" that Turbocad doesn't use in calculating the sun's luminance's. Time =the longitude and latitude. Sky type =intensity. That would explain why everything was dark. when the modes were on. Though I thought at one point I had genie calculating the latitude and longitude,maybe I've been in the sun too long..I will stick with animating the Azimuth and altitude.
"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

nikkipollard

AAh the little green question mark - that would be the idiots guide I need!
Thank You! How did I miss this?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Dean

#11
Well,  in anilab5  I was able to animate the altitude and azimuth. Apparently in turbcad  these are the two parameters that govern the location of the sun . I kept the drawing simple because I wanted to keep the rendering time to a minimum. I calculated the altitude and azimuth coordinates from a given longitude, latitude, and date. As you see there is a time lapse displaying the shadows of the stationary objects sitting on the ground plane.. I can not seem to create a smooth (real-time) animation displaying the changing  luminance’s. Perhaps I could animate the luminance’s every 30 minutes or so but this would end up being a rather large script.  So I went from 6am-7am-9am-12pm-2pm-6pm-7pm. Un-like the stationary objects the shadows of moving/orbiting objects under the suns luminance’s reflect in real-time. The sun and moon you see orbiting was just for fun and have no influence on the shadows. I had to estimate where the sun would sit at the time of my given coordinates. In turbocad platinum18 there is a new “render geometry”: feature. This gives you an option for an object to cast and receive shadows. I used this on the orbiting sun and moon . Otherwise you would have seen shadows from those objects. It appears as though genie did a  good job on calculating the shadows So, in the  other animation below without any luminance’s loaded  I decided to just use a point light as the sun.  As the light moves  the  shadows reflect the changing positions of the light fairly smoothly. Look what happens when the light collides with the solid sphere, is that an solar eclipse?
"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

Jordan

Boy, do I know that feeling of blabbering too soon! Of course, you won't sell anything if you don't, but TCAD makes it all very risky and exciting.

A few years ago I did sun studies for a glass transit station using Microstation TriForma. It was gorgeous and everyone loved it. Then I switched to TCAD and was asked to do another sun study. Gee, I thought, that I can do in an hour because a 3D rendering program for architecture will certainly be able to track the sun at different times of the day and different parts of the world. Like you, I had egg on my face when I found I couldn't do it without charging them for a lot of calculation and research time. I didn't lose the job, but did lose credibility. It was too late to start drawing the model in Microstation again.

This is certainly a feature that ought to be next on the wish list. I think I'll post this there too.

AussieBloke

Quote from: Dean on April 18, 2011, 07:43:48 PMWell,  in anilab5  I was able to animate the altitude and azimuth. Apparently in turbcad  these are the two parameters that govern the location of the sun . I kept the drawing simple because I wanted to keep the rendering time to a minimum. I calculated the altitude and azimuth coordinates from a given longitude, latitude, and date. As you see there is a time lapse displaying the shadows of the stationary objects sitting on the ground plane.. I can not seem to create a smooth (real-time) animation displaying the changing  luminance’s. Perhaps I could animate the luminance’s every 30 minutes or so but this would end up being a rather large script.  So I went from 6am-7am-9am-12pm-2pm-6pm-7pm. Un-like the stationary objects the shadows of moving/orbiting objects under the suns luminance’s reflect in real-time. The sun and moon you see orbiting was just for fun and have no influence on the shadows. I had to estimate where the sun would sit at the time of my given coordinates. In turbocad platinum18 there is a new “render geometryâ€�: feature. This gives you an option for an object to cast and receive shadows. I used this on the orbiting sun and moon . Otherwise you would have seen shadows from those objects. It appears as though genie did a  good job on calculating the shadows So, in the  other animation below without any luminance’s loaded  I decided to just use a point light as the sun.  As the light moves  the  shadows reflect the changing positions of the light fairly smoothly. Look what happens when the light collides with the solid sphere, is that an solar eclipse?

Ive got some major renovations ( patio roof extension, maybe adding black sliding door glass windows to reduce the sunlight glare, maybe adding sunlight openings through the roof  to increase the daylight light into the dining room and plus a few others ) happening soon on my house and I need to know before I commence how the proposed changes will affect the interior light read natural sunlight in our house.

Therefore, I know this is an old thread but its still right on task for my needs. Okay so Ive put together a simple animation attached and designed based on Deans animation idea above. see sun with shadows gif animation

1. What Im missing is why Im getting an extra shadow thats highlighted in the testing shadows image?

2. What luminance should I use for lighting this animation v6.0?

3. Ive not used a shadow catcher, but I guess I should. Any ideas here?

4. Ive tried my simple distant luminance its not quite right. Any ideas here?



AussieBloke

So Ive got a little closer to the goal of simulating sunlight via the attached gif.

But its not casting the correct shadows as you can see and I did try a shadow catcher material but it didnt work, what am I missing here?  ???

Can anilab control the direction of light inside the either editor by controlling the direction of light like X=0,Y=0,Z=0 as the light rotates around the spline?

Torfinn

I don't know anything about AL, other then i did test it one time and that's it.
But do not RedSDK materials work in AL now, or was that for the v 6 there was a short 2 week test of
Andy H would know that i believe, RW can use Geo location and will give sun/ shadows at any place and time you set it up to, and there is RW plugin to v 2022

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

No idea, if this is the sort of thing you are after Darryl.  And its been waaay too long since I last used lightworks.  There are a number of ways using AL.

The attached uses RedSDK (in TC2021). and is about the simplest method, but it uses directional luminance instead of sun.  the sun (sphere) is on the right, and the moon (sphere) is on the left, at the start.  they rotate simply by relocating ref point and using the rotate command. 

For an elliptical orbit, one could use follow by path.   Fur an actual sun.  one would probably need a touch of code, as Sun direction uses vectors in RedSDK, not standard xyz.  That said, I've never tried altering sun vectors in AL.

Andy H

Extra note ... The reason your gif animation 'wobbles' is probably because you need to go into 'Save-As' , select gif, and in setup, change it from 'all' to 'view'.  You don't need to save a file.  Once changed the the gif will record as you see it (depending on the aspect ration of the TC window - compared to the Gif size required).  If set to All, the gif is trying to keep all your objects in view, by altering the camera.   

Alvin Gregorio

Firstly-- I'd just Shut Down the computer and just use my imagination and intuition in figuring out the shadows in my own house.

2-- Since I don't know how to render, I've been content with using Geo-Location+Sun+Shadows+Use specified time and Geo-Location-- adjusting the Sun's Intensity setting and the specified time.
That should be enough to impress the wife.

Remember to Turn Off the option "Transparency Shadows" in the Options/Lightwork window, if using Lightworks.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Playing with your file a bit, Darryl-- It's obvious that extra shadow of the pole is due to your Render Scene Luminance "Simple Distant" Luminance.  Just look at its From and To settings.

Perhaps set RSL to None; and add some Ambient and Headlight Standard Lighting.
________________
In the v2020 .tcw file in the attached e-Pack .zip-folder (e-Packed because I used a Material for the ground plane that might not be a default), I:
>Added Geo-Location settings, including Sun settings.  But did not set it to use the Geo-Location Sun (you can set it to Sun=yes; I just wanted to leave your testing as close to how you have it; maybe delete or Hide your little sun spheres if you use Geo-Location Sun+Shadows)
>Set the RSL to None
>Turned on and adjusted the settings of the Standard Lights, Ambient and Headlight.
>Assigned a Shadow Catcher Material to the ground plane disk
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Majo

I don't have AnimationLab active right now, but you might try to look at checking the "Geo-Location" parameters in the animation via the VBScript

More info here:
https://forums.turbocad.com/index.php/topic,20784.0.html

Older thread, but I think it should still work
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

AussieBloke

#21
Thanks guys for your collective input here.  ;D

By the way my internet data is shaped atm thanks to my grandson downloading 160gb of useless data for his playstation.  >:(

Torfinn, yeah Ive got redsdk for v2021 and I will get v2022 also, cheers mate. Downside here is that I prefer either AL or TurboLux these days just never got there with redsdk materials etc.

Based on Andys reply ( read gif ) I now see that my problem is in the shadow catcher material that I used, Im getting some shadows but it wasnt what I expected. Looking into that now.

Alvin thanks for your help here its always appreciated thanks mate. Downloading when I can.  ;D

Majo thanks mate for the heads up.  ;D




Steve Edwards

I was a member of an astronomy society for a number of years, and I remember one guest speakers specialist  subject was the Sun, from memory just calculating the suns position for a time , date , longitude, latitude was complicated enough without taking into account atmospheric effects, ray incident etc. 
I hope you get somewhere near an approximation for your needs and I found this which may help (or complicate things further) Good luck

https://www.pveducation.org/pvcdrom/properties-of-sunlight/suns-position-to-high-accuracy
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

AussieBloke

Steve my needs are more modest in nature and that all I really want is to cast shadows over any structure in this instance/post.

Im a bit like Torfinn in that I do renders mostly out of the box so to speak with the available materials only. Im more experienced as a mechanical guy in nature and that I have a good library of Lightworks materials than other render engines but always take a keen interest in expanding my knowledge.


Like Majo's last post Im looking into anilabs scripting to see if I can learn or adapt that info to suit my needs here.  ;D

Dean

#24
Darryl,
I was able to get the "Azimuth" to animate and working on the "Angle"  :) in Redsdk.
Lightworks worked nice with a Sun script in 32 bit BUT now it's history.
I really don't want to get into specifics with redsdk,sorry  :) .Maybe Majo will help ya but some scripts do work in 2022.
Maybe Vlad can make a few adjustments so Lux Sun and Sky scene animates! Yay  :)

Edit > Here's the 2022 animating the Sun Azimuth and Angle  https://youtu.be/9BZxXf1Lek4
"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

nikkipollard

Quote from: Dean on June 16, 2022, 11:13:26 AMDarryl,
I was able to get the "Azimuth" to animate and working on the "Angle"  :) in Redsdk.
Lightworks worked nice with a Sun script in 32 bit BUT now it's history.
I really don't want to get into specifics with redsdk,sorry  :) .Maybe Majo will help ya but some scripts do work in 2022.
Maybe Vlad can make a few adjustments so Lux Sun and Sky scene animates! Yay  :)

Edit > Here's the 2022 animating the Sun Azimuth and Angle  https://youtu.be/9BZxXf1Lek4

Dean does scripting no longer work in 2022?
When I first asked this question, I was able to get the macro recorder to record a lightworks material change. I am pretty sure I was using 64 bit.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h