Forum
Contact





DirectX using C#
DirectX using C++
DirectX using Visual Basic



Latest Forum posts

 Suggestion to change a few lines
  Posted by: Insomnica
  When: 06/09/2010 at 14:37:05

 Collision with series 1
  Posted by: radulph
  When: 05/09/2010 at 13:33:14

 HLSL calculating normals
  Posted by: miroslavign
  When: 04/09/2010 at 17:26:26

 Collision with series 1
  Posted by: ToastbrotX
  When: 04/09/2010 at 16:52:02

 HLSL calculating normals
  Posted by: Rich_Zap
  When: 04/09/2010 at 15:00:20

 Collision with series 1
  Posted by: ToastbrotX
  When: 04/09/2010 at 12:28:41

 HLSL calculating normals
  Posted by: miroslavign
  When: 04/09/2010 at 08:46:31

 Walk along a wall
  Posted by: Anonymous
  When: 03/09/2010 at 10:28:02

 model problems
  Posted by: muffinman
  When: 03/09/2010 at 06:47:32

 Vertices problem
  Posted by: Anonymous
  When: 03/09/2010 at 05:48:35

 OcTree Question
  Posted by: Zorzomezz
  When: 03/09/2010 at 04:07:03

 error x3000:syntax error
  Posted by: Anonymous
  When: 02/09/2010 at 06:55:17

 Reflection problem in corners ...
  Posted by: Anonymous
  When: 31/08/2010 at 20:53:30

 OcTree Question
  Posted by: radulph
  When: 31/08/2010 at 18:00:04

 model problems
  Posted by: Archenon
  When: 30/08/2010 at 05:54:27

 Changing computer breaks my game
  Posted by: Archenon
  When: 30/08/2010 at 05:49:50

 model problems
  Posted by: muffinman
  When: 28/08/2010 at 16:58:10

 Vertices problem
  Posted by: Anonymous
  When: 27/08/2010 at 15:35:36

 Changing computer breaks my game
  Posted by: radulph
  When: 27/08/2010 at 07:12:24

 effects file and XNA 4.0 (Beta)
  Posted by: radulph
  When: 26/08/2010 at 06:33:33




Topic: Shadows



  
Goto parent category
  
Create a new user account


   Shadows
 Poster : ggblake
 Posts: 3
 Country : Canada
 City: Kemptville

  
Posted by ggblake on 29/07/2008 at 08:09:24
I'm have problems rendering models, using the
shadow recipe. I followed the example in
chapter 2 to obtain textures, and the effect is
passsed in the RenderScnene(model, effect) signature
Nothing renders except the walls and columns
I have also followe Catlin's approach redcucing
the model to buffers and indices and  the textures
get messed up ie the wall texture is applied to the model.
Can I see some code that uses a draw routin for
models receiveing the various effects from
RenderTo3 and Render with shadowmap.fx.
 Poster : ggblake
 Posts: 3
 Country : Canada
 City: Kemptville

  
Posted by ggblake on 31/07/2008 at 08:47:02
Maybe the issue is rendering models with
different fx files
My skinned animations use the xanimation effect
file and I can't get my head around rendering them
with the shadowmap.fx at the same time.
 Poster : aguacate
 Posts: 25
 Country : México
 City: Monterrey

  
Posted by aguacate on 02/08/2008 at 13:33:53
Excuse me, do you use an effect for your skinned animation?
Where did you find the .fx file?
I am looking for one, that I can use in order to represent human with skin color more real.

Thanks in advance.
 Poster : ggblake
 Posts: 3
 Country : Canada
 City: Kemptville

  
Posted by ggblake on 05/08/2008 at 09:30:14
the effect is embedded in the skinned model by
the skinnedmodel pipeline
you can find the source for it on Codex source files
 Poster : riemer
 Posts: 1388
 Country : Belgium
 City: Antwerp

  
Posted by riemer on 08/08/2008 at 09:20:14
Hi there,

apologies for the late reply, I've been on holiday the past few days.

You're correct in that the problem is in using both effect files together.

In order to get skinning on your object, you need to use the effect from the SkinnedAnimation sample. However, if you want to use it with the Deferred Shading approach, you need to adjust your skinning effect so it renders a value to both the Ambient, Normal and Depth outputs.

This should be simply adjustment, as the heavy stuff of skinning is happening in the vertex shader. In the pixel shader, simply find the color and normal, and send them to the appropriate outputs. The depth value can be obtained as described in the Recipe.

If you have no clue how to do this, let me know so we can discuss this further.
 Poster : meathome
 Posts: 3
 Country : austria
 City: vienna

  
Posted by meathome on 04/11/2008 at 10:00:03
Hi, firstly wheres this catlin method? Because i had problems getting it to render models. if i set the effect in the model and then change it before drawing lights etc its very slow.
 Poster : tubbytreats
 Posts: 2
 Country : US
 City: Dayton

  
Posted by tubbytreats on 05/02/2010 at 09:31:57
I am working through Riemers XNA3.0 Chapter6 tutorials for Deferred Shading and would like to modify the Deferred1Scene.fx file so that it will show BumpMaps and EnvironmentMaps in addition to the ColorTexture that it currently supports.

I'm using a basic PhongBumpMap from NVIDIA and want to incorporate that into the Deferred1Scene.fx file (or modify my PhongBumpMap .fx so that it returns the 3 required output buffers)

Not sure how to do this???

  
Post a new reply
 





Google
 
Web www.riemers.net
If you appreciate the amount of time I spend creating and updating
these pages, feel free to donate -- any amount is welcome !
- Website design & DirectX code : Riemer Grootjans -
©2006 Riemer Grootjans


News
Home
Forum
XNA 2.0 Recipes Book (8)
XNA 3.0 Recipes Book (8)
Downloads
Extra Reading (3)
Matrices: geometrical
Matrix Mathematics
Homogenous matrices
Community Projects (1)
Tutorials (160)
XNA 3.0 using C# (89)
DirectX using C# (54)
Series 1:Terrain (14)
Opening a window
Linking to the Device
Drawing a triangle
Camera
Rotation - Translation
Indices
Terrain creation
Terrain from file
DirectInput
Importing bmp files
Colored vertices
DirectX Light basics
Mesh creation
Mesh lighting
Series 2: Flightsim (19)
Series 3: HLSL (19)
Short Tuts (2)
Resizing problem
Checking Device caps
DirectX using C++ (15)
DirectX using VB (2)