DirectX to OpenGL



Windows XP SP3
Visual Studio 2008, VC++
Platform SDK (win32, no MFC etc.)

Hello, this is my first post here.

I have written something similar to a CAD for my own use that currently uses
DirectX.
Most of the functions are implemented outside of DX and I basically just use
it to render to the screen, zoom in and out and light the polygons.
All the geometry is sent to DX as individual triangles.
There are a couple of things that I want to do that the DX pipeline can't do
(or does incorrectly) so I'm thinking of moving to OpenGL.
This is a huge task and I'm hoping that some of you can answer some general
questions for me before I go wasting too much time in the wrong places.

1: I need to implement shadows. Without going into detail, at the moment I
create a volume shadow from each triangle and use a stencil buffer to
display it.
Is there a similar technique in OGL? (This has it's own problems when
rendering fog because the stencil is right at the front of the viewing
frustum, but at least I get ray traced shadows.)

2. Eventually would like to implement raytraced reflections and soft
shadows. Any advice on where to look at doing that?
I know that Blender (3d modelling) is open source and does it quite well.
Mine is not a commercial application and I can't afford to buy and expensive
library.

3. I also need to render an off-centre window. In DX, I can do it with the
function D3DXMatrixPerspectiveOffCenterLH( );
It would be similar to rendering only a subsection of a scene. The camera
would be at (0,0,0) and aiming along the z axis, but the window would only
render a section off to the left or right. Is this possible?

I have more concerns, but these are the major ones.
Please let me know if there is a more appropriate newsgroup.
Any advice will be much appreciated.

Regards,
Ron Francis
www.RonaldFrancis.com


.



Relevant Pages

  • Re: Mixing 2D and 3D
    ... > What is the proper way to render both 2D and 3D graphics? ... If you are rendering fullscreen or splitting a single window, ... is created, a single implicit swap chain is created, though this is not ... the render target being set or larger. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Doing a Milkshape loader, problem with transparency
    ... Here you can see two screenshots of the scene from different angles, ... The blue ball is partially transparent (see the transparency slider in ... The border is opaque and the window is semi-transparent. ... 843 KB" available on the site but it's outdated and doesn't render the ...
    (comp.graphics.api.opengl)
  • Re: Multiple windows and multithreading
    ... pass some hwnd to the CreateDevicemethod. ... I tried to pass a representation's window hwnd and it wokrs. ... Can I render to another windows with this device, ... If I create only one swap chain for render in multiple ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Studio lighting for 35mm and 4 X5 photography
    ... filter gels. ... For window gels see rosco.com. ... to fill shadows and add highlights. ... n o lindan at ix. ...
    (rec.photo.equipment.35mm)
  • Re: Screendump of non-visible window.
    ... trimmed for faster/easier reading: ... reading the pixels of the X window. ... whether there's a function that'll render a window to a GdkImage ... ... You always have the option of using Xvfb and running the app in a ...
    (comp.os.linux.x)