Re: VERY persistent vertex's
- From: "Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx>
- Date: Thu, 8 Dec 2005 15:32:19 -0800
Turns out I was mixing apples and IB...I mean oranges...hehe! I was trying
to draw one type of vertices but giving it another type of vertices....My
bad... : )
[==P==]
"ZMan" <zman@xxxxxxxxxxxxxx> wrote in message
news:eWBQM639FHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
> There is no memory that could store this - so there must be some leftovers
> in your code from the previous versions.
>
> Delete the entire bin directory and then recompile - that should make sure
> that its nothing to do with a mix up between debug and release (though
> I've never seen anything like what you describe)
>
> Are you telling drawprimitve that there are more vertices than you have?
> Did you change the vertex format so the buffer is bigger than before, and
> then drawing with the old vertex format? (though usually this just makes a
> horrible mess)
>
> If that doesn't work email me the code and I'll take a look.
>
> --
> Zman
> http://www.thezbuffer.com - News and information for Managed DirectX
>
>
>
> "Peter Oliphant" <poliphant@xxxxxxxxxxxxxxxx> wrote in message
> news:uBRhGr39FHA.3560@xxxxxxxxxxxxxxxxxxxxxxx
>>I know this has to be something I've done that's dumb, but this is just
>>too weird. For context, I'm going through the 'Manageed DirectX 9 - Kick
>>Start - Miller", although book is written for C# and I'm convertng it all
>>to VS C++.NET (since C++ is the language I'll be using).
>>
>> I create a small experimental program that drew a Red square using two
>> triangles. This was done ala creating the two vertices and triangles
>> every frame and drawing them using DrawUserPrimitives. Then, following
>> the book, I reverted to creating only 3 vertices, store them in a Vertex
>> Buffer (i.e., on the video card), and then show by virtue of
>> DrawPrimitives method. I have completely removed the old square code.
>>
>> What's weird is that some of the definition of the square from the
>> previous experiment is still there! I've tried re-booting, turning
>> machine off. I've also cleaned the solution and rebuilt everything many
>> times. Same result. I've looked at my code: I only create 3 veritices,
>> all black. If I change the color of these vertices it still has Red
>> vertices (but at least one must also be Black, there is Black now, but
>> still Red), I'm guessing somehow from the previous experiment. I've even
>> searched my (very small) piece of code for the word Red. Nothing.
>>
>> Doubt anyone can help me with this, just thought I'd mention it. I'll
>> post code if requested. Obviously this is very weird (I'm frustrated, but
>> also amused)... : )
>>
>> --------
>>
>> Oh yeah, JUST found a 'clue' [maybe] with this. I compiled to both a
>> debug and a release version. The 'release' version is doing what my code
>> says (all vertices are correct color), the 'debug' version still shows
>> some Red vertices. Huhhhhhhhh? Do video cards have memory nowadays that
>> survive the computer being re-booted and completely turned off? WHERE is
>> is getting these Red vertices?
>>
>> [==P==]
>>
>>
>
>
.
- References:
- VERY persistent vertex's
- From: Peter Oliphant
- Re: VERY persistent vertex's
- From: ZMan
- VERY persistent vertex's
- Prev by Date: Re: DirectPlay.Voice alternatives
- Next by Date: Re: DirectX SDK Update, when?
- Previous by thread: Re: VERY persistent vertex's
- Next by thread: Simple alpha blending
- Index(es):
Relevant Pages
|