GithubHelp home page GithubHelp logo

xwa_ddraw_d3d11's Introduction

Top Langs Jérémy Ansel's GitHub stats

xwa_ddraw_d3d11's People

Contributors

jarikomppa avatar jeremyansel avatar morallo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xwa_ddraw_d3d11's Issues

X-Wing Alliance does not launch after adding the ddraw files.

Hello, I have just installed X-Wing Alliance on Windows 7 and after updating the game and later adding the ddraw files into the game's directory, I decided to give it a test run to see if it works. I tried launching the game numerous times and it didn't show up.
I decided to check if the game was even running so I ran Task Manager and lo and behold, it's process was there, but the game itself was nowhere to be seen on my display, not even a black screen, it's not like it's even there.
image
(Note : I've not added any mods to this, it's a fresh installation)

The std::map cache must be reset each time a new ship is loaded in the Tech Room

When a new ship is loaded in the Tech Room, the hash for the new meshes may sometimes collide with the old meshes stored in _meshVerticesViews, _meshNormalsViews, _meshTextureCoordsViews, _vertexBuffers, _triangleBuffers and _vertexCounters, causing artifacts.

We just need to call FlightStart every time a new ship is loaded to reset these maps.

One way to do this is by counting the number of draw calls executed during one frame. Then, in SceneEnd() we can call FlightStart() to reset the cache if we're in the Tech Room and the number of draw calls changed since the last frame. This is an example of how I fixed this problem in my branch:

https://github.com/Prof-Butts/xwa_ddraw_d3d11/blob/d3d_hook_merge/impl11/ddraw/XwaD3dRendererHook.cpp#L191

To reproduce this problem, as soon as the game begins, load the Tech Room, then click on "Cycle Craft" 9 times or until you reach the Preybird Fighter. Then click one time on "Cycle by Type" so that the the shuttles are loaded. Then click on "Cycle Craft" 11 times or until you reach the "System Patrol Craft". This ship will display broken geometry.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.