Hello everyone! First of all I want to say that English is not my native language, so please don't get angry if I make any mistakes. I have been trying to create a 3D renderer in computercraft. Please give me some feedback and tell me what you would like to see implemented.
Ideas to be implemented:
- Vertical rotation of objects
- Custom vertexshaders
- Texture support (may not be implemented, because it would probably be very laggy to use real-time)
http://youtu.be/wX_I0WwOtfY
API in action:
http://www.computerc...ine-highscores/
Documentation:
http://www.mediafire...tation.pdf/file
Pastebin downloads:
[ThreeD API minified (smaller file)] - pastebin get meXK8uweThreeD
[ThreeD API (original)I] - pastebin get g1xp8H5X ThreeD
[Engine] - pastebin get DqCTJBza Engine
[First demo] - pastebin get P5b7cAQc Demo1
[Second demo] - pastebin get xTgJQ0hk Demo2
[Third demo] - pastebin get vkaxmF1D Demo3
Complete download (with all files):
http://www.mediafire.com/file/pu8x031qe59rdcp/3D_Renderer_v0.5.1_Complete_Package.zip/file
Update notes:
Version 0.1:
- Renders 3D objects
- Ability to walk around
- Ability to look left and right
- Give objects rotation values
- Renders 3D boxes
- Ability to walk left and right
- Ability to look up and down
- Ability to fly up and down
- More efficient code
- The code is now split into an API and a demo :D/>
- Now uses a buffer (to avoid flickering)
- You can now create your own models
- Square objects look square on screen because the not-square pixels have been compensated for
- The oriëntation of objects is now changeable
- Objects are not rendered when they're not in sight
- Sky and ground colors are easily changed as background
- Change sorting algorithm to use table.sort() for better performance
- Added support for Bomb Bloke's blittle API - Render distance is changeable
- Using term.blit() to render the screen for better performance
- Cleaner code
- Added support for multiple renders at the same time
- Polygons are now only rendered from one side unless specified otherwise. (For better performance)
- Crash fix
- Lagspike fixes
- Performance is better
- Added the ability to trace what's on the screen at certain coordinates and returns the index of the object with the index of the polygon of the model that corresponds to that object
- Added the ability to manually load models as a tabl
- Added the ability to get the model of an object my model name if it has already been loaded
- Performance is way better
- The polygons can now have a character and char color in case the BLittle function isn't used
- Way cleaner code
- (Documentation added)
- (More demos and comments added to the improved engine)