Search found 1647 matches

by angros47
Oct 20, 2020 16:24
Forum: General
Topic: Does anyone use Emscripten?
Replies: 0
Views: 57

Does anyone use Emscripten?

I know that in the past there was an emscripten version. Nowadays, what should I do to be able to compile to Emscripten from FreeBasic?
by angros47
Sep 24, 2020 23:56
Forum: Community Discussion
Topic: [solved] if x2+y2 <= 1 then z2=1-(x2+y2) : z=sqr(z2) ?
Replies: 10
Views: 342

Re: if x2+y2 <= 1 then z2=1-(x2+y2) : z=sqr(z2) ?

The reason you don't want to use sqr is for speed, right? The first thing that comes to my mind: in your code, you use the value of z to calculate the blue level, and this level is an integer value between 0 and 255. Also, the value of z is supposed to vary between 0 and 1, it cannot go out of range...
by angros47
Sep 16, 2020 15:02
Forum: Libraries
Topic: how to create .3bd files?
Replies: 4
Views: 192

Re: how to create .3bd files?

MilkShape3D can export to B3D.

There is also a plugin for Blender that allows to export to B3D (just check the version, not all versions of Blender are supported, I think)

https://github.com/joric/io_scene_b3d
by angros47
Sep 16, 2020 0:02
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 21
Views: 717

Re: Object oriented programming or 3d graphics?

Dodicat, glBegin...glEnd are commands deprecated from almost every version of OpenGL, so it's better not to teach OpenGL in that way
by angros47
Sep 16, 2020 0:01
Forum: Libraries
Topic: MiniB3d for FreeBasic
Replies: 956
Views: 199661

Re: MiniB3d for FreeBasic

IvanisIvan wrote:I can't seem to find minib3d.bi


In the later version it's called openb3d.bi
by angros47
Sep 11, 2020 0:23
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19244

Re: FreeBASIC 1.08 Development

I also remind that, for the dos version, the batch file maksymbr.bat has to be launched, and then the main runtime library has to be compiled again before distributing the compiled version
by angros47
Sep 10, 2020 10:02
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19244

Re: FreeBASIC 1.08 Development

Code: Select all

code="Line "+_
"continuation "+_
"can actually work "+_
"with strings"
by angros47
Sep 10, 2020 0:01
Forum: General
Topic: Star Wars "Light Saber"
Replies: 15
Views: 353

Re: Star Wars "Light Saber"

I wonder if it's possible to create a ring laser crystal , instead of a beam laser crystal. No, because "ring laser crystal" means nothing, it's a term that makes no sense. When the two parallel lasers come together , they might diffuse?? If they are parallel, they cannot come together. I...
by angros47
Sep 09, 2020 16:55
Forum: General
Topic: Star Wars "Light Saber"
Replies: 15
Views: 353

Re: Star Wars "Light Saber"

albert wrote:Then the base has a similar crystal or mirror that reflects the laser back up to the top..


This is not possible, because if the base has already the laser emitter. If you put the mirror over the emitter, it would block the laser beam, that would be unable to reach the mirror on the top.
by angros47
Sep 09, 2020 9:21
Forum: General
Topic: Star Wars "Light Saber"
Replies: 15
Views: 353

Re: Star Wars "Light Saber"

First of all, there is no such a thing like a telescopic crystal. Also, trapping light inside a crystal would have a serious issue: true, you can use refraction and reflection to make a photon "bounce" around, following a path inside the crystal, but such a path would either be open, or cl...
by angros47
Sep 07, 2020 16:05
Forum: General
Topic: Number Trick
Replies: 126
Views: 3813

Re: Number Trick

I'm out of paper.... I've filled a 500 page notebook with manipulation formulas over the last two weeks.. 1000 pages.. Got to buy another 500 page notebook... What are you trying to do? Are you trying to say, like Fermat, that you have a great formula but not enough space to write it? My question i...
by angros47
Sep 07, 2020 9:44
Forum: General
Topic: Object oriented programming or 3d graphics?
Replies: 21
Views: 717

Re: Object oriented programming or 3d graphics?

IvanisIvan wrote:Thank you! Do you know if any library exists?



My library OpenB3D (formerly MiniB3D) should do what you need

https://www.freebasic.net/forum/viewtopic.php?t=15409
by angros47
Sep 03, 2020 21:24
Forum: General
Topic: Number Trick
Replies: 126
Views: 3813

Re: Number Trick

Listen, Albert: if you want a formula to square numbers, use this:

Code: Select all

Exp(Log(X)*2)


It works. Now, please, stop posting non-working pieces of code.
by angros47
Sep 01, 2020 21:52
Forum: Community Discussion
Topic: Executable size 11x larger than C's?
Replies: 8
Views: 564

Re: Executable size 11x larger than C's?

The subject has already been discussed many times, here, for example: https://www.freebasic.net/forum/viewtopic.php?f=4&t=22664

I hope this helps.
by angros47
Aug 30, 2020 20:13
Forum: General
Topic: Number Trick
Replies: 126
Views: 3813

Re: Number Trick


Go to advanced search