Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Ddraw x D3D  (Read 4041 times)

0 Members and 1 Guest are viewing this topic.

m.andrade1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:April 10, 2025, 09:05:35 am
  • I want to build my own arcade controls!
Ddraw x D3D
« on: February 25, 2016, 07:51:05 am »
Hello Calamity
Unfortunely as we know the mame dev team will not support ddraw anymore, well i have a mame cab CRT with Ati4350, winxp 32 i´m extremy happy with the results, so we have to move on.
My question is, will D3D have the same result as we have onto Ddraw, i mean a perfect emulation without shaders, scanline effects, blooming effects none of this crappy, can D3D render without any effect and let the CRT do its thing.

Thanks
Marcos

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7463
  • Last login:July 01, 2025, 01:29:14 pm
  • Quote me with care
Re: Ddraw x D3D
« Reply #1 on: February 25, 2016, 11:21:10 am »
Hello Calamity
Unfortunely as we know the mame dev team will not support ddraw anymore, well i have a mame cab CRT with Ati4350, winxp 32 i´m extremy happy with the results, so we have to move on.
My question is, will D3D have the same result as we have onto Ddraw, i mean a perfect emulation without shaders, scanline effects, blooming effects none of this crappy, can D3D render without any effect and let the CRT do its thing.

Thanks
Marcos

D3D has achieved the same results than DirectDraw since day 1 of GroovyMAME history. In fact, when magic resolutions were implemented five years ago, I strongly recommended using D3D all the time in order to avoid issues. This was all for XP, five years ago. The reason people has sticked with DirectDraw must be due to some kind of superstition.

It was much later that it was found out that D3D had added latency with ATI drivers at least. This was an unexpected point in favour of DirectDraw at the time, but very soon D3D became as good as DirectDraw latency-wise thanks to frame_delay.

Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

m.andrade1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:April 10, 2025, 09:05:35 am
  • I want to build my own arcade controls!
Re: Ddraw x D3D
« Reply #2 on: February 25, 2016, 12:48:48 pm »
Thanks a lot Calamity
My main concern is change the render and lost the beaulty of the originality of the arcae CRT tube, with fancy effects that i tought that were implemented in D3D engine to make it more like CRT, i didnt know that D3D could turn off all these effects like, scanline, blooming, emboss all that crappy, i want to keep more original possivel to get the "feeling" i´m playing acctualy in an arcade machine.

Thank you so much!
Marcos

MK

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:May 12, 2024, 03:57:02 pm
Re: Ddraw x D3D
« Reply #3 on: February 25, 2016, 05:57:50 pm »
D3D has achieved the same results than DirectDraw since day 1 of GroovyMAME history. In fact, when magic resolutions were implemented five years ago, I strongly recommended using D3D all the time in order to avoid issues. This was all for XP, five years ago. The reason people has sticked with DirectDraw must be due to some kind of superstition.

I still use ddraw for some games because I've never been able to get d3d to display a cropped image.
Please correct me if I'm wrong but I think that can't be done with d3d.

And why do I want a cropped image on some games?
Let's see if I remember this properly.

First, context:
- I have a 15khz arcade monitor (horizontally)
- Some vertical games use 256 lines resolution @ 60 hz (eg. Terra Cresta)
- Monitors like mine can't do x256 @ 60 hz modeline

So, options:
1) use x256 @ 57 hz modeline - I don't like this because scrolll isn't smooth
2) use higher resolution @ 60 hz - I don't like this because interlaced modes flicker in my monitor
3) use x240 @ 60 hz modeline with d3d - I don't like this because image is stretched (actually shrinked) and yes, I've tried prescale and while it helps improve the picture, it still looks bad in my opinion
4) same as above but using ddraw and disabling hwstretch - image gets cropped but it's way better than the other options

I think it's better because you get pixel perfect graphics, perfect refresh rate (i.e. smooth scroll) and the only downside is you lose 16 pixels.
And you can actually determine which of those pixels you don't want to see (top, bottom, or half top half bottom) by scrolling the view area with PGUP/PGDN

I think that's it... no superstition but a very special setup and a user with very special preferences  ;D

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1537
  • Last login:Yesterday at 11:02:43 am
  • retro maniac
Re: Ddraw x D3D
« Reply #4 on: February 26, 2016, 01:45:59 am »
I used similiar setup to cut unneeded part of game screen like black borders or trash. From groovymame 171 it's not possible :(

m.andrade1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:April 10, 2025, 09:05:35 am
  • I want to build my own arcade controls!
Re: Ddraw x D3D
« Reply #5 on: February 26, 2016, 06:18:11 am »
Thanks Calamity
Last doubt, if i choose to render thru D3D, i have all this itens applied to the screen ? Can i leave them as a "coment #"
Because as i told you,  dont want and kind of post processing, filter, effect, that could change the picture qualitity as i get on Draw.

#
# DIRECT3D POST-PROCESSING OPTIONS
#
hlsl_enable               0
hlslpath                  hlsl
hlsl_prescale_x           0
hlsl_prescale_y           0
hlsl_write               
hlsl_snap_width           2048
hlsl_snap_height          1536
shadow_mask_tile_mode     0
shadow_mask_alpha         0.0
shadow_mask_texture       shadow-mask.png
shadow_mask_x_count       320
shadow_mask_y_count       240
shadow_mask_usize         0.09375
shadow_mask_vsize         0.109375
shadow_mask_uoffset       0.0
shadow_mask_voffset       0.0
curvature                 0.0
round_corner              0.0
smooth_border             0.0
reflection                0.0
vignetting                0.0
scanline_alpha            1.0
scanline_size             1.0
scanline_height           1.0
scanline_bright_scale     1.0
scanline_bright_offset    0.0
scanline_jitter           0.0
defocus                   1.0,0.0
converge_x                0.25,0.00,-0.25
converge_y                0.0,0.25,-0.25
radial_converge_x         0.0,0.0,0.0
radial_converge_y         0.0,0.0,0.0
red_ratio                 1.0,0.0,0.0
grn_ratio                 0.0,1.0,0.0
blu_ratio                 0.0,0.0,1.0
saturation                1.4
offset                    0.0,0.0,0.0
scale                     0.95,0.95,0.95
power                     0.8,0.8,0.8
floor                     0.05,0.05,0.05
phosphor_life             0.4,0.4,0.4

sean_sk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:August 06, 2019, 10:27:48 am
  • If quizzes are quizzical, then what are tests?
Re: Ddraw x D3D
« Reply #6 on: February 26, 2016, 08:11:49 am »
You don't need to comment out any of those lines since they don't have any effect unless you enable hlsl. Just leave them as they are.

m.andrade1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:April 10, 2025, 09:05:35 am
  • I want to build my own arcade controls!
Re: Ddraw x D3D
« Reply #7 on: February 26, 2016, 08:38:49 am »
Hello sean_skroht
Thank you so much for your help, will try to use D3D from now on, and see how it will be on CRT.


m.andrade1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
  • Last login:April 10, 2025, 09:05:35 am
  • I want to build my own arcade controls!
Re: Ddraw x D3D
« Reply #8 on: February 28, 2016, 06:52:37 pm »
Hello Calamity
Thanks to you i can keep my hobby with the good CRT, i made some tests in this weekend with D3D render, and if you DO NOT enable hlsl_enable  you will have the same results you used to have with DDraw, even with vertical game on horizontal monitors, for me there were no difference, i had a customs setting, that were a tip from Calamity to fix the maximum vertical lines to 256 and turn off interlace, all games run progressive.
And a fearture appear games like Starblade start to work normally.
2 Things i noticed:
a) Mame gui (when press TAB) are much more clear to read
b) same thing (when press F11) to see much more clearly the text
So i jumped from 0.161 to 0.169 now running with D3D
If you were link me affraid to migrate from Ddraw to D3D, you can do with no fear.

Thanks a lot Calamity
Marcos