Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Text on 3D object

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 12-04-2006   #1 (permalink)
SteveR
Guest


 

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
Old 12-04-2006   #2 (permalink)
SteveR
Guest


 

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
Old 12-04-2006   #3 (permalink)
SteveR
Guest


 

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
Old 01-19-2007   #4 (permalink)
Jordan Parker [MSFT]
Guest


 

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
Old 01-19-2007   #5 (permalink)
Jordan Parker [MSFT]
Guest


 

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
Old 01-22-2007   #6 (permalink)
Florian Kruesch
Guest


 

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
Old 01-22-2007   #7 (permalink)
Florian Kruesch
Guest


 

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
Old 01-30-2007   #8 (permalink)
Jordan Parker [MSFT]
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
datalist -- Object reference not set to an instance of an object. Deere .NET General 0 08-31-2008 09:09 AM
Compare-Object and Get the name of object/File? akcorr PowerShell 5 06-19-2008 05:15 AM
Testing object arrays using Compare-Object and -contains Alex K. Angelopoulos [MVP] PowerShell 2 08-31-2006 05:57 PM
Adding canonical aliases for Compare-Object, Measure-Object, New-Object Alex K. Angelopoulos [MVP] PowerShell 2 05-26-2006 07:58 AM


Vistax64.com 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 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51