LoadImage() flags and DX

BlitzMax Forums/BlitzMax Programming/LoadImage() flags and DX

Yan(Posted 2005) [#1]
The LoadImage() flags don't seem to be functioning correctly under DX...

Strict

'SetGraphicsDriver GLMax2DDriver() ' FILTEREDIMAGE and MIPMAPPEDIMAGE work as expected
'SetGraphicsDriver BufferedD3D7Max2DDriver() ' FILTEREDIMAGE ignored? MIPMAPPEDIMAGE seems to be filtered too?
'SetGraphicsDriver D3D7Max2DDriver() ' FILTEREDIMAGE ignored? MIPMAPPEDIMAGE seems to be filtered too?

Graphics 640, 480, 0
AutoMidHandle True
 
Local BMXPATH$ = getenv_("BMXPATH")

'Local image:TIMAGE = LoadImage(BMXPATH$ + "/doc/bmax120.png", MIPMAPPEDIMAGE)
Local image:TIMAGE = LoadImage(BMXPATH$ + "/doc/bmax120.png", FILTEREDIMAGE)
Assert image, "no piccy"

Repeat
    Cls

    SetRotation MilliSecs() / 100.0
    DrawImage image, 320, 240
    
    Flip
Until AppTerminate()

End
Anyone else seeing this? (just using FILTEREDIMAGE)


[edit]
I'm using v1.14 and did a sync-mods about 20 minutes after this original post...Still the same ;o)
[/edit]


Yan(Posted 2005) [#2]
Anyone tried this?


tonyg(Posted 2005) [#3]
I tried it on my laptop and it looks OK for me for both GL and DX drivers.


Robert Cummings(Posted 2005) [#4]
The DX flags were changed to match the openGL default flags in the latest syncmods (desired behaviour).

If you suspect this isn't taking place then make a bug report. But watch out for opengl still looking slightly different anyway - drivers will do that.

When both flags are enabled, both images should be smooth.


Yan(Posted 2005) [#5]
Yeah, I'm aware of the recent changes, which is why I didn't stick this straight in as a bug report. I'm not really sure if this is expected or or not, even thought it doesn't seem right to me.

Are you seeing the same thing OEJ?

@tonyg - Ta for testing...and...Hmmmm ;o)


tonyg(Posted 2005) [#6]
YanCanCode, Just did another syncmod and I *DO* recreate the problem.
Sorry, thought this one was up-to-date but apparently not.
Does prove that last syncmod with dx and gl drivers causes the problem.


Yan(Posted 2005) [#7]
Okay, cheers Tony. I'll post a bug report.

[edit]
Blimey...That was quick! :o)
[/edit]