i'm having a problem to replicate an example inside vue js.(https://threejs.org/examples/#webgl_postprocessing)
when adding DotScreenShader or RGBShiftShader, uniforms is null.
https://codesandbox.io/s/infallible-mcnulty-5rk7j?file=/src/App.vue:220-248
What am I doing wrong?
I try import libraries from npm (three-full, three-effectcomposer, importing like this https://threejs.org/docs/#manual/en/introduction/How-to-use-post-processing), but nothing is working.
Solved.
Found several issues, but in this example it's quite clear.
https://codesandbox.io/s/infallible-mcnulty-5rk7j?file=/src/App.vue
Related
I am on vite / vue 3 typescript and tried to import SVG via three.js but following error pops up as soon as I import the SVGLoader
http://localhost:3000/node_modules/.vite/deps/three_examples_jsm_loaders_SVGLoader.js?v=96b3206a net::ERR_ABORTED 504 (Gateway Timeout)
import { SVGLoader } from "three/examples/jsm/loaders/SVGLoader";
Any idea whats causing the gateaway error?
It seems like a Vite bug with module(package) import, according to this github discusstion; and I know for sure because I've come across similar kind of problem when using any kind of unpolished module packages in Vite.
Fortunately, SVGLoader itself is not dependent to any other packages except three.js, so I advise you to copy the SVGLoader code and make it as your own .ts file to include in your project.
I'm trying to set up debugbar as shown here:
https://github.com/barryvdh/laravel-debugbar
in my Controller, i use
Debugbar::info($object);
if i try to import i get the response, "class not found" i also use
cache:clear
and
cache:config
but the result remains the same.
Any idea what i'm missing.
also dd($request) in the same controller does nothing a all.
If you stumple aboute this question, or a similar i use now:
https://laravel.com/docs/8.x/telescope#introduction
3 Commands C$P
then dump($request)
See whats going on at: http://127.0.0.1:8000/telescope/dumps
Finally sth. which hopefully works.
I am using Intervention/Image to generate some images with Laravel. Something like this:
$img->text('test', 300, 30, function ($font) {
$font->file(public_path('assets/fonts/montserrat.ttf'));
$font->size(30);
$font->color('#000');
$font->align('center');
$font->valign('top');
$font->angle(0);
});
It worked till now...on the production server everything is alright but in my local server I get "imagettfbbox(): Problem doing text layout" everytime I am generating the image. I can't seem to find any answer to this problem.
I tried matching the PHP version with the one from my server (7.2), I previously had 7.4 on local but that doesnt seem to change anything :(
Would very much appreciate if someone could help me with this!
For anyone having this problem, I did something wrong, it seems like if the text value is null the image library does not know how to handle it, I had some cases in which the text was null and this caused the error.
Can someone help real quick. I'm trying to test something with Vue instance in console, but in console when I write $vm0 or $vm0.$children
Uncaught ReferenceError: $vm0 is not definedat :1:1
This only works if you have vue dev tools installed. Make sure you select the component first. It should look something like this:
Then you can inspect it in the console tab of chrome dev tools.
The question was initially asked for Vue2 I suppose, where you could use
$vm0.$route.query
to get access to various objects on the $vm0 Vue instance, here: router queries.
In Vue3, that one has changed in favor of
$vm0.proxy.$route.query
I have an angular2 application where i wish to use rickshaw.
This requires the following:
d3, nvd3 and ng2-nvd3.
I have these in my lib folder:
And my systemjs.config.js map looks as follows:
However, when run this i get an error:
telling me it has not been implemented.
Can someone please tell me what i´m missing?
Thanks in advance.
adding
lib/ng2-nvd3/node_modules/d3/d3.js
lib/nvd3/build/nv.d3.js
to the index.html solved my problem.
I´m however not sure this is the right way to do this.