Re: text is not displayd

12 views
Skip to first unread message

Paul van Dinther

unread,
Apr 23, 2012, 7:15:45 AM4/23/12
to mydi...@googlegroups.com
The addTextBlock establishes where the text should be rendered and how. The id is currently not relevant. After that you need to call addLine('my text'); for each text line you want to render.

On Mon, Apr 23, 2012 at 23:10, 3D model s.r.o <jarosla...@gmail.com> wrote:
I want use "addTextBlock" in my diorama, but It dont display in my scene. Line consists several instruction PIA_Diorama.addTextBlock('test block', 0.55, 0.75, 0.076, PIA_DIA_arial_56, PIA_LEFTALIGN, 'ffeeeeee'); which are described in reference documentation. According description "test block" (should be "text block") is "ID of text area". Where can I obtain this ID ? Where can I write the text which I want to display in my scene?  
  



--
Regards

Paul van Dinther
Our Google Earth creations at www.planetinaction.com

3D model s.r.o

unread,
Apr 23, 2012, 7:22:37 AM4/23/12
to mydi...@googlegroups.com
thanks for answer, can you recomend me tutorial where I can study more about this problem? I want insert description of model or area into particular scene. Look at my diorama  http://docasnyvirtualtour.webnode.sk/hrady-a-zamky/    There are castles in Slovakia and I want to add a short description for each of each.

Paul van Dinther

unread,
Apr 23, 2012, 7:31:51 AM4/23/12
to mydi...@googlegroups.com
After each addScene you can call addTextBlock with several calls to
addLine for your text. So for each scene you can specify a unique
text. You can even have multiple text blocks per scene.
It looks like you are on the right track.

I need to create a bunch of code examples soon.

In your example with the external scenelinks you can choose to turn
off the default UI in which case the diorama relies on you providing
the UI on the page.
Pass in false when you create the diorama instance
PIA_Diorama.createInstance('mycontainer', false, loadscript);

jaroslav piroh

unread,
Apr 23, 2012, 8:48:52 AM4/23/12
to mydi...@googlegroups.com
Thanks for a help, I understood the philosopky of text manipulation,
everything is working properly.
jaroslav
Reply all
Reply to author
Forward
0 new messages