help with rendering images
-
localmotion34
- Enthusiast

- Posts: 665
- Joined: Fri Sep 12, 2003 10:40 pm
- Location: Tallahassee, Florida
help with rendering images
ok i know that PB can make games and all, that is take resource files, pictures, 3d graphics and render it on a screen to make a world. now, in my PHD research, we cut sections of tissue 1/1000 of a millimeter thick. what i want to be able to do is take a picture of those sections as a TIFF file, and then reassemble them into a digital model of the tissue. since PB could open the file, draw it on the screen, and give it an actual thickness, isnt it possible to take maybe 100-150 of them, open them, assign a thickness, and draw them all on the screen to render a "world" actually inside the tissue. then youd be able to "walk" around that world like a game character would like in "restriced area". isnt that game just a bunch of image and graphic files all drawn together to make a world. cant you do the same thing with my tissue sections? any ideas?
Code: Select all
!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
a 3d world consists of connecting polygons that make up an object that has volume. 2d Images do not have volume as they are 2d (height + width). You should look into using voxels, that is volumetric pixels, that is used in the medical field for what you describe. Also Directx 9 supports Volume Textures, something you might want to look into.
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.
(hey, you crossposted!)
anyway, those images *have* depth, as every slice has a certain thickness, one could create objects with a height parameter, size the same as slice thickness, vertical location depending on slice number
anyway, those images *have* depth, as every slice has a certain thickness, one could create objects with a height parameter, size the same as slice thickness, vertical location depending on slice number
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
