Forum
Contact





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



Latest Forum posts

 Tutorial 3 for Windows Phone 7
  Posted by: Anonymous
  When: 20/05/2013 at 02:30:13

 No download link for 2d series: shooter
  Posted by: zaboleq
  When: 07/05/2013 at 15:46:28

 Collision Class?
  Posted by: Anonymous
  When: 05/05/2013 at 19:03:59

 stack overflow
  Posted by: cityguy
  When: 07/04/2013 at 01:58:38

 Meshes looks strange.
  Posted by: ab_saratov
  When: 01/04/2013 at 04:31:08

 Lamppost Not loaded
  Posted by: Anonymous
  When: 22/03/2013 at 06:43:52

 Collision Class?
  Posted by: Da_Boom
  When: 21/03/2013 at 01:23:09

 Math boggles me
  Posted by: cityguy
  When: 17/03/2013 at 03:44:48

 Collision Class?
  Posted by: Da_Boom
  When: 16/03/2013 at 03:44:42

 Tree update
  Posted by: Anonymous
  When: 15/03/2013 at 21:11:22

 XNA 4.0
  Posted by: Anonymous
  When: 15/03/2013 at 19:43:57

 Error when I try to run.
  Posted by: Anonymous
  When: 15/03/2013 at 19:21:06

 Error With the Effect File
  Posted by: Anonymous
  When: 15/03/2013 at 18:21:01

 Can only get shadowmap
  Posted by: Anonymous
  When: 15/03/2013 at 15:48:52

 Vertex and Pixel Shader Versions?
  Posted by: Anonymous
  When: 15/03/2013 at 15:07:16

 Unsupported properties
  Posted by: Anonymous
  When: 15/03/2013 at 14:23:00

 Problem Loading Skybox
  Posted by: Rana
  When: 15/03/2013 at 10:34:45

 Black Screen Of Death - Help!
  Posted by: Anonymous
  When: 15/03/2013 at 03:43:43

 2.0 anyone?
  Posted by: Anonymous
  When: 15/03/2013 at 02:19:48

 Defitinition of tha rotation axis
  Posted by: Anonymous
  When: 15/03/2013 at 00:55:14




Topic: DrawReflectionMap



  
Goto parent category
  
Create a new user account


   DrawReflectionMap
 Poster : ericc59
 Posts: 3
 Country : US
 City: Kearney

  
Posted by ericc59 on 20/03/2007 at 17:19:29
This line in the DrawReflectionMap method:

refractionMap = refractionRenderTarg.GetTexture();


looks like it got copy/pasted and not changed to save to the reflectionMap and reflectionRenderTarg?
 Poster : wardy
 Posts: 132
 Country : England
 City: none i live in the sticks

  
Posted by wardy on 21/03/2007 at 08:07:25
looks ok to me ?
sure u didn't break that yourself ?

Drawing water aint half hard work !!!
 Poster : ericc59
 Posts: 3
 Country : US
 City: Kearney

  
Posted by ericc59 on 21/03/2007 at 08:41:52
In the source code at the bottom it's right, but in the tutorial it saves to the refractionMap instead of reflectionMap.
 Poster : riemer
 Posts: 1392
 Country : Belgium
 City: Antwerp

  
Posted by riemer on 21/03/2007 at 14:16:40
OK thanks it's been corrected!
 Poster : Anonymous
 Posts:
 Country :
 City:

  
Posted by Anonymous on 21/03/2007 at 23:25:54
It compiles and runs, but I see nothing with either the refraction of reflection tutorials. Am I missing something?
 Poster : riemer
 Posts: 1392
 Country : Belgium
 City: Antwerp

  
Posted by riemer on 22/03/2007 at 04:11:50
I guess so ;)
Both maps are being rendered into a texture, and not drawn to the screen. You can save the texture to a file, as explained in the text, if you want to have a look at it
 Poster : Lordikon
 Posts: 57
 Country : USA
 City: Denver

  
Posted by Lordikon on 23/03/2007 at 00:01:47
Ok, thank you very much (that post above you was mine).

I don't know if this one will be easy to solve, as it's code that isn't in your tutorials. But I've set up the code in split screen mode using viewports and added some AI and stuff. Anyway, the split screen works great, but these 3 lines in the refraction and reflection draw code


device.SetRenderTarget(0, refractionRenderTarg);
device.ResolveRenderTarget(0);
device.SetRenderTarget(0, null)


are causing the projection matrix for whichever viewport is rendered second to take up the entire screen.

By the way, those lines have other code between them, however each of them is required by each other to run, and if they're all 3 commented out the split screen works.

Any ideas?
 Poster : newbie
 Posts: 3
 Country : Singapore
 City: Singapore

  
Posted by newbie on 13/05/2008 at 12:33:43
I'm having some problem with the line below when compiled. It complaints about missing definition for ResolveRenderTarget under GraphicsDevice. Any idea how to resolve this? Thanks.

device.ResolveRenderTarget(0);
 Poster : Anonymous
 Posts:
 Country :
 City:

  
Posted by Anonymous on 27/07/2012 at 13:06:07
It exists but it was deeploevd very poor. Unfortunately even when DX10 is installed there are many programs and games that can't work. The guys who proted it to xp simply took the code from Vista and in some way yet very cruelly ported it to xp even thouggh i haven't found even one game runs under it. If you want DX10 but want to keep XP than use Partition magic and make 10GB of free space on your hdd and install Vista or W7. Dual Boot.

  
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 4.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)