BBC BASIC for Windows
Programming >> Graphics and Games >> B3D files
http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1457489909

B3D files
Post by michael on Mar 9th, 2016, 01:18am

I noticed that the source files with BBC basic has B3D files.. Is there a OBJ converter so I can stay with Hexagon 3D or have you been using another way to make them?
Re: B3D files
Post by sveinioslo on Mar 9th, 2016, 1:38pm

Quote:
or have you been using another way to make them?

There is an example on how they are made, in the manual under Library Routines/Direct3D graphics/FN_f4.

Code:
F% = OPENOUT"TRIANGLE.B3D"
PROC4(3):REM 3 vertices
PROC4(&100042):REM vertex size &10 and format &42
PROC4(FN_f4(-1.0)):PROC4(FN_f4(-1.0)):PROC4(FN_f4(1.0)):PROC4(&FF0000FF)
PROC4(FN_f4(1.0)):PROC4(FN_f4(-1.0)):PROC4(FN_f4(1.0)):PROC4(&FF00FF00)
PROC4(FN_f4(0.0)):PROC4(FN_f4(1.0)):PROC4(FN_f4(0.0)):PROC4(&FFFF0000)
CLOSE #F%
DEF PROC4(A%):BPUT#F%,A%:BPUT#F%,A%>>8:BPUT#F%,A%>>16:BPUT#F%,A%>>24:ENDPROC
 


Svein