-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added FisheyeGl Module #61
Conversation
They're various lens characteristics - see https://jywarren.github.io/fisheyegl/example/ This is a good example of where we need to heavily use the options parameter, and the web UI will be a bit more complex. |
Ah but let's include this in via npm, and we may need to then publish fisheyegl on there. |
OK - published latest version to npmjs: https://www.npmjs.com/package/fisheyegl - |
Thanks! But, the file RequireThe original (function(exports){
if (typeof module === 'undefined')
exports = FisheyeGl;
else
module.exports = FisheyeGl;
})(typeof exports === 'undefined'? this['FisheyeGl']={}: exports); Browserify is not able to handle this. This is the Error thrown after browserifying and running:
I was using it like this: So I simply changed it to : module.exports = FisheyeGl because anyways we are going to browserify it, so the if-else clause of the original Shader FilesThe original I feel this would be an inconvenience to the user as we plan to export ImageSequencer as a single file If we stick to the original So what I did was, I used CommonJS Require to simply require in the Shader files instead of making an XHR Request. For example, I converted the vertex shader file module.exports = "\
Contents of\n\
The shader file.\n\
\n\
"; So now the shader files are just bundled in A small BugOriginal var selector = "#canvas" || options.selector; Shouldn't that be var selector = options.selector || "#canvas"; ? So I changed these things... Did I do the right thing? What do you think? What should be done? |
Also, the demo for FisheyeGl is now up at https://ccpandhare.github.io/image-sequencer/examples/fisheye |
Now |
Mergable? Great!!!
…On Jul 28, 2017 6:44 PM, "Chinmay Pandhare" ***@***.***> wrote:
Now fisheyegl is being required in from npm.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJzjetsGcPMS2_oP9DrNNU-7w8X_Jks5sSmRZgaJpZM4OZRvA>
.
|
Merging! |
I have added the FisheyeGl module and have added documentation for the same.
Can you help me out with the documentation?
I am not able to understand what
a
,b
,Fx
,Fy
,x
,y
mean.