Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Aug 2012
Offline Last Active Mar 18 2013 06:03 PM

Topics I've Started

Help with CGFX

04 March 2013 - 09:27 PM



I am making a game engine with multiple rendering interfaces (currently only DX10 and OpenGL 3) and am trying to integrate CGFX into my pipeline. I have looked at the docs for CGFX but cannot seem to find anything that suits my needs.


What I am trying to do is compile a CGFX file to HLSL byte code as I can then just use my DX10Effect class to load the bytecode to a DX10 effect and DX will be happy. Looking at the docs for CGFX it seems I cannot get the DX10 bytecode from a CGFX effect. This means I will have to use CG to do all the effect technique and parameter work instead of DX itself.


Does anyone know if it is possible to get the DX10 bytecode from a CGFX effect?



DDS Loading Into Texture2D

30 January 2013 - 07:34 PM



I am creating an engine using C# and SharpDX. To load DDS files, I was originally decoding the file to a R8G8B8A8 format which defeats the purpose of using DDS as it removes all compression. I am now trying to load DXT5 textures into my engine whilst keeping the compression but I am stuck when trying to copy the texture into the Texture2D DX resource. I have the texture format set as BC3_UNORM.


I'm not quite sure what part of the DDS file I am meant to be copying to the resource and whether or not I am meant to be reordering some channels of the file before doing so. I have tried to find documentation online but it seems to be scarce as everyone wants to use helper functions whereas I am trying to avoid using them solely for the task of loading a DDS file.


Any help or insight into what part of the file I am meant to be copying to the Texture2D resource and any modifications I need to perform would be helpful.



SharpDX - Directx10 and Alpha Blending

19 August 2012 - 08:31 AM

Hey all,

I've recently been working on a rendering engine in SharpDX using DirectX 10 and I'm having a problem with alpha blending. I don't currently have any rendertargets except for the backbuffer. Basically what is happening is that I have the depthstencil state and rasterizer state set and thats working fine, but when I try to set the alpha blend state, everything dissappears. I have tried various alpha blending settings but no matter what I try, if an alpha blend state is set to the device, nothing is visible.

Thanks for any help.