Hi everyone,
I'm following Direct3D hardware series. I was trying to draw plane with hills and box in the same scene. I does work. However if I try to draw box only doesn't draw. However, I can draw plane with hills alone and with box. Strange thing is I don't change anything just comment out draw call function if I don't want to draw. When I need to draw just uncomment the code. I checked vertex shader with graphics debugger when I draw it alone its vertices 0,0,0 but without changing anything if I draw both of them it works fine.Any help appreciated. Thanks.
weird issue with vertex shader
weird issue with vertex shader
- Attachments
-
- png2pdf.pdf
- (593.76 KiB) Downloaded 196 times
Re: weird issue with vertex shader
It sounds to me like you're missing some crucial bindable with your box. When you draw with other entities those entities bind it and then it carries over to your box draw.
Sharing code over a pdf filled with screencaps is weird. Post a link to your repo on github.
Sharing code over a pdf filled with screencaps is weird. Post a link to your repo on github.
Chili
Re: weird issue with vertex shader
Sorry for inconvenience about pdf thing. Here is my https://github.com/Caalp/Direct3D/tree/BufferProblems github repo. I was also suspecting that what you said however, I couldn't figure out.
Re: weird issue with vertex shader
Thanks Chili I looked at more closer. As you mentioned before something was missing in box shape. Problem fixed.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: weird issue with vertex shader
Whew, glad you figured it out.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: weird issue with vertex shader
Saves me the trouble of cloning
Eventually I'd like to have some kind of analysis in place that checks for missing bindables like this.
Eventually I'd like to have some kind of analysis in place that checks for missing bindables like this.
Chili