United States (English)
Canada (English)
Canada (Français)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
日本 (日本語)
Forums
Hi,
Visitor
Sign In
Home
Quick Start Guide
News
Membership
Games
Games Catalog
Submit Game
Review Game
Playtest Game
Creators
My Profile
My Business
Community
Forums
Community Spotlight
Community Resources
Education
Getting Started
Education Catalog
Starter Kits
Utilities
Academia
Developer Talk Series
Resources
FAQ
Partners
Download
Feedback
Press Site
Meet the Team
community forums
XNA Community Forums
»
XNA Game Studio Technologies (Windows Phone, Xbox 360, Windows, and Zune)
»
XNA Framework
»
trouble with lighting
More Search Options
|
My Discussions
|
Active Topics
|
Not Read
Page 1 of 1 (2 items)
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
trouble with lighting
Last post 5/6/2008 2:21 AM by
Sean James
. 1 replies.
5/5/2008 9:19 PM
Guy Washington
(0)
Posts
2
trouble with lighting
Reply
Quote
I'm trying to use a cartoon shader, but I can no longer make the effect.EnableDefaultLighting() because the effect is no longer a BasicEffect. How do I make that call using a non basic effect.
Thanks.
5/6/2008 2:21 AM
In reply to
Sean James
(4)
premium membership
Posts
124
Re: trouble with lighting
Answer
Reply
Quote
The effect class is different from the basiceffect class. Using an effect, all the lighting is done in the .fx effect file. Lighting is not provided for you, you will have to do it yourself. Do a google search for 'HLSL Phong Lighting'. Or look for the tutorial on thehazymind.com for 'Creating a custom BasicEffect'.
Innovative Games
|
Follow Innovative Games (me) on Twitter
Page 1 of 1 (2 items)
Previous
Next
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
Privacy Statement
Code of Conduct
Feedback