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
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 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
solid shading on models #114960
03/04/07 06:57
03/04/07 06:57
Joined: Aug 2006
Posts: 128
Papua New Guinea
I
Impaler Offline OP
Member
Impaler  Offline OP
Member
I

Joined: Aug 2006
Posts: 128
Papua New Guinea
Sorry if this is the wrong place...
I need models to look like map objects, you know, with sharp edge shading rather than smooth shading as all the models tend to have. How can this effect be acheived?


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).
Re: solid shading on models [Re: Impaler] #114961
03/04/07 07:13
03/04/07 07:13
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
unweld all the vertices on the model

Re: solid shading on models [Re: Impaler] #114962
03/04/07 07:13
03/04/07 07:13
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
my.material = mat_flat;

You can try that, but I don't think it'll work...

When a model does its lighting, it gets the direction of a face through its vertcies averages. therefore, all normals are interpolated, and provide that smoothness you see (gaurad shading).

You can however write a shader that bypasses this...


xXxGuitar511
- Programmer

Moderated by  Blink, Hummel, Superku 

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