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 3 of 11 Topic 4839 of 5061
Post > Topic >>

Re: DirectX to OpenGL

by "Ron Francis" <ronfrancis@[EMAIL PROTECTED] > Jul 18, 2008 at 02:39 PM

"fungus" <openglMYSOCKS@[EMAIL PROTECTED]
> wrote in message
news:2902d6db-3be4-4038-b8f0-a502a557152d@[EMAIL PROTECTED]
>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.

I'm pretty sure I've noticed in my frenzied searching that the Shadow
Volume technique I'm using is also used in OGL.
I should be able to find sample code if I do go down this road so I won't
go 
into detail unless you're interested.
Are you saying that DX and OGL are fairly equivalent?
What advantages do you think OGL has over DX?
I imagine that because it is open source, that I would have access to more

libraries and routines etc.

>> 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?

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

That looks like it.

>Question 2 would be better in comp.graphics.algorithms

Looks like an excellent resource. Great.

>> 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.

Interesting. Ultimately the advantage would be
to be able to give the user a choice and keep up with both technologies.
Twice as much work though.
Food for thought.

This brings me to another couple of questions if you don't mind.
My application runs in a window and within that there are two windows that
I 
render graphics to.
One of them loads some *.x files with some meshes in them.
The questions are ...
1. Can OGL load meshes from files (hard to imagine it wouldn't) and if so,

what type of files?
2. Could I use OGL for one window and DX for the other without any
problems?

Thanks fungus.

Regards,
Ron Francis
www.RonaldFrancis.com





-- Posted on news://freenews.netfront.net - Complaints to
news@[EMAIL PROTECTED]
 --
 




 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:37:06 PST 2009.