D3D10: Inferno-Demo, autor: Humus

Všetko o grafických kartách, ich problémy, ovládače ...
Používateľov profilový obrázok
crux2005
VIP
VIP
Príspevky: 10030
Dátum registrácie: So 18. Jún, 2005, 20:00
Bydlisko: Nové Zámky

D3D10: Inferno-Demo, autor: Humus

Príspevok od používateľa crux2005 »

Obrázok
This demo uses a couple of interesting features of Direct3D10. It doesn't use any vertex or index buffers at all (except for what the framework uses for GUI), instead everything is generated in the shader from the SV_VertexID and SV_InstanceID system generated values. The skybox has only tree vertices (fullscreen triangle), so by generating that in the shader we avoid the API overhead of binding buffers (which is not the bottleneck of a skybox pass of course, but that's besides the point). The terrain renders instanced triangle strips which read from height from a heightmap. The heightmap is in BC4 format, or ATI1N as it was called in D3D9. This gives us a very compact geometric representation for the terrain. There are 1024 particle systems, all rendered in a single draw call by using instancing. The particle systems are stateless and are generated entirely in the vertex shader from the input vertex and instance IDs. The geometry shader is used to expand the incoming points from the vertex shader into quads in screen-space. This is similar to how point sprites used to work, except it's more flexible and this demo uses rotation on the particles, something that point sprite can't do.

This demo should run on Radeon HD 2000 series and GeForce 8000 series. Since this demo uses D3D10 it only works in Windows Vista.
Download link
s pozdravom, crux.
Používateľov profilový obrázok
Tomax
Používateľ
Používateľ
Príspevky: 598
Dátum registrácie: Št 08. Feb, 2007, 08:00
Bydlisko: Nitra

Príspevok od používateľa Tomax »

- a co je tam presne napisane? pribliz prosim
- este keby to bolo po nemecky by som to vedel rozlustit ale po angl. neviem
Spoiler: ukázať
AMD X6 1100T --4GB RAM -- AMD 6950 1GB --
Používateľov profilový obrázok
crux2005
VIP
VIP
Príspevky: 10030
Dátum registrácie: So 18. Jún, 2005, 20:00
Bydlisko: Nové Zámky

Príspevok od používateľa crux2005 »

je vysvetlene ake zaujimave features D3D 10 su vyuzite v tomto deme:

google preklad

Humus nie je designer, ale tvorca zaujimavych algoritmov. Podobne fadne vyzeraju aj "Normalmapping-Mapping-Techdema", avsak normalmapping je neodlucitelna sucast takmer kazdej modernej hry - vylepsuje velmi kvalitu obrazu a pridava do scen dynamiku.

Rychla metóda ako vytvorit Sprites v D3D 10 najde urcite uplatnenie v realnych hrach. Nakolko je aj flexibilnejsia ako doterajsie metódy ...
s pozdravom, crux.

Návrat na "Grafické karty"