"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]
--


|