Talk About Network

Google





Graphics > OpenGL 3D API > Re: DirectX to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 11 Topic 4839 of 5061
Post > Topic >>

Re: DirectX to OpenGL

by fungus <openglMYSOCKS@[EMAIL PROTECTED] > Jul 16, 2008 at 11:41 PM

On Jul 17, 4:07=A0am, "Ron Francis" <ronfran...@[EMAIL PROTECTED]
> wrote:
>
> 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.)
>

As a basic rule, anything with hardware acceleration in Direct3D
should also be in OpenGL. You don't say how you're doing shadows
but OpenGL definitely has stencil.

> 3. I also need to render an off-centre window. In DX, I can do it with
th=
e
> 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
onl=
y
> render a section off to the left or right. Is this possible?
>

glFrustum() does this, or just copy/paste the code from
the docs for D3DXMatrixPerspectiveOffCenterLH( ) and
use those values.

> I have more concerns, but these are the major ones.
> Please let me know if there is a more appropriate newsgroup.

Question 2 would be better in comp.graphics.algorithms


> Any advice will be much appreciated.

Assuming you're using C++: First of all, separate out your
rendering code and create an abstract wrapper class to
encapsulate the functions.

Implement the class in Direct3D, and later OpenGL. That
way you can switch between them.


--
<\___/>
/ O O \
\_____/  FTB.     Remove my socks for email address.
 




 11 Posts in Topic:
DirectX to OpenGL
"Ron Francis" &  2008-07-17 11:37:34 
Re: DirectX to OpenGL
fungus <openglMYSOCKS@  2008-07-16 23:41:59 
Re: DirectX to OpenGL
"Ron Francis" &  2008-07-18 14:39:00 
Re: DirectX to OpenGL
"Andrew Gibson"  2008-07-17 14:38:28 
Re: DirectX to OpenGL
"Ron Francis" &  2008-07-18 14:40:55 
Re: DirectX to OpenGL
"Rene" <my.n  2008-07-30 16:25:55 
Re: DirectX to OpenGL
"Ron Francis" &  2008-07-31 09:28:24 
Re: DirectX to OpenGL
fungus <openglMYSOCKS@  2008-07-17 23:08:54 
Re: DirectX to OpenGL
"Ron Francis" &  2008-07-18 22:27:10 
Re: DirectX to OpenGL
"Gernot Frisch"  2008-07-31 10:47:17 
Re: DirectX to OpenGL
"Ron Francis" &  2008-08-01 10:18:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 12:56:39 PST 2009.