You are not logged in.
Lost Password?


Register To Post



 Bottom   Previous Topic   Next Topic

#1
Vb3dConverter
Posted on: 2/17 22:44
PVB Elite
Joined 2011/7/1
Germany
993 Posts
CoderContributorLong Time User (5 Years)Top10 PosterApp CoderPVBCC 2013 Entry
While developing Snatcher I wrote a number of tools to get stuff done. The one that sparked the most interest in the community was a tool that can convert 2D images to 3D VirtualBoy images if a respective depth map is drawn. I decided to make this tool available for everyone awhile ago but got annoyed by someone who kept requesting features. So, I stopped programming some time ago. However, I decided to put this out in it's current state. There are some features missing which I might add if this is actually put to use by someone.

There is some more info here:
http://www.planetvb.com/modules/newbb/viewtopic.php?topic_id=6068
http://www.planetvb.com/modules/newbb/viewtopic.php?topic_id=6060

Here is the lib I use:
https://www.codeproject.com/articles/2 ... ing-d-image-from-depthmap

Here is a video that shows how to draw depth maps:
https://www.youtube.com/watch?v=HVSf22VT1t4

Attach file:


001 Vb3dConverter.v1.0.0.0.zip.001 Size: 20,000.00 KB; Hits: 197
002 Vb3dConverter.v1.0.0.0.zip.002 Size: 9,187.50 KB; Hits: 187
Top

#2
Re: Vb3dConverter
Posted on: 2/17 23:39
Administrator
Joined 2000/1/8
Germany
2349 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Amazing! Playing with this right now.
Top

#3
Re: Vb3dConverter
Posted on: 2/18 1:35
VB Gamer
Joined 2005/12/1
Brazil
14 Posts
Long Time User (11 Years)
This is EXCELLENT! Congrats 4 the tool!
Top

#4
Re: Vb3dConverter
Posted on: 2/18 21:51
Administrator
Joined 2000/1/8
Germany
2349 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
I wanted to 3D-fy some flat images of our Platformer Demo using this tool but it did not work, the 3D images do not show up in the converter.

Do the graphics have to fulfill some requirements like a certain bit depth or something?

Attach file:



bmp  Level-1-House.bmp (26.18 KB)
1_58a8b3725895d.bmp 152X88 px

bmp  Level-1-House-DepthMap.bmp (26.18 KB)
1_58a8b3762cb30.bmp 152X88 px

bmp  Level-1-Tower.bmp (87.55 KB)
1_58a8b37b2efa3.bmp 224X200 px

bmp  Level-1-Tower-DepthMap.bmp (175.05 KB)
1_58a8b37e6521c.bmp 224X200 px
Top

#5
Re: Vb3dConverter
Posted on: 2/19 0:05
VB Gamer
Joined 1/31
Germany
29 Posts
Your files seem to have a blank alpha channel (and therefore are 4x 8 = 32bit). When I save them without alpha as 24bit (3x 8) I can use them in Vb3dConverter.
... very nice tool by the way - good job!
Top

#6
Re: Vb3dConverter
Posted on: 2/19 0:10
PVB Elite
Joined 2011/7/1
Germany
993 Posts
CoderContributorLong Time User (5 Years)Top10 PosterApp CoderPVBCC 2013 Entry
it has to be a 24bit rgb bitmap. Yours are 32bit. I might add a automatic conversion or at least some error output.

Attach file:



bmp  ori24.bmp (131.30 KB)
1709_58a8d4240e11d.bmp 224X200 px

bmp  dm24.bmp (131.30 KB)
1709_58a8d43b2c091.bmp 224X200 px
Top

#7
Re: Vb3dConverter
Posted on: 2/19 2:16
PVB Elite
Joined 2003/7/26
USA
1374 Posts
PVBCC EntryCoderContributorSpecial AchievementTop10 PosterHOTY09 EntryLong Time User (13 Years) App Coder20+ Game RatingsPVBCC 2013 Entry
This is a great tool! While you're in there digging around in the file handling code, I have a couple other suggestions:

1. It's kinda hard to iterate, because the program locks the input files until you exit, even if you load new files (so they can't be overwritten by the paint program). Bonus: save the selected settings for next time.

2. A "lite" version that doesn't include gccvb and mednafen (and the two test buttons) might be a good idea.

3. Pixel art is generally small, and monitors are big and have lots of pixels; maybe a preview zoom function is in order? Nothing fancy... just a 2x and maybe a 3x would be enough.

4. (Low priority) Controls for remapping the depth map's levels would be nice. I'm thinking low and high input levels, low and high output levels, and a gamma function (throw in compression and expansion if you want more to do ). Calculating the above in floating-point and converting back to 8-bit gray at the end would be preferable.
Top

#8
Re: Vb3dConverter
Posted on: 2/19 9:31
PVB Elite
Joined 2011/7/1
Germany
993 Posts
CoderContributorLong Time User (5 Years)Top10 PosterApp CoderPVBCC 2013 Entry
Quote:

RunnerPack wrote:
This is a great tool! While you're in there digging around in the file handling code, I have a couple other suggestions:

1. It's kinda hard to iterate, because the program locks the input files until you exit, even if you load new files (so they can't be overwritten by the paint program). Bonus: save the selected settings for next time.

2. A "lite" version that doesn't include gccvb and mednafen (and the two test buttons) might be a good idea.

3. Pixel art is generally small, and monitors are big and have lots of pixels; maybe a preview zoom function is in order? Nothing fancy... just a 2x and maybe a 3x would be enough.

4. (Low priority) Controls for remapping the depth map's levels would be nice. I'm thinking low and high input levels, low and high output levels, and a gamma function (throw in compression and expansion if you want more to do ). Calculating the above in floating-point and converting back to 8-bit gray at the end would be preferable.


I don't fully get Point 4. The others are on my todo list. However, I won't change anything if this tool is not put to use. I really don't want to add features just to have a cool tool that no one needs. So, I would ask everyone to post here if they found it useful.

Also, there are some obvious things that can be improved. However, I would rather have a todo list of things that are useful in actual projects than a list of features that are nice to have.

I might also make this open source at some point.
Top

#9
Re: Vb3dConverter
Posted on: 2/19 14:49
Administrator
Joined 2000/1/8
Germany
2349 Posts
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Thanks guys, it's working for me now! The result for the tower looks a bit weird, but maybe it's not the right kind of image to throw at the converter. I should try a different one.
Top

#10
Re: Vb3dConverter
Posted on: 2/19 16:09
VB Gamer
Joined 1/31
Germany
29 Posts
Quote:

KR155E schrieb:
Thanks guys, it's working for me now! The result for the tower looks a bit weird, but maybe it's not the right kind of image to throw at the converter. I should try a different one.

Maybe try the map attached with depth of 12 and turn off scaling. It's an accurate orthogonal depth rendering of a 3d cylinder. This looks more 'rounded' than the other map.
Anyway, repetitive patterns often cause problems in 3d. If you have only this pattern as a reference, Your brain will find more than one solution to merge it to a somehow working 3d image and therefore getting confused, which pair of tiles represents the "real depth". If this is put into an artwork with other objects/details/3d references (like windows, birds or clouds), it should work much better ...

Edit: Oh! Just earned my second star with this post - I'm a "VB Gamer" now ...

Attach file:



bmp  3d-cylinder_depth.bmp (131.30 KB)
14288_58a9b4f65a949.bmp 224X200 px
c4d Tower_z-map.c4d Size: 181.13 KB; Hits: 9
Edited by StereoBoy on 2017/2/19 16:21
Edited by StereoBoy on 2017/2/19 16:22
Edited by StereoBoy on 2017/2/19 16:25
Edited by StereoBoy on 2017/2/19 16:26
Edited by StereoBoy on 2017/2/19 16:28
Top

 Top   Previous Topic   Next Topic


Register To Post