Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Graph program 3D Graphic
Title: Picking Download
 Description: Ever mesh in the scene has a unique color value(DWORD). Picking, render the scene to target(texture), just use the unique color( see .fx file ), retrieve the mouse position(screen space ) color at once, check the color and you will get the mesh. Picking with Render to texture, Not need lock vertex buffer to check intersection ray and triangle, within retrieving just lock one pixel. Device must support render to target、D3DFMT_A8R8G8B8 or D3DFMT_X8R8G8B8、not 2^n texture size、support shader of course. Compile Environment: DX SDK above Aug. , 2006 vc 2005 Thinking: 1. Use a class to encapsulate 2. Picking check return the pointer of the mesh( or reference )
 To Search: pick vc2005
  • [DXProject2] - 3D graphics programming that involves re
  • [OSGMFC] - OSG with the combination, then how mfc c
  • [Testcode] - This is for collision detection procedur
  • [DOfvegaprime2.0] - vc environment vega prime development ki
  • [rt_FrameBuffer] - VC realize the example of rendering to t
  • [Pick] - Pick up the mouse-ray features, the diff
  • [Visual3DGIS] - At this time a complete three-dimensiona
  • [mouse] - Mouse pick Xiangjie to let you know how
  • [RendertoTexture] - Rendering to texture, you can quickly ob
  • [CExcelOperation] - vc2005 excel excel read and write basic
File list (Check if you may need any files):
Picking
.......\Common

.......\......\dxstdafx.cpp
.......\......\dxstdafx.h
.......\......\DXUT.cpp
.......\......\DXUT.h
.......\......\DXUTenum.cpp
.......\......\DXUTenum.h
.......\......\DXUTgui.cpp
.......\......\DXUTgui.h
.......\......\DXUTMesh.cpp
.......\......\DXUTMesh.h
.......\......\DXUTmisc.cpp
.......\......\DXUTmisc.h
.......\......\DXUTRes.cpp
.......\......\DXUTRes.h
.......\......\DXUTSettingsDlg.cpp
.......\......\DXUTSettingsDlg.h
.......\......\DXUTsound.cpp
.......\......\DXUTsound.h
.......\......\DXUT_2003.sln
.......\......\DXUT_2003.vcproj
.......\......\DXUT_2005.sln
.......\......\DXUT_2005.vcproj
.......\Media
.......\.....\Airplane
.......\.....\........\airplane 2.x


.......\.....\Misc

.......\.....\....\car.x

.......\.....\....\floor.bmp


.......\.....\....\sphere.x
.......\.....\UI
.......\.....\..\arrow.x
.......\.....\..\dxutcontrols.dds
.......\.....\..\DXUTShared.fx
.......\Picking.cpp
.......\Picking.manifest
.......\Picking.rc
.......\Picking_2003.sln
.......\Picking_2003.vcproj
.......\Picking_2005.ncb
.......\Picking_2005.sln
.......\Picking_2005.vcproj
.......\Picking_2005.vcproj.5E141221D0B64B8.yao.user
.......\Picking_2005.vcproj.RAINBOWKNIGHT.jqian.user
.......\resource.h
.......\ring.x
.......\room.x
.......\save.bmp

.......\Shader
.......\......\00.fx
.......\......\ObjectPickPS.psh
.......\......\ObjectPickVS.vsh
.......\......\RenderToTarget.fx
.......\......\RenderToTex.fx
.......\......\ShadowMap.fx

.......\spotlight.x
    

CodeBus www.codebus.net