Login
Back to forumSee the full topicGo to last reply

Posted By

George
on 2019-05-12
13:17:07
 Re: Maximum Dimension of arrays in Basic

The promised Basic-Code from my little experiment:


3dcube.bas

Rotation along the 3 axis with Y,X,C (forward) and B,N,M (backwards).
Shift up,right,left,down with W,A,S,D
Display current values of the variables (angles...) with I

Copy and paste the code in your favourite emulator and turn maximum speed on for playing around, because the code is not optimised for speed yet.

If there is any interest, i can give you a little tool for converting *.obj files into BASIC code for displaying other 3D objects.

Edit 12.5.2019: Next milestone "Space Shuttle": To get more vertices into memory i read the object datas now from sequential files.




My next question:
I write int the sequential fuile as number, but have to read as string. Couldnt get it running otherwise. I suppose the print# method convert always as string.
Is there a better method?

wirte
OPEN8,8,12,"vertex,SEQ,WRITE"
...
print#8,x:

read
OPEN 8,8,12,"vertex,SEQ,READ"
...
input#8,x$

I will try to hide the hidden faces next days...



Back to top


Copyright © Plus/4 World Team, 2001-2024