Welcome, Guest. Please login or register.


Author Topic: Raytrace (Read 39741 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Raytrace
« Reply #60 on: 2024.February.23. 17:46:22 »
Találtam egy szórakoztató videót a sugárkövetésről Basicben egy CPC-n. Egy DevilMarkus becenevű CPC-guru 2021-ben készült munkáiról van szó.

Aztán kerestem itt egy régi szavas témát, ami ide hozott ebbe a magyar témába.

Kipróbáltam a rövid Basic listákat a CPCemu-n, és lassan rajzolnak egy jelenetet.... Még mindig nem tanulmányoztam őket, hogy megtaláljam, hogyan működnek.

------

I have found a fun video related to ray-tracing in Basic on a CPC. It is about some works made in 2021 by a CPC guru nicknamed DevilMarkus

Then, I have search here an old thread with the word, that has brought me here to this Hungarian topic.

I have tried the short Basic listings on the CPCemu and they slowly draw a scene.... I still have not studied them to find how they work.

[ Guests cannot view attachments ]




Offline geco

  • EP addict
  • *
  • Posts: 7113
  • Country: hu
    • Támogató Támogató
Re: Raytrace
« Reply #61 on: 2024.February.23. 20:23:08 »
Láttam én is, marha jó :), tuti meg lehet csinálni IS Basicben is.

I have seen it also, very good :), i am sure it can be done in IS Basic also.
« Last Edit: 2024.March.02. 08:02:28 by szipucsu »

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Raytrace
« Reply #62 on: 2024.February.23. 22:47:53 »
A listákon nem látok problémát, de nem alkalmasak a ZZZIP-re, mert lebegőpontos számokat használnak.


I see no problems on the listings, but they are not apt for ZZZIP, because they use floating point numbers.

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Raytrace
« Reply #63 on: 2024.February.26. 10:24:22 »
A programot már átkonvertáltam IS-Basic-ra, de először az EP felbontásokhoz és színmódokhoz kell igazítanom.



Ez egy színes nézet a CPCemu-tól:


-----------------

I have already converted the program to IS-Basic, but first I have to fit it to the EP resolutions and colour modes.



This is a colour view from the CPCemu:

[ Guests cannot view attachments ]

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Raytrace
« Reply #64 on: 2024.February.27. 00:06:13 »
Sorry, only in English:

My first EP version. It was easy to convert, but it needs some adjustments on resolutions and colours.

I didn't know that on CPC(and on MSX?) you can manage at the same time a matrix and a numeric variable with the very same name. T and T(n), for example, are different variables.... It is annoying. I converted T to TT, but it not always has worked because then a TT var was also used... I was forced to convert this TT to some other pair of letters not used...

I suspect that this listing originally comes from MSX, because Microsoft Basic ignores third and forward letters of the name of a variable. And also for the original graphics mode used, SCREEN 8,0.

[ Guests cannot view attachments ]

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: Raytrace
« Reply #65 on: 2024.February.27. 18:54:39 »
The Basic raytracing routine comes from the MSX scene, from NYYRIKKI, a Finnish genius involved on every MSX related improvement, also on SymbOS.

Compare the other four listings with this one.

He also made a complete short video only with an MSX.

Offline geco

  • EP addict
  • *
  • Posts: 7113
  • Country: hu
    • Támogató Támogató
Re: Raytrace
« Reply #66 on: 2024.February.28. 14:53:35 »
Looks promising :)