Not getting Widescreen on Model 2 Emulator games

Having technical difficulties with Supermodel? Last-minute wardrobe malfunction? Get help here.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Not getting Widescreen on Model 2 Emulator games

Postby ark216 » Wed Aug 17, 2016 5:11 am

Dear All,
I apologize for posting a question related to Model 2 Emulator on Model 3 forums.Question is that i am unable to run any of the model 2 games in a widescreen format despite accessing the emulator.ini file and setting widescreen window=1 (1 is for 16:9), also accessed a .lua file in the scripts folder (daytona.lua in this case) and set these parameters: Model2_SetStretchBLow(1) and Model2_SetWideScreen(1).Despite all efforts i have been unsuccessful.Is there anything i have missed out?

Thanks
ark216
 
Posts: 39
Joined: Thu Aug 04, 2016 1:27 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby ark216 » Wed Aug 17, 2016 2:54 pm

Bump! Help anyone?
ark216
 
Posts: 39
Joined: Thu Aug 04, 2016 1:27 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby Shekel » Wed Aug 17, 2016 4:30 pm

You also need your widescreen resolution defined in
FullScreenWidth=
FullScreenHeight=
User avatar
Shekel
 
Posts: 345
Joined: Wed Mar 16, 2016 12:45 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby ark216 » Thu Aug 18, 2016 3:10 am

I did that already but still no luck. Here is my emulator.exe settings:

;Configuration file for the SEGA Model 2 emulator
;All text to the right of ; is ignored (use as comments)


;Add your rom directories here (max 10)
;ROMS subdirectory in the same folder than the exe is always scanned when searching for roms
;(remove the ; form Dir1)
[RomDirs]
Dir1=F:\Model2\roms


[Renderer]
SoftwareVertexProcessing=0

Wireframe=0 ;Disables polygon filling (for debug purposes, don't change)
FakeGouraud=0 ;Tries to guess Per-vertex colour (gouraud) from the Model2 per-poly information (flat)
Bilinear=1 ;Enables bilinear filtering of textures
Trilinear=0 ;Enables mipmap usage and trilinear filtering (doesn't work with some games, DoA for example)
FilterTilemaps=0 ;Enables bilinear filtering on tilemaps (looks good, but can cause some stretch artifacts)
ForceManaged=0 ;Forces the DX driver to use Managed textures instead of Dynamic. Use it if the emulator
;crashes after loading or doesn't show anything
ForceSync=0
FullScreenWidth=1366
FullScreenHeight=768

AutoMip=0 ;Enables Direct3D Automipmap generation
MeshTransparency=0 ;Enabled meshed polygons for translucency. Requires PS3.0
DrawCross=1 ;Show Crosshair in gun games
GammaR=1.0 ;Per Component Gamma correction (1.0 = no correction). Red
GammaG=1.0 ;Green
GammaB=1.0 ;Blue

WideScreenWindow=1 ;Set widescreen in windows mode: 0 - 4:3, 1 - 16:9, 2 - 16:10
FSAA=1 ;Enable full screen antialiasing in Direct3D



;These options are configured from menus so don't touch
FullMode=4
Sound=1
Frameskip=-1
AutoFull=0
Filter=1



[Input]
XInput=0 ;Enable support for Xbox360 compatible devices
EnableFF=0 ;Enable Force Feedback Effects
HoldGears=0 ;Set to 1 to return to Neutral in driving games when the gear shift key is released
UseRawInput=0 ;Read mouse through Rawinput, allowing 2 mice
RawDevP1=0 ;Assign specific RawInput devices to players. If you have more than 2 mice
RawDevP2=1 ;set which one is assigned to each player (0-based)

;FORCE EFFECTS PARAMETERS
;FE_CENTERING Effect (Spring centering effect)
FE_CENTERING_Gain=0.5 ;Global gain
FE_CENTERING_Coefficient=10000 ;0-10000
FE_CENTERING_Saturation=10000 ;0-10000
FE_CENTERING_Deadband=1000 ;10%

;FE_CLUTCH Effect (Friction, wheel turn hardness)
FE_CLUTCH_Gain=1.0 ;Global gain
FE_CLUTCH_Coefficient=10000 ;0-10000

;FE_LEFT,FE_RIGHT (Constant force in a direction)
FE_LEFT_Gain=1.0 ;Global gain
FE_LEFT_Magnitude=10000 ;0-10000
FE_RIGHT_Gain=1.0 ;Global gain
FE_RIGHT_Magnitude=10000 ;0-10000


;FE_UNCENTERING (Sine force, wave the wheel, rumble)
FE_UNCENTERING_Gain=1.0 ;Global gain
FE_UNCENTERING_Magnitude=10000 ;0-10000
FE_UNCENTERING_Offset=-200
FE_UNCENTERING_Phase=0
FE_UNCENTERING_Period=56000

From the emulator window in the videos tab i selected Custom (Set in .ini). Do the .lua in the scripts folder need any settings for widecsreen? In my daytona.lua it's already set to Model2_SetStretchBlow(1) and Model2_SetWideScreen(1).
ark216
 
Posts: 39
Joined: Thu Aug 04, 2016 1:27 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby Shekel » Thu Aug 18, 2016 6:35 am

OK, 2 more things. Have you set..
Video > Fullscreen Resolution > Custom (Set in .ini) ?

And your script might be missing something. Does it have more than the 2 settings you posted in it?

I'll paste mine for daytona. I don't know where I got it from.

Daytona.lua
Code: Select all
require("model2");   -- Import
model2 machine globals

function Init()
   
end

function Frame()
   local gameState = I960_ReadByte(0x5010A4)

   if   gameState==0x16   -- Ingame
     or gameState==0x03   -- Attract ini
     or gameState==0x04   -- Attract Higscore ini
     or gameState==0x05   -- Attract Highscore
     or gameState==0x06   -- Attract VR Ini
     or gameState==0x07   -- Attract VR
   then
       Model2_SetStretchBLow(1)   -- Stretch the bg tilemap (sky & clouds) when widescreen
      Model2_SetWideScreen(1)
   else               -- No widescreen on the rest of the screens
       Model2_SetStretchBLow(0)
      Model2_SetWideScreen(0)
   end

end
User avatar
Shekel
 
Posts: 345
Joined: Wed Mar 16, 2016 12:45 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby ark216 » Thu Aug 18, 2016 5:48 pm

Yeah as i mentioned i did select Fullscreen>Custom Resolution (in .ini) ( i am using 2560×1440 res).My .lua file appears to be the same as yours,however i will use your's .lua file instead to see any changes and let you know. Also another thing to note that i have just a few model 2 games, but the .lua files i have are only daytona.lua and common.lua.
ark216
 
Posts: 39
Joined: Thu Aug 04, 2016 1:27 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby Shekel » Thu Aug 18, 2016 7:19 pm

Got it, you need model2.lua as well

Code: Select all
require ("common")

ROMBASE      =0x00000000
RAM2BASE   =0x00200000
RAMBASE      =0x00500000
GEOBASE      =0x00800000
COPBASE      =0x00880000
DLISTBASE   =0x00900000
TMAPBASE   =0x01000000
TMAPGFXBASE   =0x01080000
COLORXLAT   =0x01810000
IOBASE      =0x01c00000
BACKUPBASE   =0x01d00000
DATAROMBASE   =0x02000000
XTRADATABASE   =0x06000000
TEX0BASE   =0x11000000
TEX1BASE   =0x11200000
LUMAXLAT   =0x11400000
FRAMEBUFBASE   =0x12c00000

User avatar
Shekel
 
Posts: 345
Joined: Wed Mar 16, 2016 12:45 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby ark216 » Sat Aug 27, 2016 8:18 am

Shekel wrote:Got it, you need model2.lua as well

Code: Select all
require ("common")

ROMBASE      =0x00000000
RAM2BASE   =0x00200000
RAMBASE      =0x00500000
GEOBASE      =0x00800000
COPBASE      =0x00880000
DLISTBASE   =0x00900000
TMAPBASE   =0x01000000
TMAPGFXBASE   =0x01080000
COLORXLAT   =0x01810000
IOBASE      =0x01c00000
BACKUPBASE   =0x01d00000
DATAROMBASE   =0x02000000
XTRADATABASE   =0x06000000
TEX0BASE   =0x11000000
TEX1BASE   =0x11200000
LUMAXLAT   =0x11400000
FRAMEBUFBASE   =0x12c00000


Hi there, i need to add these lines to my daytona.lua or where?

Edit: Just checked i do have the model2.lua file in the "scripts" folder but still no luck......any other clues?
ark216
 
Posts: 39
Joined: Thu Aug 04, 2016 1:27 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby Shekel » Sat Aug 27, 2016 10:26 am

Hmm, ok.

In your 4th post you had this in your ini

FullScreenWidth=1366
FullScreenHeight=768

Have you tried changing this to other numbers? It's not a 16:9 ratio. 1360x768 is.
User avatar
Shekel
 
Posts: 345
Joined: Wed Mar 16, 2016 12:45 pm

Re: Not getting Widescreen on Model 2 Emulator games

Postby ark216 » Sat Aug 27, 2016 4:01 pm

Shekel wrote:Hmm, ok.

In your 4th post you had this in your ini

FullScreenWidth=1366
FullScreenHeight=768

Have you tried changing this to other numbers? It's not a 16:9 ratio. 1360x768 is.

I did change those numbers as now i am running the emulator on an another pc the numbers are 2560 × 1440 (1440p). But nothing changes. However i noticed an extremely strange thing today, the first daytona rom (the very first in the model 2 emulator list) is running "the race" in widescreen not the menus and stuff.The reason i don't settle on this version is mainly due glitchy and washed out graphics. The version i prefer is Daytona USA Special Edition, but neither this or other versions (havent tested all) run in widescreen. Even tried "House of the dead" today but it also ran in 4:3 :-(
I really don't know what i am missing!
ark216
 
Posts: 39
Joined: Thu Aug 04, 2016 1:27 pm

Next

Return to The Fitting Room

Who is online

Users browsing this forum: No registered users and 1 guest