[SOLVED]Model below block wont react to static lights anymore?!?

Posted By: rayp

[SOLVED]Model below block wont react to static lights anymore?!? - 05/29/16 01:28

Hi.
Can somebody explain why lightning on my models stops as soon as a levelblock is above them ?
This problem seams to be only with some of my weapon models, Zombies are fine.

No shaders on, sun_light = 0. Everything works fine. But when i create a block, above Players head, static lightning of some weapon models stops working, looks like UNLIT.

I dont have an idea how to solve this, and what causes this. The keyframe Position of the MDL file ?

Without sky-box-Level-blocks around ( or a single block above Players head ) all like it should be, static lights working, all is looking fine


Block above players head, gun wont react to static lights anymore?!?!??! Standing direct besides a red light

( sun_light is zero this is not the point here )

Please help. This strange thing stops my process heavyly, cause i cant visualize in-door Scenes right now.

Again, my guess is the orientation of the first frame in MDL file. But how to change?


Short words: Block above weapon model, static lights reaction is close to UNLIT flag. Without block above, alls fine. Dynamic lights working in both ways. Weapon has no shader or material applyd.
The big debug problem is, only a few weapons are affected, cant find the difference. Makes no sense.


edit: Converted to vertex animation, moved all to center, same result. Some models wont react to static lights if a levelblock is above?!? switched to a non-shader project to avoid such kind of problems frown

Greets
Posted By: Reconnoiter

Re: Model below block wont react to static lights anymore?!? - 05/29/16 09:22

Howdy,

Originally Posted By: rayp
switched to a non-shader project to avoid such kind of problems frown
, which shader were you using?

Also, I see some a little bit of lightning on the gun on the right in the 2nd pic. Are you sure you have placed enough lights and of enough strength? (perhaps the weapons are to dark?) Or do you have sun ambient also on?
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 10:00

Hi.
No shader and material used!
All is std. A model with one texture and static lights! Some models dont react to static lights below blocks. Never seen that.

Yes in pic 2 is some lightning. But its 10% of strength from outside. As soon as a block is above weapon model they only react a very small bit to lights. No matter how high i place the block above, no matter how bright/wide the light glows. Dynamiclights working well btw!

As u see in Pic2 iam Standing besides a heavy debug light. Outside ( means no block above head ) a smaller red light fades the weapon red.

Something is really going wrong here. In pic2 light is double as strength as the red light in pic1
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 10:15

This video shows how strange lightning works below level blocks. As soon as u have no block above all is looking fine again.

https://youtu.be/QGsSSEd-YLg

edit: Infront of door, weapon is faded to red light ( weak one ). Inside, gun does nothing below the ultra-bright red light.

Even if i put 10 lights below the block, gun wont react to them and stays nearly black.
What the hell ?



And again two shots
Without blocks above ( doesnt matter how high the blocks are )


One block above weaons sh* on lights ( see set much debug lights, should be red and bright like hell compared to the lights outside )

Greets
Posted By: Reconnoiter

Re: Model below block wont react to static lights anymore?!? - 05/29/16 10:46

Okay so only with static lights, and only with certain models. Perhaps something is wrong with the static lights itself. Perhaps they are set that they dont brighten entities/mdls?

Or could this perhaps be some weird bug between the models and PRV/static lights? Like that something is a little bit off with the models that there is some error with how PRV is calculated over the models for lightning etc.? (doubt that though since I never encountered it myself)

I personally dont work much with WED / static lights anymore so I cant help you much further I think.
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 11:29

Thanks anyway for your try really appreciate that.

Ok i stripped it down to the model files. Made a new Level. One hollowed block with one light. Weapons seam to work. Except of some. Those wont react to static lights.

But i cant find any big difference between those models. What could cause a model stop working with static lights?!?

edit: And now the real s* ... if i remove the ceiling in this test.wmb, all weapons are reacting correct to the static light ? Bug?

This drives me crazy!
Posted By: Reconnoiter

Re: Model below block wont react to static lights anymore?!? - 05/29/16 12:12

np, glad to help (or to try grin ),

I would suggest sending one of your stripped down levels but with still the problem to gs3d support. They are helpfull and should indentify the problem fairly soon I think. Maybe also make a thread about it in the ask the developers sub section of the forum.

I think its either a bug or maybe some weird kind of feature of WED/static lights that we are overlooking.

Oh and you might also want to check in MED if the models dont have a custom material setting or custom shader set.
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 12:22

Guess i found the reason!

It seams the scale of the MDL "world-model" - file, no matter which orientation. Even if it is nearly the same as the other models.

Checking this out right now...scaling down MDL, changing weapon-vectors of script...Moment...
So what does that mean? I build everything to small now or what? Everytime in all those years...mhm strange...
edit: Scaling down to 0.1 is no way i know now.
Posted By: 3run

Re: Model below block wont react to static lights anymore?!? - 05/29/16 12:43

I remember facing same kind of a problem in the past.. It will affect all models which are close to the celling. There was something to 'force' model for 'receiving' light from the surface below. But I can't find it in the manual. If I remember correctly, Superku helped me out back then, so maybe he will be able to point out how to make entity 'take' shadows from the surface below.
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 12:46

To mention...i send 3run the shotgun model. He faced the same problem. So its no local script - sun - value - setting or something.

What we found out: Heavy scaling down model via scale_x fex helps, but no workaround cause then u would need to resize everything else
Quote:
'force' model for 'receiving' light from the surface below.
and cause the shotgun is bigger, its closer than other models to the ground/ceiling. Sounds possible to me.


Maybe SuperKu can help here? Hope so, i tryed now since +- saturday 17:00
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 13:33

HAIL TO 3RUN!

A tricky thing caused this.
In MDL file base frame, all looks good


But in frame 1 it looks like this

As u can see, bullets gone to somewhere, causing a gigantic model

Tricky!
Thanks a lot 3run for your support and time!
Posted By: Reconnoiter

Re: Model below block wont react to static lights anymore?!? - 05/29/16 13:37

Originally Posted By: 3run
I remember facing same kind of a problem in the past.. It will affect all models which are close to the celling. There was something to 'force' model for 'receiving' light from the surface below. But I can't find it in the manual. If I remember correctly, Superku helped me out back then, so maybe he will be able to point out how to make entity 'take' shadows from the surface below.
, floor_range perhaps? "Controls the range within which the entities' light depends on the brightness and shadows of the floor area below (default 1000 quants). If the entities' height above the floor exceeds that range, the entity won't receive light, albedo and fog values from the floor texture. This way it can be prevented that aircraft models in a flight simulator suddenly change their brightness dependent on shadows on the ground."

@rayp, congrats, another fun adventure of Gamestudio 3d solved grin
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 13:55

Thanks.
Something about frame/model - orientation was my first guess. But i didnt check what those damn bullets are doing. To see them u need to scroll out very far, in frames > 0.

Comon what a #@!** grin

Edit: Means i converted a lot of models with some damaged frames over the years and did not realize it!
Posted By: WretchedSid

Re: Model below block wont react to static lights anymore?!? - 05/29/16 17:32

Originally Posted By: rayp
[b]No shader and material used!
All is std. A model with one texture and static lights! Some models dont react to static lights below blocks. Never seen that.


Just to be perfectly clear, there is no such thing as no shader anymore. There is no way to render anything without a shader, and just because you didn't set one doesn't mean there isn't one implicitly set for you. In this case by Gamestudio, but if you would insist to the GPU driver directly that you'd rather use the fixed function pipeline it'll just set a shader for you implicitly anyway. It's like saying you can use a CPU without a kernel/OS, software has to drive the hardware and on the GPU side that's the job of shaders.

I realize you found a cause for your problem, but just as a future reference, since there is no such thing as no shaders these day anymore, you might as well use them again.
Posted By: rayp

Re: Model below block wont react to static lights anymore?!? - 05/29/16 17:51

Ok thanks for the info.
Next time i say "no 3rd party material"
© 2024 lite-C Forums