3-d graphics

Is there any better graphics library around for TrueBasic?

I need 3-d graphics and all I have is the old DOS 3-D Toolkit which can't plot spheres and won't plot text at angles.

Thanks,

Roger

Comments

3D graphics

Hi Roger,

I do a lot of 3D graphics but I had to develop my own techniques because there is nothing suitable in TB.

The trouble with representing 3D objects as a series of connected polygons is that in the case of the human body you need about 15000 nodes, quite apart from the extra data to render the surface. This all takes a lot of processing time and tends to make 3D animations with TB almost impossible, except for extremely simple objects.

In my case I let specialist applications like POSER create and render the 3D object, then I export the finished images to TB to display as an animated sequence. The results are super fast and spectacular.

What sort of application do you have in mind?

I do have a library module that manipulates BOX images, and your query about plotting text at angles tempts me to write an addition to this library that will allow the user to rotate any image (including text).

Regards
Big John

3D graphics

Hi Roger,

I have made an extra routine in the BOXSTRINGS library module that allows users to rotate images at any angle. If you want to rotate text then BOX KEEP the normal text, rotate it, then BOX SHOW the rotated text.

I also have another library module that prints text vertically.

Big John

3-d graphics

Hi Big John;

I'm plotting earthquakes in 3-D as spheres (i wish) of different size and color an d I'd like rotated text labels on the axes.

I'd appreciate a copy of your text rotation library although it does seem a cumbersome way of doing it. A better way would add a rotation angle to the PLOT TEXT command.

Roger

PLOT TEXT

Hi Roger,

I do have another library that does contain a PLOT TEXT ANGLE routine as well as PLOT VERTICAL TEXT. This was written about 8 years ago. It uses a bit map font rather than TrueType. The fonts available are Times Roman, Arial and Courier. The point sizes start at 10 and go up to 18 point (there is a small separate file for each font and each size - about 4Kbytes each).

Would this be any good?

I also have a program that displays colored spheres in 3D representing centers of pain in the human body. I create a photographic jpg picture of a 3D sphere (a circle with the illumination coming from one side). I save this as a BOX image, then I use the BOXSTRING library to change the diameter of the sphere to suit the application. Useful?

Regards

Big John

3d

Big John;

Useful indeed!

Can I? Please? Pretty please?

Roger

3D Spheres

Hi Roger,

The only jpg images I can find at present are 30 pixels in diameter, but I am sure the originals were larger. Reducing a large size produces better results than magnifying small images. The spheres are illuminated from the left so the right side is in partial shade. A spotlight (upper left) provides each sphere with a highlight. It is the combination of shade and highlight that produces the 3D effect.

I will zip these 10 images (all different colors) and e-mail them to you. Do I have your e-mail address?

The background to these spheres is black. This means you can BOX SHOW the sphere AT left,bottom USING 7. For perfect results you really need to BOX SHOW a black and white mask first and then BOX SHOW the sphere. As an alternative you can BOX DISK a white dot 30 pixels diameter and then BOX show the sphere on top. These obscure requirements are because TB doesn't have a transparent color so you have to use black, and then over print with "USING 7".

I have just located the library called TBfonts. It certainly does print horizontally and vertically, but not at an angle. I do recall writing an angle routine so there may be another copy lurking around on my hard drive. I have also located all the font files - some are splendidly quaint - ancient Celtic scripts from the Book of Kells (11th Century I believe).

Big John

3d

Big John;

I did something like that to display quakes as imploding white filled circles. I used BOX KEEP to save a series of circles in decreasing sizes. Then when I wanted to plot a new quake I used BOX SAVE at the quake location followed by a series of BOX SHOW plots of decreasing size followed by a BOX SHOW of the original background and a PLOT CIRCLE of the final size and color.

The effect was of a bright white reverse explosion, a real attention-getter for a time series display.

I downloaded Blender to do the 3D plots but it's too complicated. It should be possible to do a 2d circle with a series of differently shaded segments that would look 3d when reduced.

My address is rogerh@lpbroadband.net

Roger

My