Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Misc Newsgroups > Avalon

RB

Vista - Text on 3D object

 
 
12-04-2006   #1
SteveR


 
 

Text on 3D object

How can I add text to a 3D object? I've tried using VisualBrush etc but can't
seem to make it work (it doesn't display anything). My 3D object is defined
using MeshGeometry3D and then a DiffuseMaterial.
--
Steve

My System SpecsSystem Spec
12-04-2006   #2
SteveR


 
 

RE: Text on 3D object

Fixed it! My texture co-ordinates were all wrong. Yo uhave to apply them as
if they were screen co-ordinates i.e. top left corner of the visual brush is
0,0 and bottom right corner is 1,1
--
Steve


"SteveR" wrote:

> How can I add text to a 3D object? I've tried using VisualBrush etc but can't
> seem to make it work (it doesn't display anything). My 3D object is defined
> using MeshGeometry3D and then a DiffuseMaterial.
> --
> Steve

My System SpecsSystem Spec
01-19-2007   #3
Jordan Parker [MSFT]


 
 

Re: Text on 3D object

You can also do it using a DrawingBrush. DB is a little better performance
wise than VB but they are the slowest brushes.

Live text on 3D can be really slow depending on how much your scene is
changing. If you're never going to change the text, you can use brush
caching
(http://msdn2.microsoft.com/en-us/lib...chinghint.aspx)
or better yet you can render the text to an image with RenderTargetBitmap.

Jordan

"SteveR" <SteveR@discussions.microsoft.com> wrote in message
news:5EAB209A-EA3A-46AA-9897-3268BA9C85F9@microsoft.com...
> Fixed it! My texture co-ordinates were all wrong. Yo uhave to apply them
> as
> if they were screen co-ordinates i.e. top left corner of the visual brush
> is
> 0,0 and bottom right corner is 1,1
> --
> Steve
>
>
> "SteveR" wrote:
>
>> How can I add text to a 3D object? I've tried using VisualBrush etc but
>> can't
>> seem to make it work (it doesn't display anything). My 3D object is
>> defined
>> using MeshGeometry3D and then a DiffuseMaterial.
>> --
>> Steve


My System SpecsSystem Spec
01-22-2007   #4
Florian Kruesch


 
 

Re: Text on 3D object

Jordan, the site you mentioned says:

"It does not make as much sense when a TileBrush with static content is
used in a non-static way—for example, when a static DrawingBrush or
VisualBrush is mapped to the surface of a rotating 3D object."

so, CachingHint does help? Text can get really slow when mapped onto 3d.

Florian
My System SpecsSystem Spec
01-30-2007   #5
Jordan Parker [MSFT]


 
 

Re: Text on 3D object

CachingHint does help. This whole paragraph is really confusing with double
negatives. I believe "it" here refers to the default behavior, i.e. not
cached.

If you have a static VisualBrush or DrawingBrush on 3D, caching it is good.
The only time it would be updated is if the size of the mesh changed in such
a way that you passed one of the size thresholds that you can set.

Jordan

"Florian Kruesch" <nospam@kruesch.de> wrote in message
news:OMPbw1iPHHA.4376@TK2MSFTNGP02.phx.gbl...
> Jordan, the site you mentioned says:
>
> "It does not make as much sense when a TileBrush with static content is
> used in a non-static way—for example, when a static DrawingBrush or
> VisualBrush is mapped to the surface of a rotating 3D object."
>
> so, CachingHint does help? Text can get really slow when mapped onto 3d.
>
> Florian


My System SpecsSystem Spec
 

RB


Thread Tools


Similar Threads for: Text on 3D object
Thread Forum
Binding TextBox.Text to property in nested (multi levels) object withbindingsource, Error if grandchild object is NULL .NET General
Inherit from usercontrol - Object not set to instance of an object .NET General
Emailing an object as text PowerShell
datalist -- Object reference not set to an instance of an object. .NET General
Adding canonical aliases for Compare-Object, Measure-Object, New-Object PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd