Search found 8184 matches

by D.J.Peters
Nov 28, 2023 3:13
Forum: Game Dev
Topic: The world needs more tetris
Replies: 6
Views: 882

Re: The world needs more tetris

Good job so ar :-)

Joshy
by D.J.Peters
Nov 10, 2023 6:35
Forum: Libraries Questions
Topic: how to assign a color in horde3d ?
Replies: 2
Views: 2015

Re: how to assign a color in horde3d ?

If you you know the resource id and element id you can try something like this: ' set uniform red,green,blue,alpha h3dSetResParamF(resID, H3DMatRes_UniformElem, elemIdx, H3DMatRes_UnifValueF4, 0, r) h3dSetResParamF(resID, H3DMatRes_UniformElem, elemIdx, H3DMatRes_UnifValueF4, 1, g) h3dSetResParamF(r...
by D.J.Peters
Nov 05, 2023 3:32
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 304858

Re: MiniB3d for FreeBasic

I played a litle bit with Open3DJS here are a template for a resizable window/cannvas. Joshy <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>OpenB3BJS template of resizable window.</title> <script src="OpenB3D.js"></script> <script src="OpenB3DJS.js"></scrip...
by D.J.Peters
Nov 01, 2023 18:54
Forum: Sources, Examples, Tips and Tricks
Topic: Old C64 Demo Effect - Endless Sprites
Replies: 1
Views: 1418

Re: Old C64 Demo Effect - Endless Sprites

Real Sprites (old but gold) :-) Joshy #include "fbgfx.bi" ' ' NewImage = ImageScale(SourceImage,Scale) ' Function ImageScale(s As fb.Image Ptr, Scale as single=1.0) As fb.Image Ptr static As fb.Image Ptr t=0 If s =0 Then Return 0 If s->width <1 Then Return 0 If s->height<1 Then Return 0 sc...
by D.J.Peters
Nov 01, 2023 8:46
Forum: Community Discussion
Topic: Missing in action.
Replies: 28
Views: 4010

Re: Missing in action.

... BTW The last post from Joshy: Dec 20, 2022 9:56 A good friend of me and my mother died within a short period of time. I therefore had to clear out two apartments. But that's not all the trouble, my own apartment had three water damages. I'm now back to "normal" life and programming ag...
by D.J.Peters
Oct 30, 2023 19:51
Forum: Projects
Topic: MultiPut[DES],[x],[y],SRC,[xScale],[yScale],[Rotate],[Trans]
Replies: 63
Views: 17134

Re: MultiPut[DES],[x],[y],SRC,[xScale],[yScale],[Rotate],[Trans]

Don't use this old code from "2006" use MultiPut V2.0 instead from "2016" "10 years later" also a name of a band :-)

see at: viewtopic.php?t=24479

Joshy
by D.J.Peters
Dec 20, 2022 7:56
Forum: Game Dev
Topic: 3D Engine like "Descent" Game
Replies: 4
Views: 3335

Re: 3D Engine like "Descent" Game

OpenGL handles/names (for textures etc.) are not pointers 32/64-bit this are 32-bit only so you have to use "ulong" or better "gluint" NOT INTEGER and RGBA pixels in FreeBASIC and OpenGL are only 32-bit also use "ulong" NOT INTEGER Thats all 32 vs 64-bit targets. Joshy
by D.J.Peters
Dec 16, 2022 11:11
Forum: Projects
Topic: cedit (windows , linux , freebsd , dos)
Replies: 11
Views: 5237

Re: cedit (windows , linux ,dos)

The code is really easy to read except the comments :-) how ever good job.

Joshy
by D.J.Peters
Dec 16, 2022 10:52
Forum: Game Dev
Topic: 3D Engine like "Descent" Game
Replies: 4
Views: 3335

Re: 3D Engine like "Descent" Game

Again I fixed some stuff for 32/64-bit targets and renamed some vars look for "' !!!" and I added some WITH / END WITH blocks.

download: FB_Cubes6.zip (note I used .zip not .rar)

Joshy
by D.J.Peters
Dec 16, 2022 6:14
Forum: Game Dev
Topic: Maze 2D and 3D
Replies: 10
Views: 5098

Re: Maze 2D and 3D

I made some changes for 32/64-bit targets :-) (type RGBAColor as ulong) Joshy ' lectura de texturas: ' son cuadros de 64x64 pixel, y cada pixel ocupa 4 bytes (alpha,r,g,b), por lo tanto 64x64x4=16384bytes ' se almacenan seguidas en el binario, de 16k en 16k. en el binario se almacena como UInteger. ...
by D.J.Peters
Nov 18, 2022 23:08
Forum: Sources, Examples, Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 110
Views: 40860

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

show me the declaration of "setsockopt" in your include file please
by D.J.Peters
Nov 18, 2022 13:39
Forum: Sources, Examples, Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 110
Views: 40860

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

I can compile all examples on Windows with success ! fbc32 --version FreeBASIC Compiler - Version 1.10.0 (2022-06-20), built for win32 (32bit) Copyright (C) 2004-2022 The FreeBASIC development team. fbc64 --version FreeBASIC Compiler - Version 1.10.0 (2022-06-20), built for win64 (64bit) Copyright (...
by D.J.Peters
Nov 17, 2022 4:21
Forum: Sources, Examples, Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 110
Views: 40860

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

I changed the the hard coded server path's in the examples so they can work with simple 'http' (not 'https') on my server.
(get it from first post)

Joshy
by D.J.Peters
Nov 17, 2022 2:48
Forum: Sources, Examples, Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 110
Views: 40860

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

from linux manual pages: https://linux.die.net/man/2/setsockopt int setsockopt(int sockfd, int level, int optname, const void *optval , socklen_t optlen); I can't see any problem with the fourth parameter ! cptr(const any ptr,@tmp) Joshy constructor NetworkConnection(byval aSocket as SNC_SOCKET, _ b...