Dark Bit Factory & Gravity

PROGRAMMING => Purebasic => Topic started by: KrazyK on December 21, 2017

Title: Star Wars Scroller / Crawler
Post by: KrazyK on December 21, 2017
Has anyone ever managed to do a decent Star Wars scroller/crawler in PB without using the 3D engine or any other 3rd party 3D libraries like MP3D or Epyx?
I tried ages ago and failed but having been inspired by the latest movie release i've tried again and think I may have cracked it this time.  It's still early but it's working very smoothly and without and 3D libraries, just standard PB calls.  I'll make it into library and add a piece of test code when I have a bit more time as it's just an initialization call with the text address, width and height of the screen then a call from within the main loop to keep it going.
Quick screenshot of work in progress.
Title: Re: Star Wars Scroller / Crawler
Post by: combatking0 on December 26, 2017
This looks great! Perhaps a little pixellated when the text gets far away, but other than that it's hard to tell it apart from the real deal.
Title: Re: Star Wars Scroller / Crawler
Post by: emook on January 15, 2018
Lovely!
Title: Re: Star Wars Scroller / Crawler
Post by: KrazyK on January 19, 2018
Here's the first version of the x86 library compiled using 5.61.  Don't use it on x64 as it will not work.
I've tried to make it a simple as possible to use and only has 2 commands:

Crawler_Init & Crawler_Go
See the example for further details.

I've  included a small example which i'm sure can be added to for the full intro effect.

Edit:
New version 1.01 with a few extra parameters for x86 and x64

Also included is a nearly finished intro.



Title: Re: Star Wars Scroller / Crawler
Post by: ttemper on January 22, 2018
Hey :) I went to check out the demo and the first part works (star wars logo zoom out), then when the scroller gets on screen, it's incorrectly placed and rather small (see screenshot).

Using win7 x64 to run it... not sure if "Don't use it on x64 as it will not work" applies here or not.

Title: Re: Star Wars Scroller / Crawler
Post by: KrazyK on January 22, 2018
Hi ttemper, the compiled  exe should work on x64 too.  I guess not on yours though.
I've tried it on two  machines here.  x64 laptop with intel gfx, x64 pc with nvidia gfx.
What happens when you run the example code after copying the x64 library over?
Try changing the screen dimensons and post a screenshot. The screen height must be at least 200px.  Try 1600x900 as that look kinda nice.
Try installing the starwars.ttf font attached here in the zip to see if that makes any difference.
Title: Re: Star Wars Scroller / Crawler
Post by: inc. on January 23, 2018
same here.
i used your code and compiled it with purebasic 5.61

not working well with the 3d scroller
Title: Re: Star Wars Scroller / Crawler
Post by: ttemper on January 23, 2018
I installed the font, no change. As for compiling it myself, I don't have PureBasic, so unable to test that method.
Title: Re: Star Wars Scroller / Crawler
Post by: KrazyK on January 23, 2018
Ah crap!. 
I'll go back through and make sure all variables are doing what they're supposed to be doing! This may take some time.  Now 3 machines i've tested all appear to work fine.  Argghhh...
 ::)
Title: Re: Star Wars Scroller / Crawler
Post by: inc. on January 23, 2018
why not include the userlib as CODE, so we can find the BUG?


the main code does not give much options to fix some with the scroller.  :carrot: