PLUGIN: Direct3D v1.0 (Sprite and Theora video rendering) [2012-02-08]

Started by AJA, Tue 07/02/2012 22:50:14

Previous topic - Next topic

Tarnos12

Hey, anyone using this plugin figured out how to fix an issue with full screen alt-tabbing?
The screen goes white after coming back to the game.

The log file says:
Code: ags

D3DGraphicsDriver: D3D Device Not Reset
D3DGraphicsDriver: Failed to reset D3D device


This happens if you OpenSprite with D3D plugin in full screen mode.

Test Game
https://www.dropbox.com/s/wqa0295aonpd8pk/D3D_Test.rar?dl=0

Steps to reproduce:
1) Open the game through Compiled/Windows folder so it launches in full screen.
2) Click "GO" button to draw a sprite using D3D
3) Alt Tab
4) Go back
5) Screen will go white and you can no longer play the game, the only way to close it is via task manager.

Crimson Wizard

Updated build with a stricter script API syntax, fixes this plugin for the new compiler from ags4 branch, but should work normally in AGS 3.5 and 3.6 as well; no functional changes.
https://www.dropbox.com/s/fogrd0v3xry0vso/ags_d3d_for399.zip?dl=0
Source project:
https://www.dropbox.com/s/nahgib8xay692p5/ags_d3d_for399_source.zip?dl=0



Quote from: Tarnos12 on Sun 03/04/2022 17:40:05
Hey, anyone using this plugin figured out how to fix an issue with full screen alt-tabbing?

There have been few fixes to Direct3D fullscreen in the engine since, please try again with the latest 3.6.0 / ags4 branch.

Crimson Wizard

As an experiment, I am making a new version of this plugin, that will work with both Direct3D and OpenGL. The latter theoretically allows to use the plugin on other platforms.
Just mentioning it here for the reference; perhaps should be posted in its own thread later.

dll: https://www.dropbox.com/s/w5b31vm0iow7psa/ags_sprite3d.zip?dl=0
64-bit linux so: https://www.dropbox.com/s/mrp3kv5do8mqhxr/libags_sprite3d.zip?dl=0
source: https://www.dropbox.com/s/bp6k5nwg4izvgzz/ags_sprite3d_source.zip?dl=0
The plugin file is called differently (ags_sprite3d), but it's 100% script compatible, which means that you may:
- rename it to ags_d3d.dll and use in same game.
- disable ags_d3d and enable ags_sprite3d in your project and recompile, for the similar result.
No script changes will be necessary.
WARNING: currently not working: theora video playback, creating textures directly from files.

UPDATE: support building for Linux (OpenGL only).
UPDATE: reintegrated video playback.
UPDATE: created a thread for the new plugin: https://www.adventuregamestudio.co.uk/forums/index.php?topic=60089.0

Tarnos12

Quote from: Crimson Wizard on Sun 03/07/2022 22:29:07

Quote from: Tarnos12 on Sun 03/04/2022 17:40:05
Hey, anyone using this plugin figured out how to fix an issue with full screen alt-tabbing?

There have been few fixes to Direct3D fullscreen in the engine since, please try again with the latest 3.6.0 / ags4 branch.

Confirmed, it works.
Tho with the new updated plugin it is not a problem anymore anyway :D

SMF spam blocked by CleanTalk