Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 972 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Flat Shading #136526
06/15/07 08:18
06/15/07 08:18
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline OP
Expert
xXxGuitar511  Offline OP
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
D3DRS_SHADEMODE = D3DSHADE_FLAT

This is all the info I could find, but could you add a method for using flat-shading in shaders? or is the only way to unweld all vertices?


xXxGuitar511
- Programmer
Re: Flat Shading [Re: xXxGuitar511] #136527
06/15/07 10:20
06/15/07 10:20
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
what is your problem with using shademode = flat; in your passes?

Re: Flat Shading [Re: ello] #136528
06/15/07 11:23
06/15/07 11:23
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
http://msdn2.microsoft.com/en-us/library/bb509706.aspx

Quote:

nointerpolationDo not interpolate the outputs of a vertex shader before passing them to a pixel shader.




i think you put "nointerpolation" before your output texture coordinate in your vertex shader. i don't know though, i just happened to come across this today on msdn.

hope this helps!

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: Flat Shading [Re: JibbSmart] #136529
06/15/07 11:48
06/15/07 11:48
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
no it's ShadeMode = Flat just as ello said.

Re: Flat Shading [Re: Joey] #136530
06/15/07 13:25
06/15/07 13:25
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
if it doesn't work, say "no" and explain why.

a little research showed nointerpolation is DX10, so you're right, but your post wasn't helpful.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: Flat Shading [Re: JibbSmart] #136531
06/15/07 13:45
06/15/07 13:45
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
o.O i just corrected you... i've used ShadeMode already, so i knew it was correct.

Re: Flat Shading [Re: Joey] #136532
06/15/07 16:45
06/15/07 16:45
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline OP
Expert
xXxGuitar511  Offline OP
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
I swear I looked for it, but I didn't find anything about shadeMode; It works perfectly, thank you...


xXxGuitar511
- Programmer
Re: Flat Shading [Re: xXxGuitar511] #136533
06/15/07 22:56
06/15/07 22:56
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
@joey: that's fair enough, except that there's often more than one way to do something. there was just the implication that u were assuming shademode is the only way to do it, and you may be right but there wasn't any apparent consideration as to whether or not nointerpolation would work.

i don't want to start an argument, and you were right. but i'm just justifying my response

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: Flat Shading [Re: JibbSmart] #136534
06/16/07 08:46
06/16/07 08:46
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
mmh, that was a misunderstanding, sorry for that

Re: Flat Shading [Re: Joey] #136535
06/16/07 09:01
06/16/07 09:01
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
me too, when something isn't isn't 100% clear sometimes i forget not to assume it's said aggressively


Formerly known as JulzMighty.
I made KarBOOM!
Page 1 of 2 1 2

Moderated by  aztec, 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