id Software to release Doom 3 source code
  • IKE
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    IKE
    Posts: 146 from 2009/11/7
    From: Southern CA
    Great work so far! Very smooth on PowerMac G5 2.0 DP (Radeon 9650/256MB). Worked thru the first two objectives despite the missing shaders. Seemed to avg 30-40 FPS when running.

    Wasn’t able to compile, aborts at ~35% complaining ‘undefined reference to main’ (during d3xp.so linking)

    Noticed ‘timedemo demo1’ doesn’t run on the console and causes program to shut down.

    Keep up the good work, I’ll try it out some more once I load it on my MacMini 1.5 and PowerBook 1.67!
    IKE

    MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MB

    Join the conversation @ r/morphos
  • »06.01.21 - 05:57
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    @IKE

    Thanks. I hope it will be better.

    dx3.so needs the same treatment as base.so: Just add dllglue.c code to it. Other stuff inside dx3 needed to be done I don't know if it works because I didn't work on it.

    I tried to compile with dlfcntl.h include but so far only works for main executable (as other versions compilers do) but it fails with "main" needed for the ".so". So the dll library I left there is needed.

    And no, timedemo fails here too.

    I didn't use the cmake way to compile BTW: Barebones single makefile for me.

    [ Edited by Cowcat 06.01.2021 - 08:34 ]
  • »06.01.21 - 08:20
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    And thanks to Waldiamiga for being the betatester. He found that the only way to run the game "almost always" was from an icon with stack.

    Different options added are in my Github: People should go through the code to see what is done. No README for now.
  • »06.01.21 - 08:29
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    So far:

    Two bugs (and a half?). One is related to "brightness" of the scenes and the other the failure of representing the models.

    - You can dim the lights with r_skipLightScale.
    - Models rendering can be seen somewhat with r_skipUpdates (heads still shake).

    The other half bug happens in the first scene in the hangar: In my system is basically all red with some spots till entering the labs. In other systems with more vram or other gfx cards is a triangle/texture dance.

    Still shims of black triangles and quads here and there, probably related to models and scene render.

    My workaround for the scenes to be viewed implied leaving out a couple of binding textures and keeping the one that has all colours.

    Did some tests and concluded that texture mapping fails in the driver (glTexGenfv).
    Got a couple of simple glut programs that also fail to work with that function (probably more are involved).

    Not much can be done for now till this is resolved by the morphos team developers.

    Some bugfixes for mirrors and cleanup for draw_arb soon.





    [ Edited by Cowcat 14.01.2021 - 12:19 ]
  • »14.01.21 - 11:52
    Profile
  • IKE
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    IKE
    Posts: 146 from 2009/11/7
    From: Southern CA
    Great work! Can't wait to test the bugfixes. Keep up the good work.
    IKE

    MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MB

    Join the conversation @ r/morphos
  • »14.01.21 - 14:32
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 523 from 2013/5/29
    Damn...It seems I have a bad Doom3 version . It fails to load with this error:
    ERROR: LoadTGA( textures/sfx/monitor_glass2.tga ): Only type 2 (RGB), 3 (gray), and10 (RGB) TGA images supported

    Will try with another version :/


    EDIT: I have used the latest patch version of DOOM3 and now it runs. It goes at 20 fps +- with a lot of gfx glitches but it is a really good start!

    [ Editado por tolkien 16.01.2021 - 01:37 ]
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »15.01.21 - 22:50
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    Did someone realize that in my latest "Project UAC" video the first scene kinda works?

    I got a theory that lights, textures and entities that go beyond some boundaries are the cause of the render errors all the way.

    In the testing video two functions that check a certain situation exceeding > 1024, I make it return from those instead of continuing the drawing that normally the engine does.

    And that happens all over the place: The debug option "r_checkBounds" spits a whole bunch of problems in the original game but it does nothing about it. (tr_light.cpp).

    The bypassed option test I did is where "r_showUpdates" is called in tr_lightrun.cpp (and more): In the first scene (the hangar) the problems are more apparent.

    The missing model bodies, the shaking model heads and general gfx glitches here and there have probably a root cause in those referenced boundaries.

    I checked a whole bunch of source code ports for different systems and no apparent problems are in those versions.

    Morphos gfx drivers allergic to this engine? All is theory.

    And no response from MOS developers about why texture mapping fails to do its thing.
  • »24.01.21 - 10:00
    Profile
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    Quote:

    Cowcat schrieb:


    I checked a whole bunch of source code ports for different systems and no apparent problems are in those versions.

    Morphos gfx drivers allergic to this engine? All is theory.

    And no response from MOS developers about why texture mapping fails to do its thing.





    I've been discussing this with bigfoot lately and we came to the conclusion that various things related to glTexGenfv most likely don't work as required or the required infrastructure to make it work correctly isn't available in TinyGL. So no easy solution to it as of now.
  • »24.01.21 - 12:37
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    Thanks for the explanation.

    The Texgen bug is not exclusive of Doom3 but game works ok with the morphos workaround I did running on another system. It is what it is now.

    The other part about boundaries surpassed hopefully will be discussed in dhewm3 Github.

    [ Edited by Cowcat 24.01.2021 - 13:20 ]
  • »24.01.21 - 13:19
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    I have to do another release (r3).

    What is known now:

    -The problems with the first level in the Hangar were due to the fog functions that use Texgen (bugged) so that made crazy textures dancing or covered most of the screen in "red".

    -To my understanding, the crucial part that renders basically all is located in VertexCache.cpp that makes use of the VBO functions at massive scale. The shaking models/heads appears to be a symptom of the render driver trying to update newer textures while older ones still waiting to be removed. And of course, lag and glitches when too many cache allocations happen in a frame.

    Some of the upgrades in VertexCache.cpp are from different doom3 ports/mods. Yep I'm aware of all of them but none of them talk about those issues other than RADEON/AMD cards have a different way of doing things and new code tries to (partially) fix that.

    I don't know about other MOS programs that use VBO functions so I don't know if they are working as expected.
  • »17.04.21 - 09:03
    Profile
  • Butterfly
    Butterfly
    waldiamiga
    Posts: 94 from 2007/7/25
    From: Krakow, Poland
    Thanks for your work so we are waiting for the r3 version.

    MorphOS.pl
    PowerBook G4 1.67GHz|2GB DDR2|ATI Radeon 9700M 128MB|SSD 80GB|TFT 17"|MorphOS 3.1x
    Core i7 Notebook|WinUAE 3.x/AmigaOS4.1x & Icaros Desktop 2.x & QEmu 6.x.x
  • »17.04.21 - 14:10
    Profile
  • IKE
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    IKE
    Posts: 146 from 2009/11/7
    From: Southern CA
    Thanks for the update! Appreciate the work!
    IKE

    MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MB

    Join the conversation @ r/morphos
  • »17.04.21 - 18:40
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    So with LogTool enabled (no TGLDEBUG option)...

    Code:
    r200.library: Performance warning for task "doom3": Disabling VBO rendering due to incompatible parameters


    Any of my versions....

    And that explains a lot.
  • »18.04.21 - 08:38
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    Updated to r3.

    I modded "r_showTangents" debug function and other parts to bypass most of the VBO rendering when is in use. Kinda no glitches so far when is called with "2" but no GUI and nothing more: Pure silly colored view, but you can get an idea of how the game works and "play" around.

    Compiled with 2.0.14 SDK.

    Now time to someone else to fix what is needed to be fixed.
  • »19.04.21 - 18:37
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2227 from 2003/4/10
    From: France
    Thanks Cowcat for this new release!

    I hope MorphOS Team could correct that.

    [EDIT] Must wait more 10 seconds to switch Window mode to Fullscreen mode and have the picture...normal ?

    [ Edité par Papiosaur 19.04.2021 - 22:25 ]
  • »19.04.21 - 18:47
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    If I understand you, yes: Some values return to default (off?) when switching video modes.

    I must point out that for some cvars I changed get "saved" like r_skipLightScale and r_skipFogLights that should be used for this particular version.

    Other way of doing it is by using the cfg that is in the package that sets some values for low end machines, etc.
  • »19.04.21 - 20:45
    Profile
  • vox
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    vox
    Posts: 524 from 2003/11/24
    From: Belgrade
    I see new recent release on GitHub
    ProjectUAC_r3.lha
    https://github.com/Cowcat5150/dhewm3/releases
    ------------------------------------------
    iMac G5 1GB with MorphOS and MacOS X
    Lame PC with AmiKit XE
    YT channel https://www.youtube.com/channel/UCdHl_msNWHEVPf229h_gijQ
    Telegram Amiga group: https://t.me/amigaranchorelaxo
  • »22.04.21 - 16:55
    Profile
  • IKE
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    IKE
    Posts: 146 from 2009/11/7
    From: Southern CA
    I tested out the LAN multiplayer functionality today and didn't run into any issues. It connected, reconnected, changed maps, etc to the local server without any problems.
    IKE

    MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MB

    Join the conversation @ r/morphos
  • »01.05.21 - 23:31
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 101 from 2020/12/24
    @IKE

    I just simple made the thing compile and didn't care too much. For compiling with new SDK some function in network has to be disabled because is not found. Whatever.

    Oh, by the way..... https://www.youtube.com/watch?v=M-DrfK5ZJ2Y

    [ Edited by Cowcat 13.05.2021 - 11:30 ]
  • »13.05.21 - 10:26
    Profile
  • IKE
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    IKE
    Posts: 146 from 2009/11/7
    From: Southern CA
    Thanks for the info and updated video. Progressing very well!
    IKE

    MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MB

    Join the conversation @ r/morphos
  • »13.05.21 - 16:20
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Posts: 761 from 2011/11/30
    Checked latest (r4) build yesterday: initially I tried a ripped / prepatched Doom 3 pack I found on the net and although dhewm3 PC version worked on it, MorphOS's port didn't. So I proceeded the hard route, installed original Doom 3, patched it, copied base paks and port worked. It was a magical moment seeing Doom 3 intro on MorphOS. However, it seems to be quite unstable in my system, got 2 out of 3 times *Application is Meditating* which freeze my system completely and had to hard reboot. Also, I am getting a DLL Output that Doom is not an executable, which beats me what means. Regarding performance, I was getting from 7 fps on wide scenes (opening scene) to 25-30 on close range but given I am on an old AGP 2x I am quite happy tbh. Has anyone tried any supporting mod? Or does it require a different build or .so? Especially Hard Corps which was released recently is quite impressive that I checked on the PC.
    Amiga gaming Tribute: Watch, rate, comment :)
  • »14.01.22 - 12:15
    Profile Visit Website