ARnft-threejs
ARnft-threejs copied to clipboard
addImage - multiple images and different configs doesn't appear to work
I have two markers, each with their own image, with different configuration ...
It doesn't appear that the config/scale/etc is respected for each addImage -am I doing something wrong?
let nftAddTJS = new ARnftThreejs.NFTaddTJS(nft.uuid);
nftAddTJS.oef = true;
// Set width, height and width and height number of segments of the PlaneGeometry.
let imgConfig = {
w: 1,
h: 0.3,
ws: 1,
hs: 1
};
nftAddTJS.addImage('Data/newspaper2_clean_hidden_small.png', 'newspaper2_clean', 0xdddddd, 660, imgConfig, false);
// Set width, height and width and height number of segments of the PlaneGeometry.
let imgConfig2 = {
w: 1,
h: 1,
ws: 1,
hs: 1
};
nftAddTJS.addImage('Data/puzzle.png', 'puzzle_bkgrnd', 0xbbbbff, 500, imgConfig2, false);
Hi @larrykeeler12, I didn't see anything wrong in your code, can you post a link to a repository so it will be easier to understand what is going on? thank you
@kalwalt Thank you, I will put something better together to show the example.