nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Success w/ DirectX 9.0 SDK October 2004


From: Sebastian
Subject: Re: [Nel] Success w/ DirectX 9.0 SDK October 2004
Date: Mon, 8 Nov 2004 01:29:46 -0700

I see... But what other issues does the 2004 Update cause?  I was able
to build just fine and run snowballs without problems (other than slow
framerate, which i assume was because of a debug build rather than
release).  Do I really need to downgrade my DirectX SDK?

--Sebastian


On Sun, 7 Nov 2004 19:00:20 -0600, Andi [ Debug ] <address@hidden> wrote:
> The issue is not ( how ) to make it compatible i knew how already
> 
> it is a matter of nevrax not being ready for this change i asked nicolas
> vizerie already several times
> and he said not now :)
> 
> 
> 
> 
> ----- Original Message -----
> From: "Sebastian" <address@hidden>
> To: <address@hidden>
> Sent: Sunday, November 07, 2004 3:08 PM
> Subject: [Nel] Success w/ DirectX 9.0 SDK October 2004
> 
> > Hello,
> >
> > I noticed a few people having problems building NeL with
> > DirectX 9.0 SDK October 2004.  Some of my other projects require this
> > new update rather than the 2003 one, so I looked into it and was able
> > to get this working with a just few simple changes.
> >
> > Between 2003 and 2004, Microsoft changed ID3DXEffect::Pass to a
> > ID3DXEffect::BeginPass/ID3DXEffect::EndPass matching pair.  Apparently
> > they thought it was important to allow usage of the Effect::Setx
> > methods during a Pass.  The new BeginPass/EndPass methods are
> > explained here:
> >
> > <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3dx/interfaces/id3dxeffect/BeginPass.asp>
> >
> > All this means for us is that we have to change any calls to
> > ID3DXEffect::Pass to BeginPass/EndPass pairs.  This occurs in three
> > places.  The following simple fixes make NeL compatible with DirectX
> > 9.0 SDK October 2004:
> >
> >
> > driver_direct3d.h: Line 1879:
> > ------------------------------------------------------
> > Change:
> >     drvInfo->Effect->Pass (pass);
> > To:
> >     drvInfo->Effect->BeginPass (pass);
> >     drvInfo->Effect->EndPass ();
> >
> >
> > driver_direct3d_shader.cpp: Line 1124:
> > ------------------------------------------------------
> > Change:
> >     si->Effect->Pass(k);
> > To:
> >     si->Effect->BeginPass(k);
> >     si->Effect->EndPass();
> >
> >
> > driver_direct3d_shader.cpp: 1149:
> > ------------------------------------------------------
> > Change:
> >     HRESULT r = si->Effect->Pass(passIndex);
> > To:
> >     HRESULT r = si->Effect->BeginPass(passIndex);
> >     si->Effect->EndPass();
> >
> >
> >
> > Let me know if this works or doesn't work for you.
> >
> > -Sebastian
> >
> >
> > _______________________________________________
> > Nel mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/nel-all
> >
> >
> 
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]