zirman / arcore-filament-example-app

ARCore Filament Example App
MIT License
97 stars 15 forks source link

Show a Rectangle with Camera #8

Closed bitamirshafiee closed 3 years ago

bitamirshafiee commented 3 years ago

Hello it's me again, sorry keep bothering you, actually I am using your repo to help me create an app to put objects on the floor, and now what I am working on is putting tags on objects giving informations about them. I started with this example: https://github.com/google/filament/tree/main/android/samples/sample-page-curl to create a rectangle and upload the image(PNG, JPEG) of information to it. I saw in the example that the page is shown in the SkyBox. like most of filament examples, and here I want to show it with the camera. so my challenge is that I have added a page(like the example I sent you from the filament repo) to your project which I have cloned but can't see it with the camera opened. So I reached out to you to ask you help on how to add a page which is like a rectangle on the camera(is it possible?) or if you think this is not a perfect way for doing this(since I think the page is in 2D not 3D and if I should convert the image to some formats which could be shown on the object as the information) I will really appreciate it if you could give me some hints for adding tags on the object(like sticking a paper on the object that we have put on the plane) which is now located on the plane for the user.

inveders commented 3 years ago

Hi, I have made something similar here https://github.com/google/filament/discussions/3947 It's the code for drawing a rectangle with filament.