Who's Online |
13 user(s) are online ( 9 user(s) are browsing Forums)
Members: 0
Guests: 13
more...
|
|
Headlines |
-
roguefootballcardgame.lha - game/card
Dec 6, 2024
-
processactionreply.lha - game/utility
Dec 4, 2024
-
litexl.lha - utility/text/edit
Dec 4, 2024
-
amiarcadia.lha - emulation/gamesystem
Dec 2, 2024
-
mgba.lha - emulation/gamesystem
Dec 1, 2024
-
jfduke3d.lha - game/fps
Dec 1, 2024
-
prboom-plus.lha - game/fps
Dec 1, 2024
-
iff-converter.lha - graphics/convert
Dec 1, 2024
-
flashmandelng.lha - graphics/misc
Dec 1, 2024
-
mce.lha - game/utility
Nov 27, 2024
|
|
|
|
Re: SketchBlock XMas Card Video 2023
|
|
Just popping in
|
@broadblues
Hello, As usual, each year I am waiting for your animation. Thanks and Merry Christmas.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: gcc bug or am I a looser?
|
Posted on: 2022/9/22 0:35
#2
|
Just popping in
|
@broadblues and all In the meantime, I wrote this code. May be for someone it is overkill but it works well. Your solution using int is a good idea but not suitable in my case. Here is the code for all who wants to know and feel to use it freely. It is in C++
template <class T>
bool AmawIn(const T a, const T b,const T c) {
T bb=b,cc=c;
T eps = std::numeric_limits<T>::epsilon()*100;
if (b > c) { T tmp=bb; bb = cc; cc = tmp;}
if ( (a>bb) && (a<cc)) return true;
if ( (fabs(a-bb) < eps) || (fabs(cc-a) < eps) ) return true;
return false;
}
Capehill, I had understood your purpose and used this to display the numbers
cout <<std::fixed<<std::setprecision(16)<<"(Amawin:: a="<<a<<" b="<<bb<<" c="<<cc<<" epsilon="<<eps<<")"<<endl;
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: gcc bug or am I a looser?
|
Posted on: 2022/9/20 0:47
#3
|
Just popping in
|
@yescop Thanks for taking time to read my source and answer.
Capehill, the precision is 16 (using double). Broadblues, I am not a looser but a too confident person. I was thinking wrongly that the comparison in gcc was smarter. For example, if a=1.0 and b=1.0, a==b would always return true. But it is not true because the comparison will examine all digits (here 16) and not only a few (here only one digit, smarter as the variables used in my code were equal to numbers from 1 to 4 with a step of 0.2) and as you wrote, the conversion is not precise.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
gcc bug or am I a looser?
|
Posted on: 2022/9/15 10:34
#4
|
Just popping in
|
Hi everybody, I was testing a part of my code when I discovered something strange. I was testing (function AmawIn) if a variable a is within a range [b,c] and when a was equal to b or c the result could be false. Changing the types worked but not always. I changed the code testing different algorithms of AmawIn as you can read. I am using gcc 11.3 (the last adtools). For info, I have just compiled the code with gcc Debian 11.3 with the same output. After testing a lot, I have got no more ideas. I hope someone will help me. I compile with Quote: g++ -std=c++11 -athread=native -o test-anim test-anim.cc Here is the code.
#include <iostream>
#include <cmath>
#include <exec/types.h>
using namespace std;
/*
template <class T>
bool AmawIn(const T a, const T b,const T c) {
//T aa=a,bb=b,cc=c;
// if (b > c) { T tmp=bb; bb = cc; cc = tmp;}
return !(a<b) && !(c<a);
}
*/
/*
bool AmawIn(float64 a, float64 b, float64 c) {
if ( ( ( a >= b) && (a <= c)) || (( a >= c) && ( a <= b)) ) return true;
else { cout <<"Inside AmawiI ( a="<<a<<" b="<<b<<" c="<<c<<")"<<endl;
return false;
}
}
*/
/*
bool AmawIn(const float64 a, const float64 b,const float64 c) {
//T aa=a,bb=b,cc=c;
// if (b > c) { T tmp=bb; bb = cc; cc = tmp;}
return !(a<b) && !(c<a);
}
*/
bool AmawIn(const float64 a, const float64 b,const float64 c) {
return !(a<b) && !(c<a);
}
int main(int argc, char *argv[]) {
bool stopp = false;
bool back = true;
bool infinite = false;
float64 animold;
int32 compteur = 0;
int32 animt = 1;
float64 animS = 1.;
float64 animE = 4.;
float64 animV = 0.2;
float64 animSnew = animS;
float64 animEnew = animE;
float64 anim;
int32 delay1;
int32 delay2;
int32 delay3;
if (animV>=1) {
delay1 = delay2 = delay3 = 0;
} else {
delay1 = static_cast<int>( 1./(animV*2));
delay2 = static_cast<int>( -1.+1./animV);
delay3 = static_cast<int>( 1./animV);
}
if (animV == 0.5) delay2 = 2;
if (back) animt = 2;
if (animS>animE) animV *= -1;
if (back) {
if (animS<animE) animEnew =animE + delay1 * animV;
if (animS>animE) animSnew = animS - delay2 * animV;
}
anim = animSnew;
cout <<endl<<" (animS = "<<animS<<", animE = "<<animE<<", animV = "<<animV<<")";
cout <<endl<<" (animS = "<<animSnew<<", animE = "<<animEnew<<", animV = "<<animV<<")"<<endl;
for (int i=0; (i<1000) && !stopp; ++i) {
if (i%12==0) cout <<endl;
animold = anim;
cout <<anim<<", ";
if (animt > 0) {
anim += animV;
if (!AmawIn(anim, animSnew, animEnew ) ) { //[color=FF6600]HERE IS THE PROBLEM[/color]
cout <<"( in AmawIn: "<<anim<<" not in "<<animSnew<<":"<<animEnew<<")"<<endl;
if ( fabs(anim-animSnew) < fabs(anim-animEnew) ) anim = animS;
else anim = animE;
if (!infinite) --animt;
if (back) {
animV*=-1;
if (animt>0) {
if (animS<animE) anim =animEnew + animV;
if (animS>animE) anim = animE + delay3 * animV;
}
cout <<endl<<endl<<" back commencé (animS = "<<animSnew<<", animE = "<<animEnew<<", animV = "<<animV<<")"<<endl;
} else if ( (animt>1) || ( (animt==1) && infinite ) ) anim = animS;
}
}
if (anim==animold) ++compteur;
if (compteur> 4) stopp = true;
}
cout <<endl;
return 0;
}
Here is the output
(animS = 1, animE = 4, animV = 0.2)
(animS = 1, animE = 4.4, animV = 0.2)
1, 1.2, 1.4, 1.6, 1.8, 2, 2.2, 2.4, 2.6, 2.8, 3, 3.2,
3.4, 3.6, 3.8, 4, 4.2, ( in AmawIn: 4.4 not in 1:4.4) //[color=FF6600]HERE IS THE PROBLEM[/color]
back commencé (animS = 1, animE = 4.4, animV = -0.2)
4.2, 4, 3.8, 3.6, 3.4, 3.2, 3,
2.8, 2.6, 2.4, 2.2, 2, 1.8, 1.6, 1.4, 1.2, ( in AmawIn: 1 not in 1:4.4) //[color=FF6600]HERE IS THE PROBLEM[/color]
back commencé (animS = 1, animE = 4.4, animV = 0.2)
1, 1, 1,
1, 1,
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: gcc 9 and 10
|
Posted on: 2021/4/4 17:33
#5
|
Just popping in
|
@Capehill
Thanks for your help. I will give my first impressions. At first I tested gcc10 and gcc09 without success. Too many errors even with -std=c++11 -mcrt=... I managed to get my progs compiled with gcc09 with -std=c++11 -athread=native (or something like that not sure of the syntax).
I compiled a hello prog and a more complex amiga program with sucess. I notice a problem though. In one .cc file (located in work:dir2 ) I declared an include like #include "work:dir/file.h"
I had an error during compilation File not found work:dir2/work:dir/file.h As you see, there is a bug here.
For the moment, I change the include by /work/dir/file.h in the linux way. I don't really like it.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: gcc 9 and 10
|
Posted on: 2021/3/17 23:52
#6
|
Just popping in
|
Hello All of you are doing a great job. I would test gcc 10 on OS4.1. What and where do I download? (gcc, addtools...) How to install it? over old gcc or fresh install? In this case, all libraries and .so must be reinstalled, no? Thanks for your answers.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Burn the copy of amigaos 4.1
|
Posted on: 2018/12/17 10:18
#7
|
Just popping in
|
@white Simple answer, no. Don't forget to check the option "disk bootable" or something like that in your software.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: how PPC Cpu handle "double" and "float" in terms of speed
|
Posted on: 2018/11/21 10:17
#8
|
Just popping in
|
@kas1e In your double function, you didn't cast the constants to double as you did in float function. So I think there is an implicit conversion and this costs time. Change your double function to Rv += 2d/(i(i+2)) And see the difference with float function and old double function.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: SketchBlock Pro Installation Video And Icon Editing Demo
|
Posted on: 2018/11/19 19:35
#9
|
Just popping in
|
@daveyw When I had this kind of problem (no boot of workbench), I used my os4 cd installation to boot up and open a shell. There, you can copy or modified your files or your prefs on your disk.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: SketchBlock Pro Installation Video
|
Posted on: 2018/11/15 13:40
#10
|
Just popping in
|
@broadblues Thanks for the last vieo. I saw some demonstration of what I asked for. Keep doing tutorials as I love them.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: SketchBlock Pro Installation Video
|
Posted on: 2018/11/14 18:43
#11
|
Just popping in
|
@broadblues Thanks for your work and your simple and efficiency answer. I saw your video and i don't understand why you created a screen and palette. In the prefs menu of sb, there isn't an option to choose "open sb on a screen"? It is the choice of the palette which disturbs me. Does sb not choose the palette by default?
It seems that I choose my gift for christmas...
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: SketchBlock Pro Installation Video
|
Posted on: 2018/11/14 12:32
#12
|
Just popping in
|
@broadblues A few months ago, I asked you what you can do with Sketchblock. I read your site and there are some new things in the last version of SB. But are there functions to manipulate two or more images? Merge them, composite them, use image alpha... In photogenics, there are tools like smudge and smear. Do they exist in SB? I saw an interesting video on youtube about photoshop. In it, the author removed an object like a car from the scene. Could I do this in SB? Last question, I suppose that a paint tablet (not sure for the name) is not mandatory.
Thanks for reading. I was supposed to ask only one question and there are more! YesCop
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Strange crash
|
Posted on: 2018/3/9 13:00
#13
|
Just popping in
|
@Raziel
I have just typed this. version libs:mpega.library
and I obtain (only) so that should not be the same file. mpega.library 2.4
Its size is 215 109 492 bytes.
I am on OS4.1 FE.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Project StartFighter 1.7
|
Posted on: 2018/1/16 0:01
#14
|
Just popping in
|
Hello. I will enjoy helping you. I have a sam flex and a radeon 9250.
Cheers, Jesús
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: When will Amigakit sell X5000?
|
Posted on: 2016/12/4 22:57
#15
|
Just popping in
|
As Lemen, I would want to know too when the 5040 will be there even it is not for now. I think it is normal to know from amigakit or AEon if these computers are not discarded. I hope we will have an answer.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Video: Creating Video Titles in SketchBlock Pro
|
Posted on: 2016/10/17 22:54
#16
|
Just popping in
|
@broadblues
Thanks. It is a good question andvthe answer is ard. I have to think about that. Would it be all (almost) possible with version 2.6, 2.8 or 3.1?
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Video: Creating Video Titles in SketchBlock Pro
|
Posted on: 2016/10/17 1:50
#17
|
Just popping in
|
@broadblues
As always, I like your videos. This time I had the oportunity to hear your music. Good.
In this video, it seems that sk is more than a paint program. Could I do all I can do with Photogenics?
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: AmiWest news
|
Posted on: 2016/10/11 1:57
#18
|
Just popping in
|
What I wanted to know from the Amiwest show is when Aeon will make the 5040. Is it allready completely designed? Is a batch scheduled?
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Interested in learning OpenGL ES 2 or Warp3D Nova?
|
Posted on: 2016/9/9 14:35
#19
|
Just popping in
|
@Hans
Thanks for your tutorials. They are simple and well explained. Nova seems to be simpler that I could imagined. I am interested in your future tutorials even I don't fill your survey because I don't want to buy a new hd card for my sam flex. May be yes if I buy a 5040.
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|
Re: Dungeon crawler
|
Posted on: 2016/5/16 11:27
#20
|
Just popping in
|
|
Since a lot of months without an amiga to love, I was lost. Now I feel happiness again with a Sam Flex 800 .
|
|
|