Re: Text in a 3D Scene
From: Michel Walsh (vanderghast_at_VirusAreFunnierThanSpam)
Date: 05/03/04
- Previous message: Victor: "Set Filter Property"
- In reply to: Guru: "Text in a 3D Scene"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 3 May 2004 08:58:07 -0400
Hi,
For axis? I would try a texture (with the letter, x, y, and z). Note
that the problem I foresee is that it seems you want to follow the
orientation, but not the "scale". I mean, if you are far from the triangle
with the "text" on it, the triangle, and the text on it, can become too
small, or out of the visible frame (cases of zoomings, or observer walking
too close to origin) while you probably want a "x", "y" and "z" always of
the same letter sizes, and always in the visible frame, but following the
real axes, with a very slanted x, as a possible example. That seems to
involve some interesting mechanics, but I have never really think about that
particular case, even if I see it as really interesting... :-) Sure, if
a simple texture does the trick.. that was simple.
Vanderghast, Access MVP
"Guru" <a@b.c> wrote in message
news:FkCkc.11865$KS1.308945@nasal.pacific.net.au...
> Hi all,
>
> I have what I'm sure must be a simple problem. How the hell do I position
> text onto a 3D scene accurately.
>
> I'm using VB6 and DirectX 8 and have built a 3D graphing tool with which I
> now need to add some scale text along the axis. I don't need any fancy
> fonts for the text - the windows system font would be fine.
>
> At present I'm trying to use the drawtext method but:
>
> a) the positioning is not relative to the current camera, world etc
angles.
> i.e. when the world is positioned to another angle, the text doesn't move
as
> well. I need the text to be 'part of the scene' and move with the scene.
>
> b) the text has no concept of depth. I need depth as the text will need
to
> 'disappear' when behind other objects.
>
> If anyone can point me towards a simple method or tutorial to solve this
> problems it would be much appreciated.
>
> Thanxs
> Guru
>
>
- Previous message: Victor: "Set Filter Property"
- In reply to: Guru: "Text in a 3D Scene"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|