Search found 865 matches

by paul doe
Nov 04, 2017 23:49
Forum: Windows
Topic: Very basic process CPU load determiner
Replies: 66
Views: 3289

Re: Very basic process CPU load determiner

deltarho[1859] wrote:I have put you EMA code in a folder as I can see a use for it in other projects. Thank you.

You're welcome. Use it however you like, of course. No credit is given or taken =D
by paul doe
Nov 04, 2017 23:10
Forum: Windows
Topic: Very basic process CPU load determiner
Replies: 66
Views: 3289

Re: Very basic process CPU load determiner

@Paul Doe, I think your EMA implementation, could be done simpler: Perhaps. But yours is incorrect: function ema( byval value as double = 0.0, byval period as double = 1.0, byval zero as boolean = false ) as double /' EMA (Exponential Moving Average) implementation '/ static as double average if( z...
by paul doe
Nov 04, 2017 21:22
Forum: Community Discussion
Topic: Coding challenges?
Replies: 23
Views: 1677

Re: Coding challenges?

Yeah, I get your point. But mine isn't so much about reinventing the wheel but more like learning the ropes ;) When I first looked at doing 3d I simply imagined it as involving angles Haha I wished, too ;) But, unfortunately, seems like the more deceptively simple something looks , the more complica...
by paul doe
Nov 04, 2017 21:17
Forum: Game Dev
Topic: A matter of perspective...
Replies: 28
Views: 2231

Re: A matter of perspective...

In my code, not only there are bugs, but also many things are not optimal at all and I know it, because I first wanted to make it work well before any optimisation. Which is a very good idea, don't worry about it for now. Now I have a lot to read, but I was able to understand the 3D clipping. Good....
by paul doe
Nov 04, 2017 20:31
Forum: Community Discussion
Topic: Coding challenges?
Replies: 23
Views: 1677

Re: Coding challenges?

If we were to start with the rendering, we have to talk about normals, UV coordinates, lighting and shading, among other many topics. I entered the water to test its depth and whoops over my head :) So it seems =D Yes I have occasionally read about all that but it never came together as a working u...
by paul doe
Nov 04, 2017 17:23
Forum: Windows
Topic: Very basic process CPU load determiner
Replies: 66
Views: 3289

Re: Very basic process CPU load determiner

For kicks and giggles you could implement a moving average or two. One could be over 10 seconds, another over a minute, another over 10 minutes, etc. A neat idea, indeed. @deltarho: here's the code for an EMA (Exponential Moving Average): function ema( byval value as double = 0.0, byval period as d...
by paul doe
Nov 04, 2017 16:47
Forum: Community Discussion
Topic: Coding challenges?
Replies: 23
Views: 1677

Re: Coding challenges?

I agree. It why I wish that FreeBASIC will be able soon to support the Interfaces as this following (for example): Interface IA ..... End Interface Type A Implements IA ..... End Type Interface IB Extends IA ..... End Interface Type B Extends A Implements IB ..... End Type Yep. I use very similar s...
by paul doe
Nov 04, 2017 16:38
Forum: Game Dev
Topic: A matter of perspective...
Replies: 28
Views: 2231

Re: A matter of perspective...

Whatever type of rotater you use to turn your 3D vectors, one function will produce the perspective. Precisely. The process to displaying something 3D into the screen can be roughly summarized as follows: ⋅ Transform the points that belong to any particular object (called 'model' in the l...
by paul doe
Nov 04, 2017 16:09
Forum: Community Discussion
Topic: Coding challenges?
Replies: 23
Views: 1677

Re: Coding challenges?

If you mean the Frame rate independent game loop example I did assume the metaballs code was buried in there somewhere I was however thinking in terms of a short simple single file code challenge solution although included files with functions for general use would be acceptable. Yep. This is the a...
by paul doe
Nov 04, 2017 13:51
Forum: Game Dev
Topic: A matter of perspective...
Replies: 28
Views: 2231

Re: A matter of perspective...

I'll try to very quickly address some of the problems you're having: - When I want to draw a polygon which has some verteces in front of the camera and some behind the camera, I can't just skip it, but the projection goes crazy because lines cross. If I saturate it, so that every z < 0 becomes 0, th...
by paul doe
Nov 04, 2017 12:57
Forum: Game Dev
Topic: A matter of perspective...
Replies: 28
Views: 2231

Re: A matter of perspective...

Hola compis, Do you have any code handy? It can help immensely if both of us can work on the same code. I need to see how you define your camera, and what your conventions are. Are you using a right handed coordinate system, or a left handed one? The math is slightly different for both, so be aware ...
by paul doe
Nov 04, 2017 2:40
Forum: General
Topic: OpenGL Color Effects
Replies: 40
Views: 1790

Re: OpenGL Color Effects

That was a very encouraging compliment Paul, thank you! It's been a lot of fun lately because the project is rolling. I have another thread for it so just peak into the Projects forum once in awhile, called Alvarian Tales. (Although I am guilty of not releasing a demo yet.) This is an adventure RPG...
by paul doe
Nov 04, 2017 1:34
Forum: Community Discussion
Topic: Coding challenges?
Replies: 23
Views: 1677

Re: Coding challenges?

Hi, BasicCoder2 fxm's FreeBASIC syntax challenges made me think maybe we could also have FreeBASIC coding challenges? Perhaps duplicate the example challenges in the link below or find new short challenges and show how you can do them using FreeBASIC? Yo, and the metaball demo you were coding? Was i...
by paul doe
Nov 04, 2017 0:41
Forum: General
Topic: OpenGL Color Effects
Replies: 40
Views: 1790

Re: OpenGL Color Effects

Thanks, no I don't know how to blur a Sprite before drawing, or how to blur anything. I was probably going to just use a blurry white circle on a sprite sheet and then find someway to change how it is drawn to the screen to that like Overlay. That's ok. Now I see you're using the fixed-function pip...
by paul doe
Nov 03, 2017 16:45
Forum: General
Topic: OpenGL Color Effects
Replies: 40
Views: 1790

Re: OpenGL Color Effects

You're welcome =) The simpler the better, actually. It will help isolate the code you need. Thanks for your reply Paul. I apologize about lack of code, I am on the road today. Actually it's very simple code so far... I'll type up the general idea. This of course doesn't include the texture binding a...

Go to advanced search