Git Product home page Git Product logo

x3d-68k's People

Contributors

catastropher avatar ivoah avatar jmcgough227 avatar mikeweyandt avatar mwildersancsoft avatar patrickhoward avatar zmfrazier avatar

Stargazers

 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  avatar  avatar

Forkers

ritesh2741

x3d-68k's Issues

Clock cursor crash

With interrupts enabled on the Nspire, a clock cursor automatically appears and is drawn to the screen. While annoying, it's actually causing a crash. The Nspire OS assumes the LCD is in 16-bit color mode, but X3D uses 8-bit color. So, the screen is only half as big as it expects and it draws it off the screen.

Solution: find a way to disable the clock cursor.

Consider renaming repo

You might want to consider renaming the repository, as this is no longer a 68k project.

Implment 2D polygon utility functions

3D polygons have a number of utility functions, but we're lacking their 2D counterparts:

void x3d_polygon2d_translate(X3D_Polygon2D* poly, X3D_Vex2D shift);
void x3d_polygon2d_reverse(X3D_Polygon2D* poly);
void x3d_polygon2d_center(X3D_Polygon2D* poly, X3D_Vex2D* dest);
void x3d_polygon2d_scale(X3D_Polygon2D* poly, fp8x8 scale);
void x3d_polygon2d_copy(X3D_Polygon2D* src, X3D_Polygon2D* dest);

Take a look at C/geo/polygon.c and headers/X3D_polygon.h

Large surfaces not being rendered properly

Large surfaces seem to be cut off for some reason while rendering them on a polygon (see below, screenshot from XBuilder).

xbuilder-surface-bug

While rendering, this debug info was dumped to the console, which may be relevant:

/home/michael/code/X3D-68k/src/C/render/geo/render_polygon_texture_generic.h:59:25: runtime error: left shift of negative value -1048
/home/michael/code/X3D-68k/src/C/render/geo/render_polygon_texture_generic.h:50:19: runtime error: signed integer overflow: 1614449424 + 1614449424 cannot be represented in type 'int'
/home/michael/code/X3D-68k/src/C/render/geo/render_polygon_flat.c:47:19: runtime error: signed integer overflow: 2109702881 + 45809696 cannot be represented in type 'int'
/home/michael/code/X3D-68k/src/C/render/surface.c:59:56: runtime error: left shift of negative value -516
/home/michael/code/X3D-68k/src/C/render/geo/render_polygon_texture_generic.h:59:25: runtime error: left shift of negative value -24634
/home/michael/code/X3D-68k/src/C/render/geo/render_polygon_texture_generic.h:50:19: runtime error: signed integer overflow: 1614446591 + 1614451024 cannot be represented in type 'int'

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.