English Amiga Board


Go Back   English Amiga Board > Search Forums

Showing results 1 to 40 of 554
Search took 0.05 seconds.
Search: Posts Made By: deimos
Forum: Coders. C/C++ 19 June 2020, 11:33
Replies: 83
Views: 12,050
Posted By deimos
You need to specify them, so probably "d0", "d1",...

You need to specify them, so probably "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "cc", "memory".

You can still do the normal movem thing to save them yourself, if you prefer, but the compiler...
Forum: Coders. C/C++ 19 June 2020, 08:38
Replies: 83
Views: 12,050
Posted By deimos
This is how I do it: void...

This is how I do it:


void ClipAndFillPolygon2D(const UWORD n, const Point2D * polygon, const UWORD colour) {
WaitForBlitter();

{
register APTR * _a0 asm("a0") =...
Forum: Coders. Language 08 June 2020, 13:23
Replies: 15
Views: 1,081
Posted By deimos
It is nothing to do with your abilities or our...

It is nothing to do with your abilities or our estimation of them, it is simply that it is not necessary to use assembly language to do good, fast, 3D graphics, particularly with how good modern...
Forum: Coders. Language 03 June 2020, 10:33
Replies: 15
Views: 1,081
Posted By deimos
I'd recommend this:...

I'd recommend this: http://eab.abime.net/showthread.php?t=98525

I have written a nearly decent 3D system using it, the start of a flight simulator game, 90% C (using gcc), 10% assembler (using...
Forum: Coders. Scripting 27 May 2020, 12:23
Replies: 15
Views: 598
Posted By deimos
Carriage return from the echo? Can you add an...

Carriage return from the echo? Can you add an echo $foo to confirm?
Forum: Coders. C/C++ 11 May 2020, 16:17
Replies: 83
Views: 12,050
Posted By deimos
But GCC 10.1 is only 4 days old!

But GCC 10.1 is only 4 days old!
Forum: Coders. C/C++ 08 May 2020, 14:48
Replies: 83
Views: 12,050
Posted By deimos
Nice. Thank you.

Nice. Thank you.
Forum: Coders. Asm / Hardware 16 April 2020, 18:32
Replies: 18
Views: 1,461
Posted By deimos
Gosh only knows what that really means, are you...

Gosh only knows what that really means, are you using a full, unrestricted version of ASM-One?
Forum: Coders. Asm / Hardware 16 April 2020, 18:04
Replies: 18
Views: 1,461
Posted By deimos
Looking at the ASM-One manual, it says that code...

Looking at the ASM-One manual, it says that code containing XREFs or XDEFs cannot be directly executed. Is there a different compile only command that will create just an object file for you to link...
Forum: News 16 March 2020, 16:23
Replies: 592
Views: 97,780
Posted By deimos
I'd buy a kit. And find a way to let people who...

I'd buy a kit. And find a way to let people who are still waiting downgrade to a kit.

But then, someone has to write instructions.

But also, kits don't tend to get warranties, so they've got...
Forum: Retrogaming General Discussion 06 March 2020, 19:22
Replies: 145
Views: 10,827
Posted By deimos
We need to roll back the clock and get a QNX...

We need to roll back the clock and get a QNX style real time micro kernel, on a processor built from scratch to ensure that process isolation is enforced all the way down and even further, if there's...
Forum: Coders. General 05 March 2020, 16:55
Replies: 4
Views: 589
Posted By deimos
You never set vc.

You never set vc.
Forum: Coders. General 02 March 2020, 11:07
Replies: 14
Views: 1,478
Posted By deimos
It's totally up to you. What kind of effect do...

It's totally up to you. What kind of effect do you want?

EDIT:

https://i.stack.imgur.com/Qi0UI.png

In this image the "near plane" or "plane of projection" is your computer monitor. Imagine...
Forum: Coders. General 02 March 2020, 07:07
Replies: 14
Views: 1,478
Posted By deimos
Well, I think wikipedia hasn't given you the...

Well, I think wikipedia hasn't given you the best explanation.

You, your eye, your camera, does move, but the final step of the matrix stuff is the "camera transform", which moves and spins...
Forum: Coders. General 01 March 2020, 20:20
Replies: 14
Views: 1,478
Posted By deimos
I mean the distance between you and the "viewing...

I mean the distance between you and the "viewing surface", i.e. the screen.

The way I do it (and other people are welcome to tell me why I'm wrong), is to use pixels as the unit size for...
Forum: Coders. General 01 March 2020, 17:19
Replies: 14
Views: 1,478
Posted By deimos
Benefits other than performance, such as knowing...

Benefits other than performance, such as knowing that your polygons are always planer, things you probably know.



That description of the perspective transform seems overly complex for what is...
Forum: Coders. General 29 February 2020, 16:33
Replies: 14
Views: 1,478
Posted By deimos
I think the smarter thing would be to arrange it...

I think the smarter thing would be to arrange it such that your polygons are always convex, which is easy if you're in control. I think you'd get the most benefit from reducing the number of polygons...
Forum: Coders. Asm / Hardware 07 February 2020, 19:15
Replies: 9
Views: 587
Posted By deimos
From my experiences a few months ago, I'd say...

From my experiences a few months ago, I'd say don't.

But if you do, then it's not hard to build a "linked list" of copper instructions to do your blitting, where the links are COPJMP2...
Forum: Coders. General 31 December 2019, 15:28
Replies: 13
Views: 1,257
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, 18:59
Replies: 2
Views: 795
Posted By deimos
Nice one. Thank you.

Nice one. Thank you.
Forum: Coders. General 30 December 2019, 16:53
Replies: 13
Views: 1,257
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, 02:09
Replies: 13
Views: 1,257
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, 17:40
Replies: 13
Views: 1,257
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, 16:59
Replies: 13
Views: 1,257
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, 15:03
Replies: 13
Views: 1,257
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, 13:33
Replies: 13
Views: 1,257
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, 16:37
Replies: 13
Views: 1,257
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, 15:57
Replies: 13
Views: 1,257
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, 18:01
Replies: 18
Views: 817
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, 20:43
Replies: 1
Views: 421
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, 14:28
Replies: 19
Views: 977
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, 11:40
Replies: 18
Views: 817
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, 20:51
Replies: 19
Views: 977
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, 19:15
Replies: 19
Views: 977
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, 17:27
Replies: 19
Views: 977
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, 15:39
Replies: 19
Views: 977
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, 14:36
Replies: 19
Views: 977
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, 14:22
Replies: 19
Views: 977
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, 13:48
Replies: 19
Views: 977
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, 13:15
Replies: 19
Views: 977
Posted By deimos
I could rotate my source image to simplify the...

I could rotate my source image to simplify the situation, I suppose?
Showing results 1 to 40 of 554

 
Forum Jump

All times are GMT +2. The time now is 11:44.


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