Gury Posted November 4, 2023 Author Share Posted November 4, 2023 Great effects! Thanks for the code... 👍 Quote Link to comment Share on other sites More sharing options...
Gury Posted November 4, 2023 Author Share Posted November 4, 2023 On 10/26/2023 at 11:11 AM, tebe said: unit GRAPH update: DrawPoly, FillPoly polygon.obx 2.6 kB · 16 downloads polygon.pas 646 B · 4 downloads That's fast polygon fill routine example. Great! 👍 1 Quote Link to comment Share on other sites More sharing options...
tebe Posted November 6, 2023 Share Posted November 6, 2023 example of operations on an array with pointers to records (stars_ptr.pas) stars (Windows), stars_ptr (Atari XE/XL) stars.exe stars.pas stars_ptr.obx stars_ptr.pas 2 Quote Link to comment Share on other sites More sharing options...
tebe Posted November 6, 2023 Share Posted November 6, 2023 wormhole.obx wormhole.pas 2 Quote Link to comment Share on other sites More sharing options...
tebe Posted November 7, 2023 Share Posted November 7, 2023 draw_3d, works correctly on SINGLE type (Float) draw_3d.obx draw_3d.pas sierpinski_carpet.obx sierpinski_carpet.pas 5 Quote Link to comment Share on other sites More sharing options...
tebe Posted November 8, 2023 Share Posted November 8, 2023 How to generate 'realistic' bounce", by Bas van Gaalen bounce.obx bounce.pas 2 1 Quote Link to comment Share on other sites More sharing options...
Gury Posted November 9, 2023 Author Share Posted November 9, 2023 That's very realistic! Also in term of speed, nice example. 👍 Quote Link to comment Share on other sites More sharing options...
tebe Posted November 11, 2023 Share Posted November 11, 2023 flat_cube.obx flat_cube.pas 4 1 Quote Link to comment Share on other sites More sharing options...
Gury Posted November 13, 2023 Author Share Posted November 13, 2023 Great example... 💣 It's just a problem with garbage on the top when screen is switched before next cube rotation. I have standard configuration on Altira, 800XL 64K, Atari BASIC switched off. Quote Link to comment Share on other sites More sharing options...
+JAC! Posted November 13, 2023 Share Posted November 13, 2023 This is really a great example of how to combine Pascal with inline assembly. I think back to 30 years ago when I tried the same on my Amiga coding for my Atari (link). Now you can have this in readable Pascal code - awesome. 2 Quote Link to comment Share on other sites More sharing options...
tebe Posted November 29, 2023 Share Posted November 29, 2023 'dots_cross.pas' (plotter), cross compiled version (PC, Atari XE/XL) ; 'dots_v2.pas' optimized Atari XE/XL version dots_cross.exe dots_cross.obx dots_cross.pas dots_v2.obx dots_v2.pas 4 1 Quote Link to comment Share on other sites More sharing options...
+JAC! Posted November 29, 2023 Share Posted November 29, 2023 7 hours ago, tebe said: 'dots_cross.pas' (plotter), cross compiled version (PC, Atari XE/XL) ; 'dots_v2.pas' optimized Atari XE/XL version Is there a special reason form removing the "( )" in the V2? I would not expect it to have an impact on the speed. Quote Link to comment Share on other sites More sharing options...
tebe Posted November 30, 2023 Share Posted November 30, 2023 (edited) 1 hour ago, JAC! said: Is there a special reason form removing the "( )" in the V2? aesthetic brackets do not matter Edited November 30, 2023 by tebe 1 Quote Link to comment Share on other sites More sharing options...
tebe Posted December 10, 2023 Share Posted December 10, 2023 (edited) Mr.Oger.and.Dr.Sharky.Hunting.the.Jaguar https://demozoo.org/graphics/334168/ {$r vga.rc} uses crt, vbxe; const pic = VBXE_OVRADR; var xdl: txdl absolute VBXE_XDLADR+VBXE_WINDOW; begin if VBXE.GraphResult <> VBXE.grOK then begin writeln('VBXE not detected'); halt; end; SetHorizontalRes(VBXE.VGAMed); VBXEMemoryBank($80); xdl.rptl_ := 0; xdl.rptl := 240; poke(559,0); repeat until keypressed; VBXEOff; end. vga.zip Edited December 10, 2023 by tebe 2 Quote Link to comment Share on other sites More sharing options...
tebe Posted December 26, 2023 Share Posted December 26, 2023 (edited) The algorithm is based on the BASIC programs for BBC Micro by [Steve McCrea](https://twitter.com/Kweepa). improve Gr10Init(DISPLAY_LIST_ADDRESS, VIDEO_RAM_ADDRESS, 59, 4, 0); { Calculate ray direction (X,Y,Z) } { Here the perspective is provided by calculation of Z { with inverset square root function Z=1/Sqrt(L+1) } Z := iSqrt(X * X + Y * Y + 1); raytracer.obx raytracer.pas Edited December 26, 2023 by tebe 5 Quote Link to comment Share on other sites More sharing options...
tebe Posted December 28, 2023 Share Posted December 28, 2023 (edited) https://demozoo.org/graphics/332400/ kittens_dos64.atr (type VANS.EXE KITTENS.ANS) kittens_mydos.atr(select L, type DISPANSI.EXE) Press key W / S (move screen up/down) https://github.com/tebe6502/Mad-Pascal/tree/master/samples/a8/graph_vbxe_ansi kittens_dos64.atr kittens_mydos.atr Edited December 28, 2023 by tebe 4 Quote Link to comment Share on other sites More sharing options...
w1k Posted January 1 Share Posted January 1 doesnt work on latest altirra Quote Link to comment Share on other sites More sharing options...
tebe Posted January 1 Share Posted January 1 Quote Link to comment Share on other sites More sharing options...
dmsc Posted January 1 Share Posted January 1 Hi! I suspect he needs to enable VBXE support... Have Fun! 1 Quote Link to comment Share on other sites More sharing options...
tebe Posted April 5 Share Posted April 5 https://github.com/tebe6502/Mad-Pascal/tree/master/samples/a8/graph/polygon https://github.com/tebe6502/Mad-Pascal/blob/master/samples/a8/graph/polygon/polygon.pas polygon.obx 6 Quote Link to comment Share on other sites More sharing options...
tebe Posted April 15 Share Posted April 15 example of using the $eval directive var // Generate the 2D array used for the circles. Experiment! sqr : array of byte = [ {$eval DWIDTH,200,"255/(sqrt(power(:1-DWIDTH/2.5,2)*4+power(:2-HEI/2-20,2))+5)*32.0" } ]; data: array of byte = [ {$bin2csv smooth_data.bin} ]; tab40 : array of word = [ {$eval 200, ":1*DWIDTH"} ]; sinx: array of byte = [ {$eval 256, "(sin(:1/256.0*PI*2.0)*48+63)"} ]; grim.obx grim_source.7z 7 Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted Tuesday at 05:55 PM Share Posted Tuesday at 05:55 PM Hi, Any knows if there is a library or example to load a picture in other modern graphic modes then the .mic format like hip,cin,supercin, super pcin, supermin? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.