Omikron Basic 5 blit memory to memory and memory blocks

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

Hi there,

I am currently working on an Atari Falcon Game in Omikron Basic 5.

As I have No Manual or book i need some hints to polish the Game...

I want to precalculate Screen before blitting it.

Afaik Omikron Basic >3 has no Screen command

If then how can I blit a Sprite to a copy of my Screen (what was made with bitblt itself)?

How can I Safe Sprites to memory blocks in 5 (at the moment I use Omikron 3.6 for that task).

Would be great if anyone could Help me out!

Best regards,

Chris
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

I still do not understand your problem. Bitblt without the "screen" function ??

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

I found out how to save the memory blocks :)
bsave "name.dat",memory,5000

But what I want is to bitblt my sprites to a nonvisible screen and after all is set and done I want to blit the invisble screen visible.

Is this possible? And if yes, how?
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

MacFalcon wrote:I found out how to save the memory blocks :)
bsave "name.dat",memory,5000

But what I want is to bitblt my sprites to a nonvisible screen and after all is set and done I want to blit the invisble screen visible.

Is this possible? And if yes, how?
In Omikron Basic, Bitblt can not work from one buffer to another.
Unless this function is implemented in version 5 !?

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

If this can help you on Bitblt structure in Omikron
BITBLIT.zip
Warning :
Biblt always starts and ends with a word limit.
therefore, for a width of 17 pixels, you will have 8 words per line and 15 bits to hide by planes. - good luck - :angel:

I did not try, but I think Bitblit in Assembler can work from one buffer to another.
You do not have the required permissions to view the files attached to this post.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

MacFalcon wrote:...
I want to blit the invisble screen visible.
:?: :?: :?:

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

Thanks for the bas. Will look at it later.

It's hard to understand what I mean... I want to write (blit) anything to it's place on an invisible Screen (memory or whatever you want to name it) and when all is written to this "screen" make it visible all at one...

Is this possible?
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

Yes, but Omikron will be reduced to "memory_move (b), poke, wpoke and lpoke", you can not use BITBLLIT and SPRIT in this case in Omikron.
You must perform a process of copying your data, taking into account image plans and bit-level operations, if necessary.

Look anyway the file that I sent you, you will see the difficulties that await you to replace BITBLT in Omikron.- In this example, the transfer concerns only the words of which all the bits must be copied! -

Another solution, but it depends on what you do,
Copy everything on the screen with a black color palette ...

What kind of game do you do?

User avatar
lp
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2488
Joined: Wed Nov 12, 2003 11:09 pm
Location: GFA Headquarters
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by lp »

Sounds like he wants off screen bitmaps. Something like NVDI offers. If you don't want to use NVDI then you can use VDI function vro_cpyfm() or Line-A blit directly. You will need OS binding or asm perhaps. They have a lot of parameters.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

As I understand it, he saved a part of the image on the screen in a buffer with BITBLT and now wants to display it on a screen buffer not displayed.
and it's not possible in Omikron with Bitblt.

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

rockyone wrote:As I understand it, he saved a part of the image on the screen in a buffer with BITBLT and now wants to display it on a screen buffer not displayed.
and it's not possible in Omikron with Bitblt.
Yes, that´s exactly what I wanted.

The game is "breakoutlike", but with some differences. I will hopefully release it for x-mas this year. It´s called "Comnetball" and offers 5 levels "storymode" and an arcade mode.

Currently I finished v 0.99... I have a small teaser here of v 0.6x: https://photos.app.goo.gl/gjFNVQXQipcB19mn9

Best regards and thanks for your help!

Chris
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

Bravo! I can not wait to play
How did you solve your problems with Bitblt ?
When I can, I avoid the test IF..Then ... Best compilation under Omikron V3.03: Fernergy = max (100, Fenergy)

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

To be honest: I didn't really solve it. The way I tried was slow as hell (good for ct60 but too slow on 16 MHz). So I did some compromise. But I like it now.

What would you use instead of If... Then?
The line with fenergy limits IT to 100?

Best regards,

Chris
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

Yes Fenergy is limited 100
Personally instead of doing: IF Fenergy> 100 THEN Fenergy = 100:
I do: Fenergy = MAX (Fenergy, 100)
The odre in the parenthesis is not important.

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

Which compiler do you use ?

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

I use 5.17 Compiler. Latest one I think.
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

rockyone
Atari Super Hero
Atari Super Hero
Posts: 511
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by rockyone »

Omikron 5, I only have a limited version, and I can not find the 5.17 compiler.
Could you share his files on Atari-Forum

User avatar
MacFalcon
Captain Atari
Captain Atari
Posts: 329
Joined: Sat Oct 11, 2003 1:00 pm
Location: Muenchberg, Germany
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by MacFalcon »

Here: https://drive.google.com/folderview?id= ... zfTqnyahQl

You are welcome!

If anything is missing let me know!

Best regards,

Chris
Falcon060, 100/25 MHz, 256 MB SD-RAM, PhantomPBS, CTPCI with Radeon, USB and Network Card. atari rulez!

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2670
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by charles »

CHRIS IS THIS WHAT YOU ARE TRYING TO DO?

Code: Select all

 
  'sof
 '
 Logbase%L=0
 Physbase%L=0
 Null%L=0
 My_Scr%L=0
 S_Res%=0
 '
 XBIOS Logbase%L,3
 XBIOS Physbase%L,2
 XBIOS S_Res%,4

 My_Scr%L=( MEMORY(32256)+256) AND $FFFF00
 DIM Pts%(1,10)

 '*** MAIN ***

 CLS

 PRINT CHR$(27)+"f"

 TEXT HEIGHT =6
 TEXT 10,20,"Press SPC Bar to display hidden grafx"

 XBIOS Null%L,5,L My_Scr%L,L Physbase%L,S_Res%
 '
 GOSUB Drawing
 '
 WHILE RIGHT$( INKEY$ ,1)<>" ": WEND

 XBIOS Null%L,5,L Logbase%L,L My_Scr%L,S_Res%

 WHILE RIGHT$( INKEY$ ,1)<>" ": WEND

 XBIOS Null%,5,L Logbase%L,L Physbase%L,S_Res%

 EDIT

 '*** END MAIN ***

 {-Drawing
 TEXT HEIGHT =32
 TEXT 300,300,"Press SPC Bar to exit"

 PRINT @(12,12);"Invisable Drawing Routines Here"

 LINE WIDTH = 1
 BOX 120,110,100,100

 LINE WIDTH = 10
 CIRCLE 165,155,100

 Pts%(0,0)=50:Pts%(1,0)=75
 Pts%(0,1)=150:Pts%(1,1)=175
 Pts%(0,2)=200:Pts%(1,2)=100
 Pts%(0,3)=150:Pts%(1,3)=75
 Pts%(0,4)=50:Pts%(1,4)=175
 Pts%(0,5)=50:Pts%(1,5)=75

 LINE WIDTH = 3
 POLYGON Pts%(0,6)

 TEXT HEIGHT =8
 TEXT 13,45,"tex text texed"
 } RETURN
 '
 'eof

 
 
DOING WHAT OTHERS WONT
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2670
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by charles »

BTW DID YOUR OMIKRON V5 COME WITH ENGLISH VERSION TOO?
The radioactive half-life : )
Atari is a lifestyle,not a hobby.
HOLD ON ! ! ! Im printing unreadable characters ...!

funkheld
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Oct 09, 2015 9:25 pm

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by funkheld »

Hi good afternoon.
I have the omikronbasic 3.5
and hisoftbasic 2.1

which of the two is the better basic for the atarist, which can also be programmed into the system?

thank you.

czietz
Hardware Guru
Hardware Guru
Posts: 1170
Joined: Tue May 24, 2016 6:47 pm

Which language to use (was: Omikron Basic 5 blit memory to memory and memory blocks)

Post by czietz »

funkheld wrote:Hi good afternoon.
I have the omikronbasic 3.5
and hisoftbasic 2.1
which of the two is the better basic for the atarist, which can also be programmed into the system?
Without wanting to offend you: It seems that you are very new to programming, right? Imho, you shouldn't be wildly mixing programming languages then -- that will only be detrimental to the learning success. In the past few days I've seen questions regarding Pure C, Pure Pascal, and different implementations of BASIC.

Stick to one language, preferably a well-documented one, until you have a clear grasp of the fundamental concepts. Later-on you'll be able to apply things you learned to other languages; e.g., all procedural languages (BASIC, C, Pascal) have things in common.

For example, since I know you speak German: Over at the German forums (https://forum.atari-home.de/) someone has secured the rights to digitize a lot of GFA-BASIC-related books that would help you get started with GFA BASIC: http://ebook.pixas.de/

funkheld
Atari maniac
Atari maniac
Posts: 93
Joined: Fri Oct 09, 2015 9:25 pm

Re: Omikron Basic 5 blit memory to memory and memory blocks

Post by funkheld »

Hi, Thank You.

the gfa books are wonderful.

greeting

Post Reply

Return to “Other BASIC”