jPCT-AE - a 3d engine for Android > Support

Annotate 3d model in Android

(1/2) > >>

dhananjay:
Hi
We would like to display and annotate a user given 3d model file in Android based mobile device. Can you please help us with it. We have found some resources online that are able to display a 3d model, but annotating is not supported in them.

EgonOlsen:
I'm not sure what you mean by 'annotating' in this context?

dhananjay:
We are able to render a 3d model (from STL, OBJ or DAE file) in an Android app using this engine ( https://github.com/andresoviedo/android-3D-model-viewer/ ). Now we need help to show a text at the particular X, Y, Z position on it.

EgonOlsen:
Well, this is a jPCT related forum, your solution doesn't use it. However, the basic idea is to take point in 3D space on which you want to "attach" the annotation to, project that into 2D screen space and then somehow blit the annotation as text on that position. Either that way, or you could "attach" another object at that point in 3D, make it inherit the actual object's transformations but render it as a bill boarded quad with the annotation's text rendered onto it. That has two drawbacks: It's much more complicated and it scales with the object which might render the text unreadable. Anyway, I've no idea on how to implement any of this in the context of your current solution.

dhananjay:
Is doing this with JPCT easier?

Navigation

[0] Message Index

[#] Next page

Go to full version