Jump to content
  • Advertisement


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


DX8.1 geometry rendering problem....help badly needed.

This topic is 6075 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

Hi everyone, i''m stuck with a problem i seem to be unable to solve. I''m implementing a very basic heightmap->terrain class at the moment and i stopped working on it for a few weeks. now that i opened the project again i discover that it''s not rendering anymore. So i installed the DX8.1 Debug Version and when debugging i get the following debugmessage from DX8:
Direct3D8: (ERROR) :Stream 0 stride should match the stride, implied by the current vertex shader" 
Now, i understand what that means, but the problems are: 1. I didnt change ANYthing in the code. 2. I don''t know what D3D expects as stride when i use
as fvf vertex shader. 3. I used basically the same methods of rendering vertices as there are in the tutorials/Tut02_Vertices tutorial. I have the same vertex structure (ok, except the rhw value). But as i said, the same code was rendering fine before, and now it stopped. (The only difference between earlier and now is that i''m now using VisualStudio.NET instead of VC++6) My vertex struct looks like this:
	FLOAT x,y,z;
	D3DXCOLOR	color;
Does anyone know how to find out, what D3D expects as stride? Any help is greatly appreciated.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Do you set the correct vertex shader?
ie. you should be using the fixed function pipeline as shader via:
d3dDevice->SetVertexShader( D3DFVF_XYZ | D3DFVF_DIFFUSE );
before trying to DIP any polys...

Maybe using DWORD instead of D3DXCOLOR fixes the problem...

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!