Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (PeWi, AndrewAMD, Quad, VoroneTZ), 463 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
flat-shaded look? #133498
06/03/07 13:46
06/03/07 13:46
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Hello,

when I try to make my models look more flat-shaded nothing happens.
I tried to use a material.

When I change the "Specular" in MED`s D3D-Lightning the preview changes, but
when I try to do the same in the engine (by using a material) nothing happens.

Why?
How can I make things more flat-shaded?

Re: flat-shaded look? [Re: Freddy_dup1] #133499
06/03/07 14:17
06/03/07 14:17
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
I just noticed that there is no model - shading at all in my game.
Is there a way to turn it on?
I want it to look like it does in MED.

Last edited by Freddy; 06/03/07 14:29.
Re: flat-shaded look? [Re: Freddy_dup1] #133500
06/03/07 14:33
06/03/07 14:33
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
i am not sure about this..

maybe you can try this ..
make sure you set the ambient light colors , etc settings in File->Map Properties /Sun.

also to avoid the light affect on your models..
use : my.unlit = on;

Re: flat-shaded look? [Re: ACKNEX007] #133501
06/03/07 14:41
06/03/07 14:41
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Thanks,
but it still looks like there is no shader.
I tried to change Ambient and Sun, but only the color
and brightness change.
If I turn my.unlit=ON the models get black.

Re: flat-shaded look? [Re: Freddy_dup1] #133502
06/03/07 15:02
06/03/07 15:02
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
for a flat-shaded look you have to unweld all the vertices at edges. Shaders use the normals of the vertices when calculating light, so normals will be interpolated between faces.

You might have to redo the model unles you have some good modelling software. Just make sure the edges you want flat-shaded are seperated.


xXxGuitar511
- Programmer
Re: flat-shaded look? [Re: xXxGuitar511] #133503
06/03/07 15:06
06/03/07 15:06
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
you can use any special shaders than re - modeling ? !

Re: flat-shaded look? [Re: xXxGuitar511] #133504
06/03/07 15:08
06/03/07 15:08
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Thanks.

@xXxGuitar511 :
I think that would work, but it sounds like an unprofessional
way to do it.
I thought that "materials" were included into
3DGS to change shadows.

It works in MED so there must be a way to do it in the
engine, too.

Last edited by Freddy; 06/03/07 15:09.
Re: flat-shaded look? [Re: Freddy_dup1] #133505
06/03/07 15:28
06/03/07 15:28
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
- Materials are used in 3DGS
- Shadows have nothing to do with materials
- You mentioned shaders, are you using one?
- Unprofessional, no, thats just the only way to do it with 3DGS


xXxGuitar511
- Programmer
Re: flat-shaded look? [Re: xXxGuitar511] #133506
06/03/07 15:43
06/03/07 15:43
Joined: Jun 2007
Posts: 236
acknex.exe
ACKNEX007 Offline
Member
ACKNEX007  Offline
Member

Joined: Jun 2007
Posts: 236
acknex.exe
try to post the screen shot of both results.. so it will be easy to help.

Re: flat-shaded look? [Re: ACKNEX007] #133507
06/03/07 17:28
06/03/07 17:28
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
@xXxGuitar511
Shadows have nothing to do with materials?????
Manual:
"The material definition controls the lighting properties
of entities and surfaces, as well as special rendering
effects like pixel and vertex shaders."

If you right-click on the preview in MED and then click
on "GLX Properties" and than on "Advanced..." you can
change the material (and shadows on the model).
I want to do the same in the game.

@ACKNEX007
Sorry I haven`t got any web-space.
You can only see the edges of the models.
The rest is in one color and brightness. (No shadows)
I use a skin with only one color and brightness.
So only the shadows should be visible-
but there are no shadows.

Last edited by Freddy; 06/03/07 17:44.
Page 1 of 4 1 2 3 4

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