3D cube image with textures?

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17

3D cube image with textures?

by SegFault22 » Fri Aug 10, 2012 08:21

Hey all, I have seen some images here and there that look similar to the ones of the topic post for the MoreOres mod, like so:
Image
I would like to know if there is a way to make custom images like this outside of minetest, and if so, what would one do to go about generating these images (special trick with rotating images or something) or where would someone find a ''program'' that is capable of making images like this?
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Fri Aug 10, 2012 08:27

I got them using some crude hacks in the C++ code. The code is in my GameWiki.

If you find a better way please let me know.
 

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17

by SegFault22 » Fri Aug 10, 2012 08:53

Ah, how can I get that code to make an image?
Last edited by SegFault22 on Fri Aug 10, 2012 08:57, edited 1 time in total.
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Fri Aug 10, 2012 09:40

You may also use this .sh script
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
w1=$((`identify -ping -format %w "$1"`-1)).5
h1=$((`identify -ping -format %h "$1"`-1)).5
w2=$((`identify -ping -format %w "$2"`-1)).5
h2=$((`identify -ping -format %h "$2"`-1)).5
w3=$((`identify -ping -format %w "$3"`-1)).5
h3=$((`identify -ping -format %h "$3"`-1)).5

convert -matte \
     \( $1 -rotate 90 -brightness-contrast -13 -matte -virtual-pixel transparent \
        +distort Affine "0.5,$h1 0.5,0.5   0.5,0.5 -14.5,-8  $w1,$h1 14.5,-8" \) \
     \( $2  -matte -virtual-pixel transparent \
        +distort Affine "$w2,0.5 0.5,0.5   0.5,0.5 -14.5,-8  $w2,$h2 0.5,16.5" \) \
     \( $3 -brightness-contrast -25   -matte -virtual-pixel transparent \
        +distort Affine   "0.5,0.5 0.5,0.5   0.5,$h3 0.5,16.5  $w3,0.5 14.5,-8" \) \
     -background transparent -layers merge +repage \
     isometric_cube.png


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./cube.sh default_furnace_side.png default_furnace_front.png default_furnace_side.png

will produce this image Image
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Aug 10, 2012 09:48

 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Fri Aug 10, 2012 11:12

Xyz, I don't suppose you have an imagemagick script that supports node boxes?
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Fri Aug 10, 2012 11:26

cornernote wrote:Xyz, I don't suppose you have an imagemagick script that supports node boxes?

I think that's impossible with only imagemagick.
 

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17

by SegFault22 » Sat Aug 11, 2012 19:06

Thank you, I'll try the .sh script now...
er, how would one ''use'' it in windows? I can't seem to find how...
Last edited by SegFault22 on Sat Aug 11, 2012 19:09, edited 1 time in total.
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 13 guests