Corona Renderer Forum

Corona Renderer for ARCHICAD => Corona Renderer for ARCHICAD - general => Topic started by: LUXi on 2020-01-28, 19:30:32

Title: Corona light settings
Post by: LUXi on 2020-01-28, 19:30:32
Hi all,

I need your help. I am struggling with settings of rectangle light to set the vertical position. How to do that?
Any help I could appreciate.

Thanks,
krsz
Title: Re: Corona light settings
Post by: tma on 2020-01-28, 21:24:52
Yes, it can't be exactly on a vertical position, at least from my tests.
We can approche the vertical position ( using the arrow hotspot), but once on 90°, it switches the light emission direction.

Title: Re: Corona light settings
Post by: alexhajdu on 2020-01-29, 10:06:30
Hi. I'd like to help, but I'm afraid I don't understand your issue. Is this correctly working with lights from AC library? It's not more AC issue than Corona Light issue?
Thanks for bringing more light into this.
Title: Re: Corona light settings
Post by: tma on 2020-01-29, 15:54:32
I think , that's what the OP was asking for :
Title: Re: Corona light settings
Post by: LUXi on 2020-01-29, 17:42:49
tma that is correct but how?
Title: Re: Corona light settings
Post by: LUXi on 2020-01-29, 17:46:31
Alex, imagine a rectangle light on a vertical wall as tma presented.
Title: Re: Corona light settings
Post by: LUXi on 2020-01-29, 17:53:37
...like this
(http://)
Title: Re: Corona light settings
Post by: alexhajdu on 2020-01-30, 09:17:40
Ugh, after 5 minutes of furious clicking I was even not able to rotate a chair :) It's different like generic 3D programs, probably for a good reason. I need to find some tutorials how to rotate an object and then will explore why it's not working for Corona Light.
Title: Re: Corona light settings
Post by: alexhajdu on 2020-01-30, 09:20:32
Maybe I'm wrong, but it seems like @tma knows the trick?
Title: Re: Corona light settings
Post by: rozky on 2020-01-30, 13:15:27
I think the problem is in 3d script

"compute transform":
   EPS = 0.001
   dirX = coro_targetX - coro_posX
   dirY = coro_targetY - coro_posY
   dirZ = coro_targetZ - coro_posZ
   dirLen = SQR(dirX**2 + dirY**2 + dirZ**2)

   if ABS(dirZ) > EPS then
      rotationY = ATN(SQR(dirX**2 + dirY**2)/dirZ)
      if dirZ < 0 then rotationY = 180 + rotationY
   else
      rotationY = 90
   endif

   if ABS(dirX) > EPS then
      rotationZ = ATN(dirY / dirX)
      if dirX < 0 then rotationZ = 180 + rotationZ
   else
      if dirY > 0 then
         rotationZ = 90
      else
         rotationZ = -90
      endif
   endif

2d script can be usefull:

   HOTSPOT2 0,  coro_targetY,  unID, coro_targetX, 1+128 : unID = unID+1
   HOTSPOT2 -1, coro_targetY,  unID, coro_targetX, 3 : unID = unID+1
   HOTSPOT2 coro_targetX, coro_targetY,  unID, coro_targetX, 2 : unID = unID+1

   HOTSPOT2 coro_targetX, 0,  unID, coro_targetY, 1+128 : unID = unID+1
   HOTSPOT2 coro_targetX, -1,  unID, coro_targetY, 3 : unID = unID+1
   HOTSPOT2 coro_targetX, coro_targetY,  unID, coro_targetY, 2 : unID = unID+1

Peter


Title: Re: Corona light settings
Post by: alexhajdu on 2020-01-30, 14:51:14
Thanks @rozky for your help! I will test it and updated Corona Light will be delivered in the next build.
And maybe I will attach it to this thread if you guys need this urgently... cc: @LUXi
Title: Re: Corona light settings
Post by: alexhajdu on 2020-01-30, 15:11:40
I really don't get it. How can I rotate for example column on y-z axis? I tried to change planes, but all I can do is to rotate on x-y axis. Thanks for help :)
Title: Re: Corona light settings
Post by: LUXi on 2020-01-30, 15:20:43
@alexhajdu if you are ready I will be happy to test it.
Title: Re: Corona light settings
Post by: rozky on 2020-01-30, 15:50:36
I really don't get it. How can I rotate for example column on y-z axis? I tried to change planes, but all I can do is to rotate on x-y axis. Thanks for help :)
it's not possible. Morph and shell objects are an exception.
For gdl objects, you can use the hotspots.
Title: Re: Corona light settings
Post by: tma on 2020-01-30, 18:22:16
hi ,

In the 3d view, I grabbed the hotspot on the arrow head of the corona light object , and then rotated the light from there* ( however , it is not possible to get it to be perfecly horizontal ) .

hope it is clear.

Title: Re: Corona light settings
Post by: alexhajdu on 2020-01-31, 13:02:42
Here is the updated light. Please test it and send your feedback as always.
Thanks rozky for your help!
Title: Re: Corona light settings
Post by: tma on 2020-01-31, 17:14:45
It works ok form me :)



P.S:
I've just remembred this other modified corona light object from "Hathor".
https://corona-renderer.com/forum/index.php?topic=22725.0
it as some intresting additions to the default corona one ( but it doesn"t show up in section.)
Title: Re: Corona light settings
Post by: LUXi on 2020-02-03, 17:27:51
I need your help on how to use gsm file?
Title: Re: Corona light settings
Post by: tma on 2020-02-03, 20:42:14
Is it for importing the gsm ?
Title: Re: Corona light settings
Post by: LUXi on 2020-02-03, 23:10:05
I know the steps File > Libraries and Objects > Library Manager...etc. but I got an error message.
Must be the my version HUN is the issue... I am going to try with INT version.
Title: Re: Corona light settings
Post by: rozky on 2020-02-04, 08:07:35
Hi LUXi, what kind of error message? AC22HUN?
Title: Re: Corona light settings
Post by: rozky on 2020-02-04, 08:26:09
Corona light for Archicad 21
Title: Re: Corona light settings
Post by: LUXi on 2020-02-04, 12:28:17
@rozky The message was: The assigned file is not lamp file. Please find a valid lamp file...it is translated roughly from Hungarian
BUT the AC21 version is OK!
THANK YOU!
Title: Re: Corona light settings
Post by: LUXi on 2020-02-05, 19:07:25
I got an issue with the new light.
See the attached file no emitting and the light is black.
The reference light is ok but not turnable to 90 degree
(http://)

AC21HUN
Title: Re: Corona light settings
Post by: TomG on 2020-02-05, 19:32:11
Might the light be facing the wrong way? A quick test would be to enable "Emit on both sides" (then you'll know it's just that the light is facing the wall, rather than not emitting light at all)
Title: Re: Corona light settings
Post by: rozky on 2020-02-06, 08:41:09
I got an issue with the new light.
See the attached file no emitting and the light is black.
The reference light is ok but not turnable to 90 degree
(http://)

AC21HUN

Hi LUXi,
check light settings and make sure you have enabled light.
Title: Re: Corona light settings
Post by: LUXi on 2020-02-06, 13:42:05
I've found the solution.
The negative sign is the issue. In 3D view is possible to adjust the lamp to negative side size
It should not be allowed the negative number.
(http://)
Title: Re: Corona light settings
Post by: Hathor on 2020-02-11, 18:49:33
it as some intresting additions to the default corona one ( but it doesn"t show up in section.)

I specifically hid it from the section window for myself. Sorry, I forgot to remove it or write about it.
In this version, I added a checkmark for the "show in section" function:
https://drive.google.com/open?id=1NZ-FEoNrqWKakxxHMPm6p96L6BFaq69I
Title: Re: Corona light settings
Post by: tma on 2020-02-11, 21:26:11
Perfect, thanks.