BBC BASIC
« 3D EDITOR (merged into 1 screen) »

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)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: 3D EDITOR (merged into 1 screen)  (Read 298 times)
michael
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 157
xx 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.


User IP Logged

I like reinventing the wheel, but for now I will work on tools for D3D
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: 3D EDITOR (merged into 1 screen)
« Reply #3 on: Sep 26th, 2017, 01:11am »

on Sep 25th, 2017, 11:43pm, michael wrote:
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:
  1. 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.

  2. 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.

  3. 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.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls