Re: text stuff again

New Message Reply Date view Thread view Subject view Author view

ceti (ceti++at++worldnet.net)
Tue, 01 Oct 1996 09:28:20 +0100


>...i'm wanting to use charstr() to place text next/near
>some 3D models being displayed in a perspective-type channel.
>what relationships can i make to translate the 3D coordinates
>of the models to screen coordinates suitable for GL calls?
>
>
Again !
It seems that further release should include this kind of function .

Any way, because it is GL call it is easy to pass through.
in the post draw callback process call cmov(your 3D coordinate)
and then use charstr or fmpstr(your string);
Don't forget to push and pop current GR state.

Take care, cmov has an undefined return if the object is out of the window.
( generally return the last define set of coordinates )

Unfortunatly, if you re running with OpenGL call, it is harder !!
see last month FAQ , Nicolas Gauvin mailed a good paper
(entry header : world coord -> screen coord )
 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
< _/_/ _/ _/_/_/ _/ _/ _/_/_/ _/_/_/ _/_/_/ >
< _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ >
< _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/ _/ >
< _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ >
< _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ >
< _/_/ _/_/_/ _/_/_/ _/ _/_/_/ _/_/_/ _/ _/ >
< >
< BILLARD Olivier - Ingeneer R&D ++at++ C&I Software >
< 1 avenue de la mer - 44380 PORNICHET - FRANCE >
< Tel: +33 40 11 68 72 Fax: +33 140 61 68 14 >
< Email: ceti++at++worldnet.net >
 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.