Gamestudio Links
Zorro Links
Newest Posts
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
1 registered members (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
turn off shading #110231
02/01/07 14:27
02/01/07 14:27
Joined: Jul 2002
Posts: 5,181
Austria
Blattsalat Offline OP
Senior Expert
Blattsalat  Offline OP
Senior Expert

Joined: Jul 2002
Posts: 5,181
Austria
Hi,

I have encountered a problem when trying to align models to each other. In some cases the shading of the single models dont match their neighbours and in my case (a terrain made out of 16mdl files), this leads to this:



Is there any way to fix this or manipulate it?
or is there any way to display models without the shading (like in WED) ingame?

Any help or hint would be great.

cheers


Models, Textures and Levels at:
http://www.blattsalat.com/
portfolio:
http://showcase.blattsalat.com/
Re: turn off shading [Re: Blattsalat] #110232
02/01/07 14:36
02/01/07 14:36
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Obviously, my first suggestion is not to patch a terrain from 16 models, but use a single terrain instead.

If you need the 16 models for some reason: Setting the ambient, diffuse, and specular colors to zero and emissive to nonzero removes any shading.

Re: turn off shading [Re: Blattsalat] #110233
02/01/07 14:49
02/01/07 14:49
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
@Blattsalat:

I guess you are trying a tredmill approach (otherwise I would advice you as well to use a large (chunked) terrain.

If you would stitch both terrains in MED, the gouraud shading would do the right shading. Now, lets take that hill on your image and slice it: there are two models, forming a hill from the left with this slope _/ and from the right with this slope: \_ Obviously, the shading in the concave section of this slope is correct, but you the real slope of 45 degrees or so the one side is shadowed and the other side bright. There is no smooth transition.. but this is right: the gouraud shading doesnt know the continues way the slope would go from one model to another. So there is only a sharp edge. And so, there are no information to argue a smooth transition. The normals of the _vertices_ arent right because you cut the important ones.

How to cirumvent this:

Option A: use a large (maybe chunked) terrain
Option B: instead of slicing the terrain 100% accurately, add some "frame" around each tile, so that follow-up vertices are know so that you deliver these information. The additional vertices are hided by transparent skin parts or a tricky UV mapping
Option C: do it the way JCL mentioned: disable ANY gouraud shading and add a _precalculated_ shadow map instead. Then, you have no shading issues anymore.

I hope, you have got the clue..

Cheers
Christian

Re: turn off shading [Re: jcl] #110234
02/01/07 14:51
02/01/07 14:51
Joined: Jul 2002
Posts: 5,181
Austria
Blattsalat Offline OP
Senior Expert
Blattsalat  Offline OP
Senior Expert

Joined: Jul 2002
Posts: 5,181
Austria
Hi,

thanks a lot! it looks like it works now.

cheers and have a nice one


Models, Textures and Levels at:
http://www.blattsalat.com/
portfolio:
http://showcase.blattsalat.com/
Re: turn off shading [Re: Blattsalat] #110235
02/01/07 18:14
02/01/07 18:14
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
What method did you used?

Re: turn off shading [Re: HeelX] #110236
02/01/07 21:23
02/01/07 21:23
Joined: Jul 2002
Posts: 5,181
Austria
Blattsalat Offline OP
Senior Expert
Blattsalat  Offline OP
Senior Expert

Joined: Jul 2002
Posts: 5,181
Austria
Hi,

i used jcl´s instruction how to turn off the shading.

cheers


Models, Textures and Levels at:
http://www.blattsalat.com/
portfolio:
http://showcase.blattsalat.com/
Re: turn off shading [Re: Blattsalat] #110237
02/03/07 18:08
02/03/07 18:08
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
but doesn't the terrain look very clumsy then?

Re: turn off shading [Re: Joey] #110238
02/03/07 22:00
02/03/07 22:00
Joined: Jul 2002
Posts: 5,181
Austria
Blattsalat Offline OP
Senior Expert
Blattsalat  Offline OP
Senior Expert

Joined: Jul 2002
Posts: 5,181
Austria
no. of course the quality is better with the new gs shading system. But if turned off like jcl mentioned the terrain looks quite like in the wed preview window.
I can repaint the shadows onto the skin to minimze the effect of just "plain" models. so its quite a good sollution for my case (special one)

cheers


Models, Textures and Levels at:
http://www.blattsalat.com/
portfolio:
http://showcase.blattsalat.com/
Re: turn off shading [Re: Blattsalat] #110239
02/06/07 10:55
02/06/07 10:55
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
ah ok i see, if you add the shadows manually you should get a nice shading.


Moderated by  old_bill, Tobias 

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