October 24, 2021, 23:31:29

Author Topic: Tiny PicoCad Viewer  (Read 627 times)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Tiny PicoCad Viewer
« on: September 27, 2021, 11:56:14 »
Tiny PicoCad viewer written totally in wonkey in 2d (no 3d being used). view files with textures, flat or wireframe plus load and save new textures...

Nearly ready fo release on Widows and MacOs  ;D




Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2779
  • I mostly code at night... Mostly.
    • SyntaxBomb - Indie Coders
Re: Tiny PicoCad Viewer
« Reply #1 on: September 28, 2021, 00:53:41 »
Another impressive piece of work. Is there a tutorial on how you output so much work? ;D
Mac mini ( 2018 / 2020 ), 3 GHz 6-Core Intel Core i5, 16 GB 2667 MHz DDR4, 1TB NVMe, eGPU Radeon Pro 580 8 GB, LG Ultragear 27GL83A-B 27 Inch
Mac mini (2020 ), M1 SoC, 8 GB LPDDR4, 512GB NVMe 
Commodore VIC-20, 1.1Mhz MOS 6502 CPU, 5KB RAM, VIC ( 6560 ) GPU

Until the next time.

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Re: Tiny PicoCad Viewer
« Reply #2 on: September 28, 2021, 08:08:16 »
well...

The UI already existed - just need a bit of tinkering
Also the 2d3d all existed, so I just needed to write the parser for picocad - that took a few days :(

And this morning it was working out how the bugger I did basic lighting oohh and updating the shaders a bit and the final result complete with 2d texture warping (cause all of it is just 2d triangles):

light flat shaded:


and with textures added

Offline Derron

  • Hero Member
  • *****
  • Posts: 3674
Re: Tiny PicoCad Viewer
« Reply #3 on: September 28, 2021, 08:21:24 »
What is up with the doors? they look a bit "warped" in the center - is the "shading"-screenshot not showing the "dent" - or is the texture bend a bit there?

Could the textures be smoothed optionally? To avoid overly jagged edges.
Or would it help to scale up the texture (double each pixel, so no smoothing) and then distortion would look a bit smoother as there are more "pixels" (unsmoothed) to move around? Dunno if the GPU already does something in the background - so ignore that if it wont work.



bye
Ron

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Re: Tiny PicoCad Viewer
« Reply #4 on: September 28, 2021, 08:38:27 »
no GPU was harmed during this process...
Quote
2d texture warping (cause all of it is just 2d triangles)

Offline markcwm

  • Hero Member
  • *****
  • Posts: 508
Re: Tiny PicoCad Viewer
« Reply #5 on: September 28, 2021, 22:44:55 »
Hi Adam, good job. Very nice little model format. It looks totally 3D.

This is very similar to Hezkore's Blitzmax voxel.mod which loads Magicavoxel .vox files. It's fake 3D as well.

I see the texture warping a bit but it's hardly noticeable.

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Re: Tiny PicoCad Viewer
« Reply #6 on: October 01, 2021, 14:16:45 »
Thanks for that - do you have a download for the hezcore .vox importer?

I've been adding and tidying up the feature set with support for base lighting, inbuilt vertex colors, wireframe, flat shading, etc and now loading saving and opening textures:


 - plus getting permission from the PicoCad Author for use of one of his models for the icon \o/

Offline markcwm

  • Hero Member
  • *****
  • Posts: 508
Re: Tiny PicoCad Viewer
« Reply #7 on: October 01, 2021, 20:38:55 »
OK, I've uploaded it to my Blitz files because it's not available on Hezkore's BitBucket anymore, it's also not in Hezkore's GitHub repos. I've no idea why but one day all his Blitzmax code was all gone. Luckily I saved it all before that. :)

Hezkore has it licensed as public domain so there should be no problem me sharing it. It seems to be complete and ready for use. There are 9 examples and an advanced demo, no docs. It uses Max2D so is cross-platform.
Download

And here's a screenie of the demo and 2 examples.

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Re: Tiny PicoCad Viewer
« Reply #8 on: October 02, 2021, 08:02:13 »
thanks for this - brings back memories. both Hezkore and myself had similar things going on at the time. I'll see about digging through some of my code... :)

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Re: Tiny PicoCad Viewer
« Reply #9 on: October 03, 2021, 12:32:00 »
ok. It's finally ready  ;D
https://adamstrange.itch.io/picoview

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2479
Re: Tiny PicoCad Viewer
« Reply #10 on: October 04, 2021, 10:36:41 »
This is soo good I just had to share it.

PicoView went live yesterday and it's already being used. Here's the first pic of someone using it...  :))

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal