XNA Creators Club Online
foros de la comunidad

Search Forums

Page 1 of 1 (6 items)
  • Re: RenderTarget2D and OutOfVideoMemoryException

    you should dispose the rendertarget when it is no longer needed (eg when the form gets closed) if you do not render to the render target every single call, you might also use using(rendertarget = new RenderTarget2D(....)) { /* render */ } that way it is disposed directly after the rendering is done - works for me. But since the creation of the ...
    Posted to XNA Framework (Forum) by testi on 14/07/2008
  • Re: Unproject() Insanity

    Thank you very much dexy - you really saved me some trouble. I changed the code a little, so the method is an extension of viewport with the same parameters as Viewport.Unproject(). Now you have to simply change your call from m_viewport.Unproject(...) to m_viewport.UnprojectEx(...). (...and copy the following class in your namespace of ...
    Posted to XNA Framework (Forum) by testi on 20/06/2008
  • Re: Unproject does not return correct results [XNA 2.0]

    The way I see it, the bug I explained in the very first post of this topic still exists in XNA 3.0 CTP. Edit: Looking at the reflected code, it seems that both methods divide by the the float number in the WithinEpsilon if clause. That seems definitly wrong, but multiplying only brings me closer to the correct result and does not return the ...
    Posted to XNA Framework (Forum) by testi on 13/06/2008
  • Re: Implement Viewport.Project in shader code

    I'm currently trying the same thing as the original author wanted, but I'm having difficulties with the result.Basicly it looks like under certain conditions a rounding error occurs and a pixel is missing or the object is shifted by one pixel. I could post a picture if needed.It could be something else, but I couldn't find a solution so far. Is ...
    Posted to General (Forum) by testi on 20/12/2007
  • Re: Unproject does not return correct results [XNA 2.0]

    I actually read the other thread before writing this, but it seemed like the author was satisfied with his result and I didn't if both issues are actually the same.How can I vote for a connect issue?
    Posted to XNA Framework (Forum) by testi on 20/12/2007
  • Unproject does not return correct results [XNA 2.0]

    Hello,there is something wrong with Unproject in XNA 2.0. I used it in my XNA 1.1 code and everything worked like expected. In XNA 2.0 it was reimplemented in c# and it seems like something went wrong. It doesn't work properly!Here is a very basic example that shows that:Vector3 a = m_viewport.Project(new Vector3(0.4f, 0.3f, 0.2f), m_projection, ...
    Posted to XNA Framework (Forum) by testi on 20/12/2007
Page 1 of 1 (6 items)