Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 20 Jun 2007
Offline Last Active Dec 18 2012 07:27 AM

Posts I've Made

In Topic: SSAO artifacts

12 October 2012 - 11:00 AM

Thanks tried changing the kernel size but this doesn't seem to make any difference.
Adding a minimum depth difference helps to remove the artifacts in some areas but as I move the camera it simply reappears at different depths.

In Topic: Get the current display mode using D3D10

07 January 2009 - 07:57 AM

Original post by wavetable
however, i tried D3D10CreateDeviceAndSwapChain() and it *only* works with a valid DXGI_SWAP_CHAIN_DESC here. does your code work without it?
if it works, how does the DXGI_SWAP_CHAIN_DESC look like? is it in current mode or in first enumed mode (smallest dimension), i am just interested..?

Nah, thats what I thought your were suggesting. As I figured that creating a swapchain requires you to set the format. I was looking for way to get the format of the users current display mode.

Thx for trying anyway. any other suggestions? Or do i have to use brute force and guess work??


In Topic: Get the current display mode using D3D10

07 January 2009 - 01:09 AM

I didn't think that would work as you need to fill in DXGI_SWAP_CHAIN_DESC to create the swap chain in the first place. But if i create a swapchain without filling DXGI_SWAP_CHAIN_DESC or its BufferDesc, D3D10CreateDeviceAndSwapChain will use the current display format??
Is that right?


In Topic: Get the current display mode using D3D10

06 January 2009 - 12:30 PM

That gives me list of possible display modes for a particular adaptor. But doesn't give me the current display mode. I could search the list for modes that match the details I get from EnumDisplaySettings, however that seems kinda roundabout way of doing things. Also to get the format you would have to store all potential formats for each bit depth and search through them.

Any alternatives??


In Topic: Creating enums

11 September 2007 - 12:54 AM

Original post by jpetrie

Generics. Unfortunately, generic constraints can't be "enum," but something like

I was afraid that was gonna be the case, I didn't want to get into 'advance' stuff like generics till I had a better grasp of the basics. Also enum would've worked so nicely for what I was doing.


Using dictionaries would make the above code look neater , But I would lose type safety.

Not neccessarily. What is the implementation you are thinking of?

The idea is to load a number of strings from a file. The user would then choose from one of these strings and a value for this would be stored.
The reason for wanting enums the value would be stored as integers(fast) and when they're displayed I can use strings(slow). They would also be type safe e.g. i couldnt assign a haircolour to an eyecolour.

[Edited by - EternalNewbie on September 11, 2007 11:54:58 AM]