Three.js:Help for generating a FlowMap - three.js

I’m trying to generate a flowmap with Three.js: https://threejs.org/examples/#webgl_water_flowmap
I’ve used parts of the code source indicated here: https://github.com/mrdoob/three.js/blob/master/examples/webgl_water_flowmap.html but nothing appears on my page: https://flowmaptest-site.superhi.com/
I would be super grateful if someone could help me :slight_smile:

The browser console reveals some error messages:
THREE.Water: Required component THREE.Reflector not found.
THREE.Reflector is a dependency of THREE.Water. Without including it, the component won't work.
Besides, it seems certain textures can not be loaded from your host.
GET https://flowmaptest-site.superhi.com/textures/water/Water_1_M_Normal.jpg 404 (Not Found)
GET https://flowmaptest-site.superhi.com/textures/water/Water_2_M_Normal.jpg 404 (Not Found)

Related

The stylesheet x was not loaded because its MIME type, “text/html”, is not “text/css”

I developed a MERN application where everything runs perfectly normal on localhost. Now I put my application live, Heroku for the backend and Netlify for the frontend, and when visting my home url (https://bap-nmd-2020-2021.netlify.app/) the page just stucks. Nothing is loaded and the code stops executing.
I used chrome and firefox dev edition to see what could be wrong. What I found where the following errors
In chrome dev tools:
Uncaught SyntaxError: Unexpected token '<'
In Firefox dev edition:
The stylesheet https://bap-nmd-2020-2021.netlify.app/static/css/main.ab94b624.chunk.css was not loaded because its MIME type, “text/html”, is not “text/css”.
Uncaught SyntaxError: expected expression, got '<'2.c23262ff.chunk.js:1
Uncaught SyntaxError: expected expression, got '<'main.361ee52b.chunk.js:1
As I said, everything runs smooth on localhost without any problems so my paths to imported files should be ok. So I am totally clueless about what could be the issue here.
I've already read through some threads here concerning this issue but I could not found the same exact problem. Most of the people have wrong paths included in there hrefs, which is not the the case here I think.
Somebody has any idea please?
Thanks in advance!

How do we understand if there is a image not found error?

I have a job to check some 300 urls if they are loaded correctly. They are the production urls of a company. One of the checks that we have to do is to understand if any of the image or the text not loaded properly.
For the images not loaded usually we get a cross mark.. But since we want to automate this task, what is the piece of code or the debugging tool which can tell us that there is 'image not found' error in a particular url?
We are also checking for error like '404' and '5xx' HTTP errors. But hoping to get the error if we check the debugging window.
Let me know in case more information is required.
Thanks
Dhanya

in kendoui.web.2013.2.716 requiring kendo.culture.xx-XX.min.js produces an invalid request for kendo.core.min.js

I have just upgraded from kendoui.web.2013.1.514 to kendoui.web.2013.2.716 and have noticed that in the parts of the code where I require (through require.js) a certain kendo.culture.xx-XX.min.js file that also an unsuccessful request for kendo.core.min.js happens and I get an error in the console.
This did not happen with kendoui.web.2013.1.514 and I think this part inside the kendo.culture.xx-XX.min.js files might be to blame:
("function"==typeof define&&define.amd?define:function(e,n){return n()})(["../kendo.core.min"]
Also this reference to kendo.core appears to only be present in the minified versions. Note that I already have kendo.web.min.js fully loaded and the app works fine even with the invalid request so is this a bug?
If you are using the bundles (i.e. kendo.web.min.js) then you shouldn't use RequireJS to load them or any culture files.
I'm sorry that the documentation didn't mention it, I just added a section to explain this.

ABCPdf - Unable to render HTML. Unable to load page

I'm using ABCPdf to convert HTML to a PDF. I'm using the method:
AddImageUrl()
This works fine in Dev and UAT, but on Production I continuously get the message:
Unable to render HTML. Unable to load
page
Anyone see this before? Need more info?
-Ev
I guess you are tying to do URL->pdf generation. It is difficult to directly to do URL->pdf conversion. We ended up URL-Save HTML in local folder ->read HTML and convert to PDF-> delete HTML file from folder - tricky approach but it works. The only flaw is that you need to give read/write permission on a folder on server. Its still better than decreasing security settings.
have you take a look at this http://www.itjungles.com/dotnet/abc2pdf-unable-to-render-html
The default timeout for abcpdf is 15 seconds. If the page is taking longer than 15 seconds, you will get this exception.
Add the line below just after object creation of the document to resolve the issue.
theDoc.XHtmlOptions.Timeout = 10000000;
I found by working backwards (removing elements) from a target html page that omitting the tag (of all things) created this error. also, calling localhost in the target url generated this error.
I have no idea what caused this error, but I stopped the scheduled task that was running, then restarted it and it's worked fnie ever since.

Facebook Application - Url-rewriting with fbml?

I have an app that I'm creating with CakePHP, which rewrites the url from something illegible to most users to something a little easier to comprehend. I'm having a problem when I use the FBML canvas.
When I try to access, say, http://apps.facebook.com/myapp/articles, I get the following error:
Received HTTP error code 404 while
loading
http://www.myapp.com/myapparticles/
I did notice that when I try to access http://apps.facebook.com/myapp/articles/posts, it changes the error to show the following url, which is slightly different: http://www.myapp.com/myapparticles/posts
Which lead me to try accessing it with this: http://apps.facebook.com/myapp//articles, which does work most of the time, though for some reason sometimes it will give the previous error. (And it also seems like a hack-y way of getting it to work).
I'm at a loss for how to fix this.
Turns out I was missing the trailing slash (http://www.myapp.com/myapp/) on the url that I specified as my canvas callback, which is in the app settings. Putting it there fixes the problem.
This happens when you are not using semantic markup or you have an error or some code not supported by fb. Also that famous error is generated by fb when it is down or slow too.
I would suggest you checking your code thoroughly and going through fb documentation. That should help you the most. thanks

Resources