Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Model Shading... Again. #231910
10/17/08 17:03
10/17/08 17:03
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline 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 Offline
Expert
EvilSOB  Offline
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 Offline OP
User
draculaFactory  Offline 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 Offline OP
User
draculaFactory  Offline 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: draculaFactory] #231991
10/18/08 16:59
10/18/08 16:59
Joined: Sep 2007
Posts: 658
germany
Tiles Offline
User
Tiles  Offline
User

Joined: Sep 2007
Posts: 658
germany
Under what lighting?


trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
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 Offline OP
User
draculaFactory  Offline 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 Offline
User
Tiles  Offline
User

Joined: Sep 2007
Posts: 658
germany
I would say provide a example scene.

Last edited by Tiles; 10/19/08 07:36.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Model Shading... Again. [Re: Tiles] #232097
10/19/08 13:43
10/19/08 13:43
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA



Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: Model Shading... Again. [Re: draculaFactory] #232584
10/22/08 15:03
10/22/08 15:03
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Bump


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: Model Shading... Again. [Re: draculaFactory] #232603
10/22/08 17:07
10/22/08 17:07
Joined: Sep 2007
Posts: 658
germany
Tiles Offline
User
Tiles  Offline
User

Joined: Sep 2007
Posts: 658
germany
For me it looks like you have a light in there. And the swords ouside the light area gets standard lighting then. Hmm.


trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1