Chaos Corona Forum
General Category => Porting and API => [Archive] Chaos Corona for ARCHICAD => Topic started 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
-
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.
-
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.
-
I think , that's what the OP was asking for :
-
tma that is correct but how?
-
Alex, imagine a rectangle light on a vertical wall as tma presented.
-
...like this
(http://)
-
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.
-
Maybe I'm wrong, but it seems like @tma knows the trick?
-
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
-
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
-
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 :)
-
@alexhajdu if you are ready I will be happy to test it.
-
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.
-
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.
-
Here is the updated light. Please test it and send your feedback as always.
Thanks rozky for your help!
-
It works ok form me :)
P.S:
I've just remembred this other modified corona light object from "Hathor".
https://forum.corona-renderer.com/index.php?topic=22725.0
it as some intresting additions to the default corona one ( but it doesn"t show up in section.)
-
I need your help on how to use gsm file?
-
Is it for importing the gsm ?
-
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.
-
Hi LUXi, what kind of error message? AC22HUN?
-
Corona light for Archicad 21
-
@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!
-
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
-
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)
-
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.
-
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://)
-
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
-
Perfect, thanks.