English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 536
Search took 0.06 seconds.
Search: Posts Made By: deimos
Forum: Coders. General 31 December 2019, 16:28
Replies: 13
Views: 789
Posted By deimos
Well, gravity seemed easy enough: ...

Well, gravity seemed easy enough:


LONG elapsedTime = GetElapsedTime();

if (elapsedTime != 0) {
for (Model * model = scene.firstModel; model; model = model->nextModel) {
...
Forum: Coders. General 30 December 2019, 19:59
Replies: 2
Views: 299
Posted By deimos
Nice one. Thank you.

Nice one. Thank you.
Forum: Coders. General 30 December 2019, 17:53
Replies: 13
Views: 789
Posted By deimos
This is what I've managed to work out today: ...

This is what I've managed to work out today:

Thrust

T = r * (v_max - v) / v_max * t * e

where:

T is the resulting thrust
r is atmospheric density (normalised to a max value of 1 at sea...
Forum: Coders. General 30 December 2019, 03:09
Replies: 13
Views: 789
Posted By deimos
I certainly don't want any complex physics. But I...

I certainly don't want any complex physics. But I do think concepts like gravity are important and most of the behaviour I want to implement, such as acceleration that's linked to the current mass of...
Forum: Coders. General 29 December 2019, 18:40
Replies: 13
Views: 789
Posted By deimos
I've decided to not consider anything what comes...

I've decided to not consider anything what comes after my flight physics until I have my flight physics working, but I do have a vague idea of grid a system with multiple layers and detail levels for...
Forum: Coders. General 29 December 2019, 17:59
Replies: 13
Views: 789
Posted By deimos
All fixed point, but yes, with a constant, 2. ...

All fixed point, but yes, with a constant, 2.

The direction vector is held in 2:14 format, the throttle is an int, 0..100, currently. I multiply them together and then shift right by 13, resulting...
Forum: Coders. General 29 December 2019, 16:03
Replies: 13
Views: 789
Posted By deimos
I'd have to get Visual Studio and learn how to...

I'd have to get Visual Studio and learn how to use it first though.

I have added simple movement of the enemy aircraft. Now, at every screen update, it moves in the direction it's pointed in by a...
Forum: Coders. General 29 December 2019, 14:33
Replies: 13
Views: 789
Posted By deimos
I'm cross compiling from Windows, deploying into...

I'm cross compiling from Windows, deploying into WinUAE. I can't do Edit & Continue, but I can do Edit, Build & Deploy pretty quickly.



I understand your reasoning here, but it's not for me - I...
Forum: Coders. General 27 December 2019, 17:37
Replies: 13
Views: 789
Posted By deimos
Google / Wikipedia tell me that the the 4 main...

Google / Wikipedia tell me that the the 4 main forces involved are thrust, weight, drag and lift. Makes perfect sense. When thrust and drag are equal the plane has constant velocity. When weight and...
Forum: Coders. General 27 December 2019, 16:57
Replies: 13
Views: 789
Posted By deimos
7 (more) days of code

I have a bit more than a week of spare time to continue working on my "game" (http://eab.abime.net/showthread.php?t=99179).

Previously, I didn't get as far as I wanted due, mostly, to falling down...
Forum: Coders. Asm / Hardware 26 December 2019, 19:01
Replies: 18
Views: 660
Posted By deimos
There are 8 bits of value to wait for, but only 7...

There are 8 bits of value to wait for, but only 7 bits of mask - what should be the highest mask bit is used for waiting for the blitter to finish instead. You have to jump through some hoops.
Forum: Coders. Asm / Hardware 25 December 2019, 21:43
Replies: 1
Views: 318
Posted By deimos
Instructions are atomic, yes. Interrupts only...

Instructions are atomic, yes. Interrupts only happen between instructions.

Plenty of other things can go wrong though.
Forum: Coders. Asm / Hardware 24 December 2019, 15:28
Replies: 19
Views: 743
Posted By deimos
This week I hope to actually have the planes...

This week I hope to actually have the planes moving around rather than just spinning round on fixed positions.

But before I build a physics model I want a visual representation of the throttle...
Forum: Coders. Asm / Hardware 24 December 2019, 12:40
Replies: 18
Views: 660
Posted By deimos
When you get to check, you'll find the language...

When you get to check, you'll find the language in the manual easy to misinterpret:



This is how I think of it:

If there's a legal register address in the first word, then it's a move. By...
Forum: Coders. Asm / Hardware 23 December 2019, 21:51
Replies: 19
Views: 743
Posted By deimos
Got it! Thank you everyone. Edit: ...

Got it!

Thank you everyone.

Edit:

For those playing along at home, this is the working version I've come up with:


const WORD fwms [16] = { 0xffff, 0x7fff, 0x3fff, 0x1fff, 0x0fff,...
Forum: Coders. Asm / Hardware 22 December 2019, 20:15
Replies: 19
Views: 743
Posted By deimos
Maybe one problem is that I'm trying to be too...

Maybe one problem is that I'm trying to be too specific. Maybe I should go and write a generic (rectangular, non-overlapping) blit function first, then use that as a basis for specific versions like...
Forum: Coders. Asm / Hardware 22 December 2019, 18:27
Replies: 19
Views: 743
Posted By deimos
That is very comprehensive, thank you. I'm...

That is very comprehensive, thank you.

I'm extracting a variable part of my source image strip [ N E S W] - if I'm facing north I'll extract essentially the left quarter [ N ], if I'm facing south...
Forum: Coders. Asm / Hardware 22 December 2019, 16:39
Replies: 19
Views: 743
Posted By deimos
I think this is where I am at the moment. Things...

I think this is where I am at the moment. Things seems to work, except for shift values of 12 to 15 I get wrapped around garbage values appearing at the left.


static void BlitterCopy(WORD start)...
Forum: Coders. Asm / Hardware 22 December 2019, 15:36
Replies: 19
Views: 743
Posted By deimos
My shifting is the opposite of what I expected: ...

My shifting is the opposite of what I expected:


WORD shift = 15 - (start & 0x000f);


Which means that stuff is wrapping round on the left now, but I'm getting closer.
Forum: Coders. Asm / Hardware 22 December 2019, 15:22
Replies: 19
Views: 743
Posted By deimos
Ok, so there should probably be some sort of...

Ok, so there should probably be some sort of licensing scheme for pointer arithmetic.

My shifting is still not right though, working on that.
Forum: Coders. Asm / Hardware 22 December 2019, 14:48
Replies: 19
Views: 743
Posted By deimos
This is my new source image - no dependency on...

This is my new source image - no dependency on how it aligns, later I'll redraw it to match what the blitter wants.

Right now all I expect is to be able to take parts of it to blit to my fixed...
Forum: Coders. Asm / Hardware 22 December 2019, 14:15
Replies: 19
Views: 743
Posted By deimos
I could rotate my source image to simplify the...

I could rotate my source image to simplify the situation, I suppose?
Forum: Coders. Asm / Hardware 22 December 2019, 13:52
Replies: 19
Views: 743
Posted By deimos
Well, sure, but I was under the impression that...

Well, sure, but I was under the impression that the blitter made it easy, and I managed to blit the artificial horizon, which included a mask to make it circular, with no problem at all. It's just...
Forum: Coders. Asm / Hardware 22 December 2019, 13:12
Replies: 19
Views: 743
Posted By deimos
I did not expect it to be this hard.

I did not expect it to be this hard.
Forum: Coders. Asm / Hardware 22 December 2019, 12:41
Replies: 19
Views: 743
Posted By deimos
Ok. It sounds like I should first tackle the...

Ok. It sounds like I should first tackle the shifting and make sure that I can get an unmasked blit happening correctly, but with extra pixels, then come back to the masks to remove the unwanted...
Forum: Coders. Asm / Hardware 22 December 2019, 11:12
Replies: 19
Views: 743
Posted By deimos
Calculations for a simple blit?

I'm having trouble figuring out all the values I need for this, and maybe it will be less frustrating to just ask than to try and work it all out myself.

For context, this is for the direction...
Forum: Hardware mods 21 December 2019, 16:04
Replies: 278
Views: 21,652
Posted By deimos
If it's just this one check, perhaps you can...

If it's just this one check, perhaps you can MacGyver a continuity check with a bulb or LED and a battery?
Forum: Coders. Asm / Hardware 20 December 2019, 20:14
Replies: 6
Views: 553
Posted By deimos
Right. Ok.

Right.

Ok.
Forum: Coders. Asm / Hardware 20 December 2019, 19:54
Replies: 6
Views: 553
Posted By deimos
My experiments so far seem to indicate that it...

My experiments so far seem to indicate that it doesn't work, any deviation from the norm results in garbage, but that might just be me.

I can understand requiring A, but I don't see why C would be...
Forum: Coders. Asm / Hardware 20 December 2019, 16:57
Replies: 6
Views: 553
Posted By deimos
Blitter clearing a line without src channels?

I'm clearing my scratch buffer after drawing a line into it. I don't need to just clear only the bits that have been previously been set, I'm happy to just write entire words full of zeros.

Will I...
Forum: Coders. General 20 December 2019, 16:38
Replies: 17
Views: 702
Posted By deimos
Thank you, I've gone and made that change, but...

Thank you, I've gone and made that change, but I've kept it as two assignment lines for now as I want to keep the order of the two assignments consistent while I'm still testing.

Edit:

I've...
Forum: Coders. General 20 December 2019, 15:19
Replies: 17
Views: 702
Posted By deimos
I've cleaned up the code the best I can and also...

I've cleaned up the code the best I can and also used it to make the artificial horizon on the instrument panel work.

Executable attached for anyone interested.

The code now looks like this,...
Forum: Coders. C/C++ 18 December 2019, 19:27
Replies: 13
Views: 744
Posted By deimos
Right. That makes sense, I recognise those words,...

Right. That makes sense, I recognise those words, but it only works if it's really a constant:


kludge = (WORD []) { x, y };


Isn't legal, right?
Forum: Coders. C/C++ 18 December 2019, 19:16
Replies: 13
Views: 744
Posted By deimos
What should happen to the { 0, 1 }? Where is it?...

What should happen to the { 0, 1 }? Where is it? In the functions stack frame? Or is it created within the if statement's block?
Forum: Coders. C/C++ 18 December 2019, 12:25
Replies: 13
Views: 744
Posted By deimos
Ok, thanks, I won't risk it. Edit: ...

Ok, thanks, I won't risk it.

Edit:

Decided to use a struct instead:


typedef struct {
BOOL required;
WORD start;
Forum: Coders. C/C++ 18 December 2019, 11:08
Replies: 13
Views: 744
Posted By deimos
Is this legal C?

Is this correct / legal C99, and will it do what I expect?



void AFunction(void) {
WORD * kludge = NULL;

// ...

if (topLeft) {
Forum: Coders. General 17 December 2019, 17:51
Replies: 17
Views: 702
Posted By deimos
I've now implemented that, and it works sweet,...

I've now implemented that, and it works sweet, and I think is probably pretty efficient.

But my code is a complexity of nested if statements for all the different cases of how the horizon line...
Forum: Coders. General 16 December 2019, 20:13
Replies: 17
Views: 702
Posted By deimos
I think option 1 is conceptually similar to my...

I think option 1 is conceptually similar to my idea of splitting the blit.

I'm not understanding your option 2 though. Exactly why would we want to do that?

Edit: Oh, post-process the result......
Forum: Coders. General 16 December 2019, 18:38
Replies: 17
Views: 702
Posted By deimos
Drawing it shifted introduces complexities, like...

Drawing it shifted introduces complexities, like clipping and corner cases that I really want to avoid.
Forum: Coders. General 16 December 2019, 18:35
Replies: 17
Views: 702
Posted By deimos
If we're talking about the same thing, that line...

If we're talking about the same thing, that line is to turn off the fill that's FCI carried in, so it doesn't work in the example I gave.

Changing my poly-clipper to skip those lines sounds...
Showing results 1 to 40 of 536

 
Forum Jump

All times are GMT +2. The time now is 05:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.13331 seconds with 10 queries