Jump to content

  • Log In with Google      Sign In   
  • Create Account


Difference between Renderform and Windows Form?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 rtclawson   Members   -  Reputation: 168

Like
0Likes
Like

Posted 29 January 2013 - 12:19 PM

When I use a SlimDX RenderForm in the Visual Studio 2012 debugger, the output looks fine. However, when I use a Windows Form, the debugging information in the window is huge and pixelated. Any ideas on what I am doing wrong? I've attached an image of what the Windows Form looks like.

Attached Thumbnails

  • form.png


Sponsor:

#2 Dan Mayor   Crossbones+   -  Reputation: 1712

Like
1Likes
Like

Posted 29 January 2013 - 09:03 PM

The first idea I jump to is welcome to windows and DPI problems but it's not likely this is actually the case here.  Post code and give more information we can try to help, best we can guess is either you are letting the device context handle text scaling which would lead to DPI related scaling where windows tries to make your font's as big as the user wants instead of following your guidelines (although this normally doesn't have anything to do with rendering api's just WinForms) or that measuring systems, resolution, field of view, and or aspect ratios are different.  Quite a slew of "could be" things that can be mentioned, posting some code will narrow that down to some more likely culprits.


Digivance Game Studios Founder:

Dan Mayor - Dan@Digivance.com
 www.Digivance.com


#3 rtclawson   Members   -  Reputation: 168

Like
0Likes
Like

Posted 30 January 2013 - 02:46 PM

So, I am not actually drawing the text. It is part of the Visual Studio debugging framework. My code is as bare bones as you can get. I am basically doing what you would find on the SlimDX tutorial for drawing a triangle, except I am not using the RenderForm class. This is what gives me my suspicion that that difference is the cause of the problem. One thing to point out also is the pixelated triangle. It just seems like something is wrong, but I don't have the background in graphics to tell you what it is.



#4 rtclawson   Members   -  Reputation: 168

Like
0Likes
Like

Posted 30 January 2013 - 03:27 PM

I found the error. I was changing the size of the window after I initialized the swap chain/viewport etc. Sometimes I wonder...






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS