Welcome Guest. Please Login or Register. Mar 31st, 2018, 11:13pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
Re: 3D EDITOR (merged into 1 screen)
« Reply #2 on: Sep 25th, 2017, 11:43pm »
Quote:
it isn't desirable to attempt to merge the '3D editor' and the 'renderer' in a single .BBC program.
I agree. The merged version is only temporary and I am using it to work out controlling all the triangles.
Right now they are individually controlled. I want to be able to link them at a moments notice..(move multiple objects together.
So my next approach is to create radio buttons to activate and deactivate triangles.
When that is worked out I will port the components back.
The current obstacle I have with the two programs is syncing the file access. Although I have the idea of how to fix it, I need to get the editor toys ironed out.
Also I encountered another obstacle. I will provide a link once I prepare it.
Logged
I like reinventing the wheel, but for now I will work on tools for D3D
The current obstacle I have with the two programs is syncing the file access.
It can be tricky, and even more so because the file sharing behaviour is different between Windows and Linux. Only today I discovered a minor problem with the BBCSDL 'List Variables' debugging feature when running in Linux, for this very reason.
To expand on a previous reply, here are some things you can do to mitigate any problems: Whenever you try to open a file, be prepared for it to fail (a returned channel number of zero). In that case wait a little while - waiting for a 'random' time will help avoid a deadlock - and attempt the open again.
Use OPENOUT only once, to initially create the file. Thereafter, whenever you want to modify the file, use OPENUP rather than OPENOUT. This will ensure that the file's contents don't momentarily 'disappear' each time you update it.
When modifying an FVF file, update the header 'intelligently'. If you are lengthening the file update the header after you have added the extra records; if you are shortening the file update the header before you delete the unwanted records. This will help ensure that at all times the contents of the file are valid. Richard.