ARnft-threejs icon indicating copy to clipboard operation
ARnft-threejs copied to clipboard

addImage - multiple images and different configs doesn't appear to work

Open larrykeeler12 opened this issue 2 years ago • 2 comments

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);



larrykeeler12 avatar Jan 16 '23 22:01 larrykeeler12

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 avatar Jan 17 '23 18:01 kalwalt

@kalwalt Thank you, I will put something better together to show the example.

larrykeeler12 avatar Jan 19 '23 01:01 larrykeeler12