heightmap im shader auslesen
-
http://www.toymaker.info/Games/html/d3d_resources.html schrieb:
4. D3DPOOL_SCRATCH
Places resources in system RAM. These resources can be locked and do not need recreating on a lost device. The great advantage of this resource type is that it is not restricted by the video card e.g. many video cards require texture dimensions to be power of 2 only so if you wish to load a non power of 2 texture this is the only pool into which you can load it. The disadvantage of course is that resources in this pool cannot be accessed by the device and so cannot be used during rendering. This pool is generally used for pre-processing of data e.g. you could load a large texture into a scratch memory surface and then slice it into smaller pieces and create normal device textures with it.
-
ok, da hab ich mich vll verlesen ^^ aber mit managed funktionierts auch nicht..
-
Ich hab dir doch in ICQ gesagt das das mit dx9 nicht geht, warum glaubst du mir nicht, ich weiß schon was ich rede xD
Wegen den Texturen habe ich dir ein wunderschönes tut geschickt, wo alles ausführlih erklrt wird

-
Was soll mit dx9 nicht gehen?
Ich bin kein D3D Experte, aber in einem Vertex-Shader Vertices zu verschieben ... ich meine wenn DAS nicht geht, wozu sollen Vertex-Shader dann überhaupt gut sein?Oder meinst du den Zugriff auf die Textur?
-
es geht.. hab ja schon einiges gelesen

aber bei mir gehts gerade nicht... drum post ich ja im forum

-
welche graka hast du
kein output von d3ddebug?
-
also ich hab eine radeon HD 2600XT
der shader hat auch keine fehler oder so, er stellt aber die hoehe von dem vertex nicht um (außer ich machs manuell) also er liest die daten nicht richtig aus der textur (bzw eben garnicht..)
-
kein d3ddebug output?
wird das textureformat unterstuetzt laut caps?
-
bitte nicht so viele fachbegriffe

wie schau ich nach, obs unterstützt wird?
-
systemsteuerung -> directx ->direct3d -> debug mode (nicht retail)
und
-
so.. hab jetzt berge... hab die textur falsch hinzugefügt...
device->SetTexture(D3DVERTEXTEXTURESAMPLER0, heightmapTextur);
so gehts jetzt..
-
Code-Walker schrieb:
Ich hab dir doch in ICQ gesagt das das mit dx9 nicht geht, warum glaubst du mir nicht, ich weiß schon was ich rede xD
damit wäre das dann ja auch geklärt.