POV-Ray : Newsgroups : povray.general : soft text Server Time
15 Nov 2024 11:15:57 EST (-0500)
  soft text (Message 1 to 10 of 19)  
Goto Latest 10 Messages Next 9 Messages >>>
From: Remco de Korte
Subject: soft text
Date: 2 Feb 1999 22:04:13
Message: <36B7BB37.E65E8ACE@xs4all.nl>
For those who are interested in using 3D-text:
I've made a simple, rude tool that creates soft text-objects. You type in some
text, press the button and out comes an include-file with the code. It takes a
while to parse, but perhaps you can use it as a starting-point.
It's Windows95/98 only, sorry for the other OSsies.
You can download it at http://www.xs4all.nl/~remcodek/zip/softtext.zip
If you have any comments please let me know. Perhaps I'll even change it around
a bit (initially I wrote the thing for my own use).

Regards,

Remco

(I'll post an example in the binaries-group)


Post a reply to this message

From: Remco de Korte
Subject: Re: soft text
Date: 3 Feb 1999 09:19:07
Message: <36B8557D.34AC8DC1@xs4all.nl>
Nieminen Mika wrote:
> 
> Remco de Korte <rem### [at] xs4allnl> wrote:
> : You type in some
> : text, press the button and out comes an include-file with the code.
> 
> : It's Windows95/98 only
> 
>   I don't want to be rude, but I just can't understand why.
>   Why is it so difficult to make the same thing with ANSI C or C++, compilable
> in any system? It just reads text and outputs text to a file. It needs
> no system dependant features. It's extremely simple to make this kind of
> program with ANSI C (I bet it's a lot simpler than making a windows program).
>   So why it has to be win95 only? Why it has to include system-dependant
> code which does nothing? Why?
>   Just wondering.
> 
Because I'm just a simple soul who never got round to leraning how to use C, no
matter what version.
Besides, when considering whether I should make a DOS-version I realized I'd
have to wade through a whole bunch of docs to find out how to use
TrueType-fonts.
It was just an afternoon-project which I needed for some simple thing and which
turned out to work better then I had hoped for. I thought perhaps someone else
could do something nice with it, so I put it online. Sorry I excluded the
non-Windows users or, for that matter, the people who don't have computer at
all.
But you're free to port it to whatever platform you like. You probably won't
even need my source-code because it's ridiculously simple. Be my guest.
Meanwhile, next time I'll take your remarks into consideration.

Regards,

Remco


Post a reply to this message

From: Spider
Subject: Re: soft text
Date: 3 Feb 1999 17:19:24
Message: <36B8CA45.410391C3@bahnhof.se>
Nieminen Mika wrote:
> 
> Remco de Korte <rem### [at] xs4allnl> wrote:
> : You type in some
> : text, press the button and out comes an include-file with the code.
> 
> : It's Windows95/98 only
> 
>   I don't want to be rude, but I just can't understand why.
>   Why is it so difficult to make the same thing with ANSI C or C++, compilable
> in any system? It just reads text and outputs text to a file. It needs
> no system dependant features. It's extremely simple to make this kind of
> program with ANSI C (I bet it's a lot simpler than making a windows program).
>   So why it has to be win95 only? Why it has to include system-dependant
> code which does nothing? Why?
>   Just wondering.

As for my point,(wintrees) I use a windows executeable since I find it
far easier to create a working GUI for my programs in delphi, the code
si DOS compatible, but it was hard to understand the program. I know,
java, fuck that(excuse my language) it doesn't work good enough for me.
it messes up too much, and even the examples have bugs in it preventing
me from using any GUI made in JAVA2 and run "as is".

Oh, as for C code, I don't have enough HDD for a c compiler. Good enough
reason? (I _do_ know ansi C, but since I don't use it for regular
development of programs, I don't have it on my HDD.) And I'd be back in
the same place as in DOS pascal, the gui prob. And , no, don't tell me
to "crap the gui" use a command line argument. I had it, and threw it
away, too many numbers ot remember without the virtual consoles of
linux. sowwy there.

You can get a pascal version of my prog. and then compile it yourself in
Linux, I think there is a pascal compiler that can take standard pascal.

Well, my arguments against using ansi C.
//Spider


Post a reply to this message

From: Jim Kress
Subject: Re: soft text
Date: 3 Feb 1999 17:30:10
Message: <36b8cdf2.0@news.povray.org>
Remco,

Thanks.  I like it just as it is ...

Jim


Post a reply to this message

From: Remco de Korte
Subject: Re: soft text
Date: 4 Feb 1999 07:59:17
Message: <36B99881.C90461F4@xs4all.nl>
Nieminen Mika wrote:
> 
> Spider <spi### [at] bahnhofse> wrote:
> :> Remco de Korte <rem### [at] xs4allnl> wrote:
> :> : You type in some
> :> : text, press the button and out comes an include-file with the code.
> 
> : As for my point,(wintrees) I use a windows executeable since I find it
> : far easier to create a working GUI for my programs
> 
>   Please read more carefully what I say.
>   I wasn't saying "make ALL programs in ANSI C, no matter if they need a
> GUI or not". No. What I said was "why THIS program in particular had to be
> done with non-portable code when it doesn't need any GUI?".
> 
>   But I received a very convincing answer: Reading true-type fonts is a lot
> easier. That's a good point.
> 
> --
> main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
> *_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/

Hey man, you made your point. I've taken the thing offline so everone who is
still interested can mail me and I'll explain the way it works so you can write
your own version on whatever platform you like.

Remco


Post a reply to this message

From: Remco de Korte
Subject: Re: soft text
Date: 4 Feb 1999 11:02:17
Message: <36B9C31B.465BF2F@xs4all.nl>
Nieminen Mika wrote:
> 
> Remco de Korte <rem### [at] xs4allnl> wrote:
> : Nieminen Mika wrote:
> :>   But I received a very convincing answer: Reading true-type fonts is a lot
> :> easier. That's a good point.
> 
> : Hey man, you made your point. I've taken the thing offline so everone who is
> : still interested can mail me and I'll explain the way it works so you can write
> : your own version on whatever platform you like.
> 
>   It seems to be a very common problem. I mean people not reading what one
> says.

It's hard to read what one says.
Besides the question was no problem, the way it was put was. Repeatingly asking
WHY seems like there's something very seriously going wrong, while I was just
trying to contribute. What you could have offered as a critique was that there
was a small bug in the program and that it could use some extra functionality.
So, you play with your thing and I'll play with mine and as far as I'm concerned
that's the end of it. I could do without your way of making remarks.

>   I repeat: Your answer was very convincing and now I know why is it so much
> easier to make it a win95 program.
>   I didn't think 

oh, well, never mind...

Remco


Post a reply to this message

From: Nieminen Mika
Subject: Re: soft text
Date: 4 Feb 1999 11:30:53
Message: <36b9cb3d.0@news.povray.org>
Remco de Korte <rem### [at] xs4allnl> wrote:
: Besides the question was no problem, the way it was put was. Repeatingly asking
: WHY seems like there's something very seriously going wrong, while I was just
: trying to contribute. What you could have offered as a critique was that there
: was a small bug in the program and that it could use some extra functionality.
: So, you play with your thing and I'll play with mine and as far as I'm concerned
: that's the end of it. I could do without your way of making remarks.

  I apologized. I'm sorry, seriously. Sometimes I'm very impulsive and don't
stop to think if this will offend someone. Of course I could have asked the
same question more politely. My intention was not to attack you personally.
I just wondered (in a very unpolite manner, I know) and I got a very good
answer.

  Please forgive my stupidity everyone reading this. I just wasted lots of
resources writing useless articles.

-- 
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/


Post a reply to this message

From: Marc Schimmler
Subject: Re: soft text
Date: 5 Feb 1999 03:57:01
Message: <36BAB25D.676AF250@ica.uni-stuttgart.de>
Despite the current misunderstandings and the hurt feelings I think I
have something that is maybe of interest!

Have a look at

http://www.freetype.org/freetype.htm

They have a library in ANSI C for True Type Fonts.



Marc
-- 
Marc Schimmler


Post a reply to this message

From: Rudy Velthuis
Subject: Re: soft text
Date: 5 Feb 1999 15:51:17
Message: <36bb59c5.0@news.povray.org>
Marc Schimmler schrieb in Nachricht
<36BAB25D.676AF250@ica.uni-stuttgart.de>...
>Despite the current misunderstandings and the hurt feelings I think I
>have something that is maybe of interest!
>
>Have a look at
>
>http://www.freetype.org/freetype.htm
>
>They have a library in ANSI C for True Type Fonts.


Thanks for the tip! I'll have a look at it. I could try to make an ANSI-C
command line utility for this, using the Freetype libs. I normally convert
from C to Object Pascal, but it would be an interesting project to try the
opposite. I know, they also have Pascal libs, but I'm afraid (Object) Pascal
is not as very wide spread as ANSI-C is <g>.

To Nieminen: the tool just plots the string you enter onto a bitmap, than
uses the pixels of this bitmap to produce a huge blob: a sphere for every
pixel, the size depending on the distance from the edges (I'm not telling
secrets here, anyone can guess this from looking into the test.inc file,
generated by Remco's program).

The idea is really brillant. BTW I'm amazed by the parsing speed. I had a
test.inc of more than 4000 spheres in 1 blob and it parsed in 4 seconds (on
my old P90 48MB).

Remco's program needs Windows to plot the given string onto the bitmap.
Perhaps the freetype lib could do the same.

Of course, I'll have to ask Remco if I can use his idea. Herewith I do this
now.

Remco. Please answer this.
--
Rudy Velthuis


Post a reply to this message

From: Ron Parker
Subject: Re: soft text
Date: 5 Feb 1999 16:19:40
Message: <36bb606c.0@news.povray.org>
>Remco's program needs Windows to plot the given string onto the bitmap.
>Perhaps the freetype lib could do the same.

Time to write a macro to do it with the superpatch and no external
code.  Parse time would probably suffer, though... :)


Post a reply to this message

Goto Latest 10 Messages Next 9 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.