Comments (2)
First of all, thanks a lot for all this feedback!
I must apologize as I've realized that the WebGL version was in a worst state than I remembered...
As a learning experience I've tried to correct some of the aberrations that were present in my version (your remarks and your website were extremely useful, thank you again!). I've committed these changes, but I must admit that I have almost no experience with Javascript so some more general JS anti-patterns might remain in my code.
I have also removed the fixed resolution and the failed/unneeded attempt at handling HiDPI screens (in the C++ version I am using a fixed vertical rendering resolution), and now rely on CSS only.
Concerning VBO and extensions, my initial goal was to write a basic WebGL 1 version without any extensions as a kind of lowest common denominator. Maybe a WebGL 2 version with extensions would be different enough to live in its own webgl2
directory?
from herebedragons.
WebGL2 should probably be in another folder if you want to do that and you won't need extensions for vertex array objects. You can also do uniform buffer objects in WebGL2 but they are a little funky because there is no glMapBuffer
in WebGL2.
My point with vertex array objects for WebGL1 is they're available on 99% of machines so for all intents and purposes they aren't are really an extension if that makes any sense. I'm only pointing that out if you wanted to try to keep the code similar since the C++ is using VAOs. Of course you can also leave it as is.
Thanks for the cool example. It's great to see so many versions.
from herebedragons.
Related Issues (13)
- Cycles spelled as Cyles in README HOT 1
- Dragons in Python HOT 2
- Cocos2d-x version? HOT 1
- Scene does not include Utah Teapot HOT 2
- Metal won't work with Xcode 9 HOT 4
- PS2 Optimisations HOT 8
- Typo in readme HOT 1
- An error caused by IsLoggedIn HOT 1
- Add DirectX Toolkit version HOT 2
- Glide API test HOT 3
- Godot Engine Version HOT 3
- Info: the PS2 demo runs on real hardware HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from herebedragons.