Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SirCrow

Pages: [1] 2 3 ... 10
1
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: March 29, 2020, 04:03:02 pm »
I'm having trouble uploading my updated archive.

2
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: March 08, 2020, 10:51:05 pm »
Not okay.

If this is true, then I'll have to upload w/o the audio and let the user substitute whatever audio files he/she wants.
Bummer.  Can someone please confirm this for me?  I'd like a little more than Not okay, please understand, before I make the effort.  Thanks.

3
Programs / Re: Space Travel w/ Multi-Layered Stars + MUSIC
« on: March 08, 2020, 10:28:37 pm »
Here's my latest version. 

EDIT: I've added the ability to play audio accompaniment while flying thru space, but you may have to supply your own sound files.  And you'd have to change the program code to refer to your own files, unless the filenames are exactly the same.

I've attached a help file below.

===  IS IT OK to upload copyrighted material here?  If not, I'll have to remove the audio files and resend the archive.  ===

EDIT: I changed the code to check the Audio folder for available files, so that the user can place his/her own sound files there; then my IDE closed unexpectedly.  When I reopened it, no auto-saved file was offered, so now I have to redo all that.  In any case, one of the audio files I had included is CREATIVE COMMONS, so I'm leaving that one in, and I don't care what anyone says about that.  Ciao for now.  I'm gonna work on some SketchUp models for a while instead;  that's much easier when I can't concentrate, which is quite often.

4
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: February 16, 2020, 02:42:33 pm »
I Googled "What is a seamless pattern?"

Top result: A seamless pattern is an image that can be placed side-by-side with copies of itself without any visible seams or interruptions on the content, so you can repeat this image and create a pattern that can go on infinitely to create unique backgrounds, text effects or brand elements.

In other words, images that when tiled, will blend perfectly on all sides of the image.

The image I provided blends perfectly on all four sides of the image when tiled.

Well, if you see my version of the image exactly the way I do, then you're seeing it as I meant it to be, and I consider it seamless enough.  As long as you don't see a sudden jump or shift in the image, I don't see any problem.  Your version, when it's the same size as mine, has more frequent repetition than I prefer.  If my code were modified to work with larger BG images, then it might work nicely with the interlaced pattern you've created, if that's the word for it.
Anyway, these days, I can just barely concentrate on this programming thing, so I think I'll just leave it as is.

5
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: February 14, 2020, 01:45:24 am »
I don't know how it is with the more modern Windows, but in the old days of XP and lower it was quite easy to do a screensaver.  You would rename the .exe to .scr and place the file in your Windows directory and add it as your screensaver.  Not sure if that is still relevant, but there you go.  Warp speed ahead.  Live Long and Prosper.

Did I forget to mention that I'm using Linux/Ubuntu 18.04?  Pretty sure it's much more complicated than you described, darn it.  Full stop, I think.

6
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: February 14, 2020, 12:19:21 am »
Very nice parallax effect!

Maybe a seamless background is the only thing that could make the effect even better.

Here's your [dark_Tiled] made seamless...

I'll have to try it with your version of the image.  But what do you mean by seamless?  As far as I can see, my original has very faint seams that all but vanish with all the layers of stars, and other things, passing over them.  It looks plenty seamless to me.  Is there a flaw I've missed?

7
Programs / Re: Black Hole Happy Fun Time Game Play Thing
« on: January 29, 2020, 11:56:18 am »
Very nice, but it ate my dog.  Bring it back.

So that's where that dog came from!  He's mine now.  Thanks.

8
Programs / Black Hole Happy Fun Time Game Play Thing
« on: January 27, 2020, 12:58:58 am »
The title says it all.....probably, I think.  Too much, maybe?
Anyway, you can control the movements of the stars using keyboard or mouse...

'=====================  C O N T R O L S  ======================

' Keyboard Input:

'  C.............Center the Black Hole
'  Space......Center the Black Hole + stop all movement
'  Enter.. .....Stars are sucked in;  no other movement
'  R..............Reverse the rotation
'  T..............Toggle twisting/spiral motion
'  V..............Reverse stars going in/out (vacuum/vent)
'  H.............Toggle hole's halo/glow
'  +/-...........Increase/decrease size of hole

' Mouse Button - Outside of Hole:

'     Left button.......Increase anticlockwise rotation
'     Right button.....Increase clockwise rotation

' Mouse Button - Inside of Hole:

'     Button click + drag will move the Black Hole to any place
'     on screen, but moving mouse too fast will drop the hole.

' Mouse Wheel:

'  Forward..........Increase vacuum speed (or slow vent rate)
'  Reverse..........Decrease vacuum speed (or speed vent rate)
'  Click...............Stop all movement w/o centering

'==============================================================
As usual, my code is messy, but it seems to run all right.

9
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: January 27, 2020, 12:25:37 am »
Now arrived

Easily the best and most beautiful U.S.S. Enterprise ever designed, the NCC-1701-A.
Years ago, I built a digital model of her.  Came out great, but I made her bottom too big.
Now that I've found how to run SketchUp under Linux, I may have another go at her.

10
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: January 26, 2020, 11:55:51 pm »
This would be a REALLY COOL screensaver!

Oh, but one issue: Where is the Enterprise, or the Defiant?  Star Treking in space!

GREAT JOB!

Thank you.  If I could make a screensaver of it easily, I'd love to.

11
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: January 20, 2020, 12:25:23 am »
Very cool, it gives a nice 3D effect.

Thanks.  It's good when 2D can look 3D.

12
Programs / Re: Space Travel w/ Multi-Layered Stars
« on: January 20, 2020, 12:20:21 am »
That is really a cool effect, opens new horizons for me.
Thank you for sharing, @SirCrow !

Glad you liked it, thanks.

13
QB64 Discussion / Re: Auto-changing _ERRORLINE Line?
« on: November 26, 2019, 07:51:08 pm »
Hahaha!

 I like that, but perhaps writing code that can error in the first place is the "height of foolishness" an thus we are all fools!

But Luke is right, welcome to the realm of "Be A Responsible Programmer!" don't expect somebody(or something) else to do all the work for you.

At least I can say that by the time I consider a program finished (enough), it runs pretty well without even using a handler routine.
For a programmer as sloppy as myself, with very limited skill and poor concentration, this is very impressive indeed. ;-)

14
QB64 Discussion / Re: UBOUND Causes "out of range" Error???
« on: November 26, 2019, 07:40:48 pm »
So, if sometimes array exists and sometimes not, maybe try this method for array size test:

DIM c(5) AS LONG 'long = 4 bytes, records from 0 to 5 (6 records), so LEN = 24
PRINT LEN(c())

Or - if your code is used in SUB but array Seat is not SHARED, this can also do this error.

Edit:
If you use LEN on a field that does not exist, it will not return a value of 0, as you might expect, but a field value of 11 records. For example, if you write PRINT LEN (NotExists ()), you get a result of 44. The reason is that all variables in QB64 automatically get the assigned size of 10 (including 0)  therefore 11 records. Well, if the "NotExists" field does not exist, QB64 counts with the default SINGLE type, which is 4 bytes per record * 11 = 44.

So instead of a complicated field existence test, would always leave it defined, allow a record of 0, and insert a value of 1 if I wanted to process the field, or a value of 0 if I didn't want to process the field. Or you can use an auxiliary variable, but again, that's pretty confusing when more are needed and it's an easy way how to go crazy...  look to me... :)

I think I had Seat SHARED at one time, encountered errors that confused me, and ended up changing it.  Much still confuses me, despite all the experience.  Anything I don't do often tends to drift to the back of my mind, if not entirely out of my head.

Indeed, I try to avoid adding more variables whenever possible.  In fact, I think it's due to my desire to reuse as much code as possible that my programs always seem to end up all twisty and complicated.  I believe it was once called spaghetti code.  Thanks for the input.

15
QB64 Discussion / Re: UBOUND Causes "out of range" Error???
« on: November 26, 2019, 07:25:45 pm »
Hi
please say me, is an O ora a 0 as index of array in this line of your code?
Code: QB64: [Select]
  1.   IF Seat(O) > 0 THEN

moreover as you can read here in the wiki  http://www.qb64.org/wiki/ERASE
so if Seat is a dynamic array before use Ubound you must REDIM it.

It's the letter O, as in Object.  Variable O is SHARED, as I recall.  Thanks.

Pages: [1] 2 3 ... 10