Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Anisotropic filtering?

Author
Message
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 4th Sep 2009 12:58
There's a dbpro plugin to do it, but with DGDK we have access to the DirectX device, but the way to enable it using SetRenderState only set one texture (which doesn't do anything, I tried all 8 of them). How, in DX, can anisotropic filtering be applied to everything within the constraints of dgdk?


Your signature has been erased by a mod
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 4th Sep 2009 13:17
You need SetSamplerState
but if GDK overrides it before rendering, not much you can do.
http://msdn.microsoft.com/en-us/library/bb172264%28VS.85%29.aspx

prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 4th Sep 2009 13:27
SetSamplerState is what I meant *d'oh*



Unfortunately doesn't work It works if I force it on in my drivers, but I can't set it ingame


Your signature has been erased by a mod
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 4th Sep 2009 15:21
Set the sampler state and call device-present instead of a fastsync.... that way GDK wont overwrite your scene b4 render

You can also just call device->present rather than dbSync, but you need to use a peekmessage loop at the start of your main loop

If it ain't broke.... DONT FIX IT !!!
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 5th Sep 2009 12:57
With that peek message loop, I'd have to destroy everything at the end of the program, wouldn't I? And for the first option, I don't use fastsync() in my program, would I put the device->present() before the sync ?


Your signature has been erased by a mod
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 22nd Oct 2009 20:42
Hey. I just released the source code to my DLL which turns on anisotropic filtering.

As DBPro plugins and Dark GDK are similar, I thought it might help you.

Here it is:

http://www.devstorm.co.uk/viewtopic.php?f=36&t=107

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 23rd Oct 2009 12:31
this would be a very useful option.

maybe someone with advanced gdk knowledge can look into the dll code and provide an option for gdk?
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 23rd Oct 2009 12:49
It should be very similar. GDK uses DBOData aswell. I have almost no GDK knowledge, but I can do it aswell. The dll is 3 functions and 80 lines long. Shouldnt be too difficult to understand.

prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 23rd Oct 2009 16:13
When I get home from school, I will check the code and convert it and post it in your topic. Thanks a bunch for releasing the code


Your signature has been erased by a mod
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 23rd Oct 2009 18:39

Login to post a reply

Server time is: 2024-11-20 11:25:41
Your offset time is: 2024-11-20 11:25:41