![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
| | #2 (permalink) |
| 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 Specs![]() |
| | #3 (permalink) |
| 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 Specs![]() |
| | #4 (permalink) |
| 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 Specs![]() |
| | #5 (permalink) |
| 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 Specs![]() |
| | #6 (permalink) |
| 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 Specs![]() |
| | #7 (permalink) |
| 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 Specs![]() |
| | #8 (permalink) |
| 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 Specs![]() |
![]() |
| 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 |