GithubHelp home page GithubHelp logo

voxel9 / xbox-xgu-examples Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 3.0 13.75 MB

GPU-accelerated graphics samples for original Xbox using nxdk and xgu

Home Page: https://github.com/dracc/xgu

License: Creative Commons Zero v1.0 Universal

C 99.90% Makefile 0.06% PostScript 0.04% C++ 0.01%
xbox original-xbox homebrew nxdk xgu gpu graphics 3d

xbox-xgu-examples's People

Contributors

dracc avatar voxel9 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

xbox-xgu-examples's Issues

Normal mapping: unhappy with the point light

The shader code for the normal mapping point light isn't great tbh. The further the light source is, the brighter the mesh becomes for some reason. It looks good when the light source is up close to it though.

Edit: Another option is just dropping the point light altogether and replacing it with directional lighting.

Spheremap FFP sample has regressed

Now compiles into this (see readme screenshot for what it should actually look like):

Untitled

I suspect this might be a result of me tweaking the projection+viewport matrices a little. Needs investigation ASAP.

Normal mapping: additional diffuse texture

I imagine this won't be difficult at all. I haven't thought of the implementation fully yet, but I should just be able to set the diffuse tex to texture index 2 and combine it.

All examples currently require xgu source tweaking to compile

Since recent xgu changes (namely this commit), which removes inlining from xgu functions, some small source changes had to be manually added to both xgu header files before any example here could be compiled.

I've detailed the workaround in the readme, but as far as I can tell there's no way around this until the xgu functions are moved to proper .c source files.

Moving shader_init code into common folder

The shader_init code is exactly the same throughout all samples, so it'd be cool if it could be moved and free up some lines.

Only thing that I can see stopping this would be the shader includes in the function (the .inl file includes).

Sample Makefiles expect fp20compiler to already be built

The sample Makefiles currently expect fp20compiler to already be built before they will process the register combiner source files.

With CG shaders, the nxdk Makefile itself will build the tools before any CG shaders get built, but sadly the .ps files in these samples aren't CG shaders, so a recipe had to be added to the sample Makefiles, which executes before the tools are built.

This will affect anybody who has just cloned the nxdk xgu branch and try to build one of these samples.

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.