6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Model Shading... Again.
#231910
10/17/08 17:03
10/17/08 17:03
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
I can't seem to find any relevant posts on this anymore.
The problem is with model shading in the levels. I have a model that is a flat plane with the player model, a house, and a sword on top. I have the blue ambient light set to 32, the idea is to create a dimly lit blue level. Under the model plane there is a static light that is being blocked by a regular block (the ambient light doesn't seem to work without it). The player model has an action attached to it to move the player, the sword is static (no action), and the house has an action that simply sets my.polygon and then loops.
The flat plane, player model, and sword model appear correctly and react to dynamic light. The house does not show up correctly, it is brightly lit and the ambient light doesn't seem to affect it at all, it also reacts properly to dynamic light.
I have tried everything that I can think of to get the house model to show up properly. I have made it static; assigned unlit flag; assigned unlit material; fiddled with the ambient; rotated it upside down; I have made it small, made it huge and rotated it; assigned a c_move action to make it move up, down, right, left, forwards, reverse-backwardwise, and pseudo-inversed widdershins. The only thing that seemed to work is that I deleted the player model, assigned the player action to the house and had a walking house, that worked, but it isn't quite that angle that I am looking for. I examined the player code to see if there was something different, there was nothing different.
In short, I paid for A6 Commercial, paid to upgrade to A7 Commercial. Why can't my models show up correctly?
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Model Shading... Again.
[Re: draculaFactory]
#231924
10/17/08 20:25
10/17/08 20:25
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I once had all sorts of problems like that, and they're not all sorted. BUT I found that changing the material in your script makes things more controllable. The engine apparently assigns built-in materials to objects itself and in my experience they are sometimes bad choices.
Create a new material in your script and turn the one in your MDL file off and see if that helps. It did for me, Im just not sure why as I am as still a A7 noob myself.
Hope this info is of help.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Model Shading... Again.
[Re: EvilSOB]
#231956
10/18/08 07:24
10/18/08 07:24
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
Thats the odd thing, no models have any materials assigned to them.
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Model Shading... Again.
[Re: draculaFactory]
#231977
10/18/08 15:01
10/18/08 15:01
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
I made a special material and applied it to all the models, I got a lot of varied results; sometimes it worked and sometimes it didn't based on where and how I placed the models.
Oddly enough, I was doing more tests and I think I found the cause; when I move the models away from the level origin, they do not shade properly. Basically, in order to get them to show up correctly I have to have all entities at position 0, 0, 0; this strikes me as being retarded. Does anyone have any solutions for this, or know why this is happening?
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Model Shading... Again.
[Re: Tiles]
#232056
10/19/08 04:30
10/19/08 04:30
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
The level ambient lighting is set to 0, 0, 32; basically dark-blue. The sun light is 0, 0, 0; nothing. It is really odd behavior that has always happened when I have attempted to do this. I know that there are others, they post and no one ever responds. Could this be considered to be a "bug"?
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Model Shading... Again.
[Re: draculaFactory]
#232058
10/19/08 07:36
10/19/08 07:36
|
Joined: Sep 2007
Posts: 658 germany
Tiles
User
|
User
Joined: Sep 2007
Posts: 658
germany
|
I would say provide a example scene.
Last edited by Tiles; 10/19/08 07:36.
|
|
|
|