Search found 22 matches

by fusion_400
Sun Jun 22, 2008 6:30 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

This is almost the holy grail sadly the purebasic overlay function only accepts MPEG1 movies.
This is untrue. It will only work for definate, every time with mpeg movies - you have to try experimenting with it yourself to see what other codecs will work.

I have tried it with some WMV files and ...
by fusion_400
Sun Jun 22, 2008 4:51 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

Here is something else you should know about movies: You're looking at 24-30fps dependent on the movie.

The RenderMovieFrame() takes this into account. Without the movie, you will be running at about 60fps, but when you play the movie, it plays at normal speed, even though you are telling it to ...
by fusion_400
Sun Jun 22, 2008 8:26 am
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

As I said before, it's not difficult - the problem you have is two fold:

1. Images are slow. Use sprites.
2. Mpgs are a PROGRESSIVE technology. That means that if you clear the screen, and then display the current frame, you will only be displaying what previously changed. It's best to forget ...
by fusion_400
Fri Jun 20, 2008 12:41 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

Ok i have tried to use an image converted to a sprite it is a 1182x74 image with the text "Amiga rulez the world" And this code is working but there is still the stuttering when the movie is enabled this drives me crazy. The stuttering is not continous instead there are sporadic stutters and the cpu ...
by fusion_400
Thu Jun 19, 2008 12:11 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

Don't you know grabsprite/clipsprite? I don't have a code to give you by now but I think you can do something with that.

No i have missed them completely i will try to see what i can do with them though hopefully it can achieve complete smoothness.

One other thing is i wonder why the video ...
by fusion_400
Thu Jun 19, 2008 12:07 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

To be honest, having a 30000x300x32 sprite is a Bad Idea anyway.

The correct method would be to chop the string into multiple parts and then only display what you need. For instance, at a minimum have one sprite per letter and then display just the required letters. Given the size of the letters ...
by fusion_400
Thu Jun 19, 2008 11:43 am
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

Foz wrote:Using SpriteOutput didn't work if you used his example above.

I suspect that it is something to do with the sheer size of the "sprite".
Exactly i have tried with SpriteOutput but it does not work.
by fusion_400
Thu Jun 19, 2008 6:34 am
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

it's slow for two reasons:
1. It's waiting for the vsync. This would be 60hz for most people.
2. It's only moving the text on 1 pixel at a time. (step -1)

These two reasons combined is why it's slow - it's only doing 60 pixels a second.

The vsync gives constant speed, so you'll need to play with ...
by fusion_400
Thu Jun 19, 2008 5:28 am
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

You can't put RenderMovieFrame() in a Start block.

This is a little closer, but you'll need to deal with transparancy:
InitKeyboard()
InitMovie()
InitSprite()

OpenScreen(1024, 768, 32, "Display System")
LoadFont(0, "Arial", 130)
text.s = "Display System Version 0.1"

StartDrawing(ScreenOutput ...
by fusion_400
Wed Jun 18, 2008 5:18 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

If i put clearscreen at the top i get the flickering.

I also tried to move around the start3d function but it does not matter where i move it still is not displayed in the foreground.

And if i move flip buffers down below stop3d i get flickering text again.

I also tried to convert chars to a ...
by fusion_400
Wed Jun 18, 2008 4:46 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

I have gotten this to work now without flickering due to using ClearScreen($402010).

But the scroller is still slow and the movie gets played in the background instead of the foreground and there is no transperency either with the text just white text and black background.

Also about converting ...
by fusion_400
Wed Jun 18, 2008 2:06 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

I tried to get this to work with using imageoutput but i get a black screen only. When i used it in the other code the only thing that displayed was the sprite.

InitSprite()
InitKeyboard()
ImageToDrawOn = CreateImage(#PB_Any, 1360, 768, 32)
OpenScreen(1360, 768, 32, "Display System")
LoadFont(0 ...
by fusion_400
Wed Jun 18, 2008 12:01 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

It very simple:
Use DrawText onto an image, and then scroll that image.

Rendering the text once is a lot less processor intensive than doing it every frame.

Ok how do i convert DrawText to an image ? I am very new at this i am not a seasoned pro at programming. So i really appreciate any help i ...
by fusion_400
Tue Jun 17, 2008 10:28 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

Do u people know if it is possible to get a simple mpeg1 320x240 movie and some scrolling text to run in fullspeed in purebasic. I have eliminated the flickering issue and the movie and the rotation is in full speed but the text is slowed down dramatically.

I supplied the code in a previous posting.
by fusion_400
Tue Jun 17, 2008 5:17 pm
Forum: General Discussion
Topic: Smooth scrolling text like C64/Amiga how to do it in basic?
Replies: 59
Views: 19244

Ok i have managed to get the movie going smoothly and even rotating smoothly without any flickering or tearing but the speed of the text scroller goes way down. Is there anything i can do to speed it up ? Btw if i use 2d sprite the scrolling is still way slow.

What i am trying to do here is ...