PDA

View Full Version : Callouts/textbox


Jonnyp100
07-22-2015, 05:44 AM
Hi,

I've got a csv file with some data including x and y values. I'm using the x and y values to place spheres within the VR. I am now trying to add a callout or textbox above each sphere that holds the data allocated to that specific sphere from the CSV.

I can't seem to find the functionality to add a textbox. I have found <viz>.addTextbox but that seems to be for the user to input text. I can add the text without a container but then it looks a mess. I also encountered a problem in that I couldn't change the text to the size I wanted. Is size 1 the smallest possible?

Any help would be greatly appreciated.

Jonnyp100

Jeff
07-22-2015, 01:21 PM
You could add text in the world above the objects. Take a look at the 2d and 3D text (http://docs.worldviz.com/vizard/#Tutorial__2D_&_3D_text.htm) tutorial. Does that work for you?

Jonnyp100
07-23-2015, 07:20 AM
You could add text in the world above the objects. Take a look at the 2d and 3D text (http://docs.worldviz.com/vizard/#Tutorial__2D_&_3D_text.htm) tutorial. Does that work for you?

Hi Jeff,

Unfortunately that doesn't really suit my needs. Some of the spheres are very close to each other. Without a box or similar it is impossible to tell which text is assigned to which sphere.

Goof
07-23-2015, 03:22 PM
Why not write 3D text, and put a white texture quad behind it? Texure quads (http://docs.worldviz.com/vizard/Tutorial__Basic_texturing.htm)

If you make the texture quads have 0 depth, it would be like having a paper thin sheet with writing on it above each sphere.