Skip to content
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

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

Open
larrykeeler12 opened this issue Jan 16, 2023 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@larrykeeler12
Copy link

larrykeeler12 commented Jan 16, 2023

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 larrykeeler12 changed the title AddImage addImage Jan 16, 2023
@larrykeeler12 larrykeeler12 changed the title addImage addImage - multiple images and different configs doesn't appear to work Jan 16, 2023
@kalwalt kalwalt self-assigned this Jan 17, 2023
@kalwalt kalwalt added the help wanted Extra attention is needed label Jan 17, 2023
@kalwalt kalwalt transferred this issue from webarkit/ARnft Jan 17, 2023
@kalwalt
Copy link
Member

kalwalt commented Jan 17, 2023

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

@larrykeeler12
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants