Search found 7632 matches

by D.J.Peters
Aug 04, 2020 19:04
Forum: General
Topic: A PRNG for graphics programs?
Replies: 78
Views: 1585

Re: A PRNG for graphics programs?

The code from first post plottet only 25 FPS on a old box. With a small changes it plots 1250-1300 FPS Joshy #include "fbgfx.bi" Using FB #define Engine this.state = this.state * 1664525ul + 1013904223ul And &HFFFFFFFFul Const c1 = 2^32 Type NR32 Public: Declare Constructor Declare Sub...
by D.J.Peters
Jul 31, 2020 8:54
Forum: General
Topic: simple stack-based eval
Replies: 11
Views: 493

Re: simple stack-based eval

Tourist Trap wrote:Nice. You need to implement Exit() or something like that to be complete :)
ENTER only will do the job !

@srvaldez nice and clean good job!

Joshy
by D.J.Peters
Jun 17, 2020 21:17
Forum: Game Dev
Topic: Ways in which I can embed a video player into GFX window?
Replies: 13
Views: 2405

Re: Ways in which I can embed a video player into GFX window?

Landeel wrote:you made my day sir.
I've been struggling with this for 4 days.
I've been struggling with this for 4 hours. :-)

Joshy
by D.J.Peters
Apr 07, 2020 23:42
Forum: Libraries
Topic: libOpenCV Windows/Linux 32/64-bit
Replies: 38
Views: 2171

Re: libOpenCV Windows/Linux 32/64-bit

When cvCreateImage() is called, the program crashes in Windows XP. I got a crash on 64-bit Windows 10 also :-) instead of creating a new image from another (a copy) try to clone it ! (should work see my tests above) res = cvCloneImage(src) Would you please provide a text recognition example, such a...
by D.J.Peters
Apr 07, 2020 23:32
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 80
Views: 98968

Re: List of *FREE* game programming resources

... the problem is not being able to draw or paint let alone animate :) Sure but others more talented artists have done it for you :-) For example grab a "walk sequence" (as images or bones) import all frames and overdraw it with your shiny player/monster or what ever. How ever stay safe ...
by D.J.Peters
Apr 07, 2020 22:10
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 80
Views: 98968

Re: List of *FREE* game programming resources

Create 2D animations/sprites/movies scenes and or backgrounds with free open source OpenToonz ! I found OpenToonz in a video: Best Free Animation Software in 2020 In the video I saw a little girl using it so it's the right tool for me also :-) homepage: https://opentoonz.github.io/e/index.html downl...
by D.J.Peters
Apr 07, 2020 20:43
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 17
Views: 1545

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

Often you need only a symbolic link that points to libtinfo.so (in case the libtinfo.so.6 is in /usr/lib/)

sudo ln -s /usr/lib/libtinfo.so.5 /usr/lib/libtinfo.so.6

Joshy
by D.J.Peters
Mar 25, 2020 4:57
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 1246

Re: A simple miner program

Here are how to mirror a right walk to left walk and create one image strip with right and left walk circles. (in case if MultiPut V2.0 are too much) http://shiny3d.de/public/fb/miner_rl.png NOTE: testfile "miner-walk-right.png" must be in the same folder ! Of course you can mirror any ima...
by D.J.Peters
Mar 24, 2020 14:37
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 70
Views: 21323

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

@tone may be libfbsound-64.so not loaded while any open reference ! try the ldd command Joshy joshy@UBUNTUx86-64:~$ cd fbsound-1.1/tests/ joshy@UBUNTUx86-64:~/fbsound-1.1/tests$ fbc on_the_fly.bas joshy@UBUNTUx86-64:~/fbsound-1.1/tests$ ldd on_the_fly linux-vdso.so.1 (0x00007ffec15a5000) lib...
by D.J.Peters
Mar 22, 2020 14:46
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 3052

Re: Parse string to tree structure

UEZ wrote:@Joshy: I get several em when trying to compile your code ...
That means your fbc compiler or include files are not uptodate !

Often FreeBASIC for Linux setup isn't complete !

Joshy
by D.J.Peters
Mar 22, 2020 14:40
Forum: Linux
Topic: Linux Framebuffer
Replies: 9
Views: 792

Re: Linux Framebuffer

@Roland007 try this ! Joshy dim as integer iWidth,iHeight,iBits screeninfo(iWidth,iHeight,iBits) print iWidth,iHeight,iBits if screenres(iWidth,iHeight,iBits) then print "error: screenres() !" beep: sleep: end 1 end if if iBits<15 then ' 8-bit palette For y As Integer = 0 To iHeight-1 For ...
by D.J.Peters
Mar 22, 2020 14:20
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 70
Views: 21323

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

@tone as a beginner put the file : "fbs_on_the_fly.bas" in the original/unchanged fbsound-1.1/tests folder (don't move any file to any other place don't change the #include line ...) cd fbsound-1.1/tests fbc fbs_on_the_fly.bas fbs_on_the_fly.exe (windows) ./fbs_on_the_fly (linux) this shou...
by D.J.Peters
Mar 22, 2020 14:08
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 3052

Re: Parse string to tree structure

I changed the output line to:
print space(iif(j<2,0,(j-1)*2)) & "+ " & splitted(j)

A single file j=0 or the first folder from path j=1 get the same priority in the output !

Joshy
by D.J.Peters
Mar 22, 2020 1:30
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 3052

Re: Parse string to tree structure

D.J.Peters wrote:@badidea yours does produce an runtime error here (compile with -exx)

d:\done>d:\FreeBASIC\fbc32 -exx user_FS.bas
d:\done>user_FS.exe
Aborting due to runtime error 4 (out of memory) at line 45 of user_FS.bas::ADDITEM()

Go to advanced search