Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Mixing D3D IM with D3DX

This topic is 6966 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Its me again. Ive fixed my texture problems by using D3DX to load my textures with its handy createtextureFromfile() function... but now heres another question / problem. I can initialise D3DX just fine, even load a texture, and get my backbuffer, And i can blit to the backbuffer fine, even call Primary->Flip(). what i now CANT do anymore (since D3DX), is use DrawPrimitive() to render textured or untextured primitives. I have called GetD3DDevice() ok, but when I use it to call DrawPrimitive (between Begin/EndScene()) it just dosent put anything onscreen, despite not returning errors. Ive read you can mix n match components of D3DX, but can you definitley initialise everything with D3DX, then get the device interface and happily render as normal using TLVERTEX and DrawPrimitive()? It dosent seem to work..... *Never had these problems in 2D.... mumble...mumble....* http://www.positech.co.uk

Share this post

Link to post
Share on other sites
I''m certain it''s not D3DX causing your problems (at least not directly). You can do anything in D3D you normally could do when your using D3DX. As Kylotan suggested, it''s probably a lighting problem. Try clearing with a different background color. If the lighting is set up incorrectly, you should see a bunch of black shadows (which are your polygons).


If cities were built like software is built, the first woodpecker to come along would level civilization

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!