Image mapping : Peer review needed

The Oric video chip is not an easy beast to master, so any trick or method that allows to achieve nice visual results is welcome. Don't hesitate to comment (nicely) other people tricks and pictures :)
User avatar
jbperin
Flight Lieutenant
Posts: 268
Joined: Wed Nov 06, 2019 11:00 am
Location: Valence, France

Re: Image mapping : Peer review needed

Post by jbperin »

It's soon the week-end.

The sky is blue and the grass is green on Oric Planet.

Image

User avatar
xahmol
Flying Officer
Posts: 207
Joined: Sun Jun 28, 2020 7:32 pm
Location: Utrecht, The Netherlands
Contact:

Re: Image mapping : Peer review needed

Post by xahmol »

Nice! (and have a great weekend)

User avatar
Symoon
Archivist
Posts: 1947
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France
Contact:

Re: Image mapping : Peer review needed

Post by Symoon »

Looking great!
Is this already ASM-optimised, or is there potential room for speed improvement?

User avatar
iss
Wing Commander
Posts: 1241
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Image mapping : Peer review needed

Post by iss »

Congrats! And I'll second @Symoon?

User avatar
Dbug
Site Admin
Posts: 3644
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Image mapping : Peer review needed

Post by Dbug »

Even at the same speed, not erasing before redrawing would improve the quality perception quite a lot: Just draw each column over the current screen content, and just continue in green or blue above and below :)

User avatar
kenneth
Flight Lieutenant
Posts: 382
Joined: Fri Nov 26, 2010 9:11 pm
Location: France PdD
Contact:

Re: Image mapping : Peer review needed

Post by kenneth »

With colors !
Impressive !

User avatar
Chema
Game master
Posts: 2779
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Image mapping : Peer review needed

Post by Chema »

Incredible. Awesome.

User avatar
jbperin
Flight Lieutenant
Posts: 268
Joined: Wed Nov 06, 2019 11:00 am
Location: Valence, France

Re: Image mapping : Peer review needed

Post by jbperin »

xahmol wrote:
Fri Feb 26, 2021 4:24 pm
Nice! (and have a great weekend)
Thank you. I'm going to take profits of the blue sky ;-)
Symoon wrote:
Fri Feb 26, 2021 5:19 pm
Looking great!
Is this already ASM-optimised, or is there potential room for speed improvement?
iss wrote:
Fri Feb 26, 2021 5:38 pm
Congrats! And I'll second @Symoon?
There remain some room for speed improvement but they are starting to be small. I need to get the code reviewed by Dbug. He usually find some unespected source of gain.
Dbug wrote:
Fri Feb 26, 2021 5:49 pm
Just draw each column over the current screen content, and just continue in green or blue above and below :)
That's a very very good idea !! Once again you give me the key to find some smart enhancement. Thank you ;-)
kenneth wrote:
Fri Feb 26, 2021 5:53 pm
With colors !
Impressive !
Chema wrote:
Fri Feb 26, 2021 5:55 pm
Incredible. Awesome.
Thank you kenneth and Chema. I'm glad to impress you :twisted:

User avatar
jbperin
Flight Lieutenant
Posts: 268
Joined: Wed Nov 06, 2019 11:00 am
Location: Valence, France

Re: Image mapping : Peer review needed

Post by jbperin »

Someone tells me that this file doesn't work because of a header format error.
raycastCEO.tap
(28.06 KiB) Downloaded 35 times
Are you experiencing the same issue ?

Nota: The collision detection is a bit "severe" so we can't move when we get too closed from walls.

User avatar
jbperin
Flight Lieutenant
Posts: 268
Joined: Wed Nov 06, 2019 11:00 am
Location: Valence, France

Re: Image mapping : Peer review needed

Post by jbperin »

It works !!

Jede tested on real Hardware !



Thank you so much Jede !!

User avatar
ibisum
Wing Commander
Posts: 1434
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Image mapping : Peer review needed

Post by ibisum »

Very, very nice to see this proceeding at a rapid clip. Yes, seems like its time for a code review .. certainly looks performant, but I bet DBug finds some tricks ..

User avatar
jbperin
Flight Lieutenant
Posts: 268
Joined: Wed Nov 06, 2019 11:00 am
Location: Valence, France

Re: Image mapping : Peer review needed

Post by jbperin »

ibisum wrote:
Sat Feb 27, 2021 12:44 pm
, but I bet DBug finds some tricks ..
Correct.

He found some veey nice ideas of optimisation. and enhancement . I'm coding some of them.

I think there might be some.good surprise soon .

Stay tuned.

User avatar
jbperin
Flight Lieutenant
Posts: 268
Joined: Wed Nov 06, 2019 11:00 am
Location: Valence, France

Re: Image mapping : Peer review needed

Post by jbperin »

I took into account numerous remarks from Dbug about optimisation and from Adrian Brown and Jonas S Karlsson for redrawing strategy.

Here's what it looks like now:
raycast.gif
raycast.gif (323.83 KiB) Viewed 639 times
And thanks to the work of Hialmar you can even ;..

>>> PLAY IT ONLINE <<<

You're going to be redirected to a page where you have to click on the raycast.tap link.
Then it's going to load the demo into the javascript oricutron (a bit slowly because it is hosted at home).

- Up and Down Arrow to go forward / backward
- Left and Rght Arrow to turn
- W+X to shift

PS: Dbug still has some very smart ideas on how to speed up the rendering ... but the problem is that he has more good ideas than I have courage.

User avatar
Symoon
Archivist
Posts: 1947
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France
Contact:

Re: Image mapping : Peer review needed

Post by Symoon »

Amazing!
That's a great improvement.

User avatar
ibisum
Wing Commander
Posts: 1434
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Image mapping : Peer review needed

Post by ibisum »

Wow, its brilliant - very playable!

Post Reply