Lighting
by arteria3d · in Artist Corner · 09/10/2006 (8:51 am) · 14 replies
In the scene, is lighting supposed to work on the building, as it does when you light the scene in torque? The reason i ask, is that wehn i do a full relight, inside my building it is still fully lit. However, in torque it is dark and shadowed
Steve
Steve
About the author
Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com
#2
What i mean..is that the building doesnt show, in Constructor as it does in the torque engine. It is my understanding that construtor shows the building utilising the portals etc, so hencefore.. if i havent put any lights in the interior, in constructor the object will apear dark - but it doesnt.
When i load my model into toqure it does show black inside - which is as it should do.
What im trying to pertain here.. is why doesnt contructor take into consideration portals and lighting and display the model exactly like it does in the engine?
Steve
09/10/2006 (3:30 pm)
HI Ray,What i mean..is that the building doesnt show, in Constructor as it does in the torque engine. It is my understanding that construtor shows the building utilising the portals etc, so hencefore.. if i havent put any lights in the interior, in constructor the object will apear dark - but it doesnt.
When i load my model into toqure it does show black inside - which is as it should do.
What im trying to pertain here.. is why doesnt contructor take into consideration portals and lighting and display the model exactly like it does in the engine?
Steve
#3
That is working correctly, when using the in-editor lighting zones do not exist yet, so there is no way for Constructor to know if the ambient lighting should be used or ignored. In-editor lighting shows a good approximation of what the interior will look like in Torque.
To see how interior zones will look you need to use the lighting prefs dialog (which shows the performance/quality options) to disable the sun while working in areas that don't receive ambient lighting.
After the direct to dif export is completed there *should* be a way to see your dif as it will appear in Torque. I think that is what the currently unused BSP Brushes viewport option is for.
09/11/2006 (7:42 am)
Do you mean that the sun's ambient lighting is illuminating the interior where it shouldn't?That is working correctly, when using the in-editor lighting zones do not exist yet, so there is no way for Constructor to know if the ambient lighting should be used or ignored. In-editor lighting shows a good approximation of what the interior will look like in Torque.
To see how interior zones will look you need to use the lighting prefs dialog (which shows the performance/quality options) to disable the sun while working in areas that don't receive ambient lighting.
After the direct to dif export is completed there *should* be a way to see your dif as it will appear in Torque. I think that is what the currently unused BSP Brushes viewport option is for.
#4
it goes somthing like this:
I open constructor.. start to make boxes .etc.... and then i maybe have a house a minute or two after that
Then i texture it... and i place lights in it... to light it up
I turn on sunlight (mostly) and then make a lightmap/shadow map.... wich by all means looks awsomely great.
BUT after a while moving boxes/walls and what not and i then relight the scene again... the shadowmaps suddenly stop working... i have tried to close constructor and open the file again... nope doesn't work
No matter what i do.. the shadowmaps just wont work again after they dissapear ...
(and by dissapear.. i mean they go away so it leaves the scene fully lit... no shadows at all (i think) )
Its a pretty stange thing
Regards
09/11/2006 (8:18 am)
I have a lighting problem almost every time i make somthing and use shadowmaps/light the scene .. it goes somthing like this:
I open constructor.. start to make boxes .etc.... and then i maybe have a house a minute or two after that
Then i texture it... and i place lights in it... to light it up
I turn on sunlight (mostly) and then make a lightmap/shadow map.... wich by all means looks awsomely great.
BUT after a while moving boxes/walls and what not and i then relight the scene again... the shadowmaps suddenly stop working... i have tried to close constructor and open the file again... nope doesn't work
No matter what i do.. the shadowmaps just wont work again after they dissapear ...
(and by dissapear.. i mean they go away so it leaves the scene fully lit... no shadows at all (i think) )
Its a pretty stange thing
Regards
#5
Also make sure that the shadow quality is set to High in the lighting pref dialog.
09/11/2006 (8:50 am)
If you post one of the bad scenes I'll take a look at it here.Also make sure that the shadow quality is set to High in the lighting pref dialog.
#6
09/11/2006 (8:56 am)
John, will there be a "TLK" option to brighten the lighting?
#7
.. or... nahh.. i'll install constructor somewhere else and hook you up with a bad scene ASAP
I have tried that too... infact.. i have tried everything that i can think off (sort of)
Regards
09/11/2006 (2:40 pm)
I'll post one of the bad scenes... as soon as i get hold on my new computer... (wich may take a week.. or two..).. or... nahh.. i'll install constructor somewhere else and hook you up with a bad scene ASAP
Quote:Also make sure that the shadow quality is set to High in the lighting pref dialog.
I have tried that too... infact.. i have tried everything that i can think off (sort of)
Regards
#8
When you need something it doesnt work... when you DONT need it.. it appears all the time
NAhh... maybe its a good thing... maybe its gone! :/
But while testing/making this level.. i had a VERY hard time selecting stuff... when i selected in the stack it most of the time didn't select anything... or it would select 2 different objects!!... whats up with that
and also when selecting in the scene... i often couldnt select objects... i had to go like inches away from it to select it
And i dont recall this in Beta 10
Just to let you know
Regards
09/12/2006 (3:05 am)
Seems like i cant reproduce "the irritating" shadow map dissiperance bug.... Very strage... When you need something it doesnt work... when you DONT need it.. it appears all the time
NAhh... maybe its a good thing... maybe its gone! :/
But while testing/making this level.. i had a VERY hard time selecting stuff... when i selected in the stack it most of the time didn't select anything... or it would select 2 different objects!!... whats up with that
and also when selecting in the scene... i often couldnt select objects... i had to go like inches away from it to select it
And i dont recall this in Beta 10
Just to let you know
Regards
#9
Keep in mind that both the Constructor pref and TLK lighting actually affect the rendering, so assets that look bright and interesting in Constructor and TLK still look very dark in TGE.
Hi Bardur, you might want to break the selection issues out into another thread, so Matt and Dave see it. If you do find a flaky scene send it over and I'll be happy to take a look at it.
09/12/2006 (3:12 am)
Hi Eric, yes there already is - it should be on by default (it was enabled in earlier betas). Ultimately there will be a pref to toggle between it and the lower intensity TGE lighting.Keep in mind that both the Constructor pref and TLK lighting actually affect the rendering, so assets that look bright and interesting in Constructor and TLK still look very dark in TGE.
Hi Bardur, you might want to break the selection issues out into another thread, so Matt and Dave see it. If you do find a flaky scene send it over and I'll be happy to take a look at it.
#10
Heres the file...
rapidshare.de/files/33656454/Light_error.rar
I was working on the scene.. to test Beta 13.. and then i added a second light and BANG! the shadow map dissaperared! :/
SO... i HOPE you can find the cause.. and fix it if its a bug
Regards
Bardur M
09/19/2006 (3:22 am)
JOHN!!... i managed to reproduce the Shadow map bug!Heres the file...
rapidshare.de/files/33656454/Light_error.rar
I was working on the scene.. to test Beta 13.. and then i added a second light and BANG! the shadow map dissaperared! :/
SO... i HOPE you can find the cause.. and fix it if its a bug
Regards
Bardur M
#11
09/20/2006 (10:36 am)
Your WorldSpawn entity's geometry scale is set to 0, which is throwing the lighting off. I'm adding a fix to default any 0 scales to 1, but there may be other areas of Constructor affected by a 0 scale, so you really should avoid using 0.
#12
Infact i dont even really know what the "WorldSpawn entity's geometry scale" is.. (going to read the faq's about it now.. hehe)
so... it must be something that triggers this worldspawn scale to change to 0'
and as a said... when i added the second light.. it started getting hard to select stuff.. and then i relitt the scene... and BANG... the shadow map was gone..
Regards
Bardur
09/20/2006 (10:54 am)
But i have NEVER set it to 0... :/..Infact i dont even really know what the "WorldSpawn entity's geometry scale" is.. (going to read the faq's about it now.. hehe)
so... it must be something that triggers this worldspawn scale to change to 0'
and as a said... when i added the second light.. it started getting hard to select stuff.. and then i relitt the scene... and BANG... the shadow map was gone..
Regards
Bardur
#13
09/20/2006 (12:18 pm)
It sounds like there is a definite bug, maybe related to object creation/selection? Definitely post a bug report explaining what happened and hopefully one of us can track it down.
#14
But its hard to tell exactly what happens... because it kinda... ehh.... just happens... :(
but i'll look more into it and post on mantis
Regards
09/20/2006 (2:33 pm)
Ok.. i'll see if i can "explane" it on Mantis..But its hard to tell exactly what happens... because it kinda... ehh.... just happens... :(
but i'll look more into it and post on mantis
Regards
Torque 3D Owner Ray Depew