PixelTool - Voxel-based Vehicle Editor/Renderer

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Zephyris »

YNM wrote:Suggestions?
{"width":32,"height":10,"depth":12,"pixels":[[[0,15,15,15,15,15,67,19,19,0],[9,15,15,15,15,15,67,19,19,0],[9,15,15,4,4,4,4,4,19,0],[9,15,4,4,4,4,4,4,18,0],[9,4,4,14,14,14,14,4,17,0],[9,4,4,14,17,17,14,4,16,0],[9,4,4,14,18,17,14,4,16,0],[9,4,4,14,14,14,14,4,17,0],[9,15,4,4,4,4,4,4,18,0],[9,15,15,4,4,4,4,4,19,0],[9,15,15,15,15,15,67,19,19,0],[0,15,15,15,15,15,67,19,19,0]],[[10,15,15,17,17,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[5,15,15,15,15,14,67,19,19,0],[0,15,15,4,4,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,10],[10,15,15,14,17,14,67,19,19,10],[10,15,15,14,18,14,67,19,19,10],[10,15,15,14,14,14,67,19,19,10],[0,15,15,4,4,14,67,19,19,9],[5,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,17,17,14,67,19,19,0]],[[10,15,15,13,13,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[5,15,15,15,15,14,67,19,19,0],[0,15,15,4,4,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,10],[9,15,15,14,17,14,67,19,19,9],[9,15,15,14,18,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,10],[0,15,15,4,4,14,67,19,19,9],[5,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,13,13,14,67,19,19,0]],[[10,0,0,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[0,15,15,4,4,14,67,19,19,1],[10,15,15,14,14,14,67,19,19,1],[9,15,15,14,17,14,67,19,19,1],[9,15,15,14,18,14,67,19,19,1],[10,15,15,14,14,14,67,19,19,1],[0,15,15,4,4,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[10,0,0,15,15,14,67,19,19,1]],[[10,15,15,17,17,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[0,15,15,4,4,14,67,19,19,1],[10,15,15,14,14,14,67,19,19,1],[8,15,15,14,17,14,67,19,19,1],[8,15,15,14,18,14,67,19,19,1],[10,15,15,14,14,14,67,19,19,1],[0,15,15,4,4,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[10,15,15,17,17,14,67,19,19,1]],[[10,15,15,18,17,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[0,15,15,18,4,14,67,19,19,1],[10,15,15,18,14,14,67,19,19,1],[10,15,15,18,17,14,67,19,19,1],[10,15,15,18,18,14,67,19,19,1],[10,15,15,18,14,14,67,19,19,1],[0,15,15,18,4,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[10,15,15,18,17,14,67,19,19,1]],[[10,15,15,18,17,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[5,15,15,18,4,14,67,19,19,1],[5,15,15,18,14,14,67,19,19,1],[5,15,15,18,17,14,67,19,19,1],[5,15,15,18,18,14,67,19,19,1],[5,15,15,18,14,14,67,19,19,1],[5,15,15,18,4,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[10,15,15,18,17,14,67,19,19,1]],[[10,15,15,13,13,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,4,4,14,67,19,19,0],[10,15,15,14,14,14,67,19,19,0],[10,15,15,14,17,14,67,19,19,0],[10,15,15,14,18,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,9],[10,15,15,4,4,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,13,13,14,67,19,19,0]],[[10,15,15,17,17,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,4,4,14,67,19,19,0],[10,15,15,14,14,14,67,19,19,0],[10,15,15,14,17,14,67,19,19,0],[10,15,15,14,18,14,67,19,19,0],[10,15,15,14,14,14,67,19,19,0],[10,15,15,4,4,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,17,17,14,67,19,19,0]],[[10,15,15,18,17,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[10,15,15,18,4,14,67,67,19,0],[10,15,15,18,14,14,67,67,19,0],[10,15,15,18,17,14,67,67,19,0],[10,15,15,18,18,14,67,67,19,0],[10,15,15,18,14,14,67,67,19,0],[10,15,15,18,4,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[10,15,15,18,17,14,67,67,19,0]],[[10,15,15,18,17,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[10,15,15,18,4,14,67,67,19,0],[10,15,15,18,14,14,67,67,19,0],[10,15,15,18,17,14,67,67,19,0],[10,15,15,18,18,14,67,67,19,0],[10,15,15,18,14,14,67,67,19,0],[10,15,15,18,4,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[9,15,15,15,15,14,67,67,19,0],[10,15,15,18,17,14,67,67,19,0]],[[10,15,15,13,13,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,4,4,15,14,67,19,0],[10,15,15,14,14,15,14,67,19,0],[10,15,15,14,17,15,14,67,19,0],[10,15,15,14,18,15,14,67,19,0],[10,15,15,14,14,15,14,67,19,0],[10,15,15,4,4,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,13,13,15,14,67,19,0]],[[10,15,15,17,17,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,4,4,15,14,67,19,0],[10,15,15,14,14,15,14,67,19,0],[10,15,15,14,17,15,14,67,19,0],[10,15,15,14,18,15,14,67,19,0],[10,15,15,14,14,15,14,67,19,0],[10,15,15,4,4,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,17,17,15,14,67,19,0]],[[10,15,15,18,17,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,18,4,15,14,67,19,0],[10,15,15,18,14,15,14,67,19,0],[10,15,15,18,17,15,14,67,19,0],[10,15,15,18,18,15,14,67,19,0],[10,15,15,18,14,15,14,67,19,0],[10,15,15,18,4,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,18,17,15,14,67,19,0]],[[10,15,15,18,17,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,18,4,15,14,67,19,0],[10,15,15,18,14,15,14,67,19,0],[10,15,15,18,17,15,14,67,19,0],[10,15,15,18,18,15,14,67,19,0],[10,15,15,18,14,15,14,67,19,0],[10,15,15,18,4,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,18,17,15,14,67,19,0]],[[10,15,15,13,13,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,4,4,15,14,67,19,0],[10,15,15,14,14,15,14,67,19,0],[10,15,15,14,17,15,14,67,19,0],[10,15,15,14,18,15,14,67,19,0],[10,15,15,14,14,15,14,67,19,0],[10,15,15,4,4,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[9,15,15,15,15,15,14,67,19,0],[10,15,15,13,13,15,14,67,19,0]],[[10,15,15,17,17,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[10,15,15,4,4,15,14,67,67,0],[10,15,15,14,14,15,14,67,67,0],[10,15,15,14,17,15,14,67,67,0],[10,15,15,14,18,15,14,67,67,0],[10,15,15,14,14,15,14,67,67,0],[10,15,15,4,4,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[10,15,15,17,17,15,14,67,67,0]],[[10,15,15,18,17,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[10,15,15,18,4,15,14,67,67,0],[10,15,15,18,14,15,14,67,67,0],[10,15,15,18,17,15,14,67,67,0],[10,15,15,18,18,15,14,67,67,0],[10,15,15,18,14,15,14,67,67,0],[10,15,15,18,4,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[9,15,15,15,15,15,14,67,67,0],[10,15,15,18,17,15,14,67,67,0]],[[10,15,15,18,17,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[10,15,15,18,4,15,15,14,67,0],[10,15,15,18,14,15,15,14,67,0],[10,15,15,18,17,15,15,14,67,0],[10,15,15,18,18,15,15,14,67,0],[10,15,15,18,14,15,15,14,67,0],[10,15,15,18,4,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[10,15,15,18,17,15,15,14,67,0]],[[10,15,15,13,13,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[10,15,15,4,4,15,15,14,67,0],[10,15,15,14,14,15,15,14,67,0],[10,15,15,14,17,15,15,14,67,0],[10,15,15,14,18,15,15,14,67,0],[10,15,15,14,14,15,15,14,67,0],[10,15,15,4,4,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[9,15,15,15,15,15,15,14,67,0],[10,15,15,13,13,15,15,14,67,0]],[[10,15,15,17,17,14,67,14,67,0],[9,15,15,15,15,14,67,14,67,0],[9,15,15,15,15,14,67,14,67,0],[10,15,15,4,4,14,67,14,67,0],[10,15,15,14,14,14,67,14,67,0],[10,15,15,14,17,14,67,14,67,0],[10,15,15,14,18,14,67,14,67,0],[10,15,15,14,14,14,67,14,67,0],[10,15,15,4,4,14,67,14,67,0],[9,15,15,15,15,14,67,14,67,0],[9,15,15,15,15,14,67,14,67,0],[10,15,15,17,17,14,67,14,67,0]],[[10,15,15,18,17,67,67,67,67,0],[9,15,15,15,15,67,67,67,67,0],[9,15,15,15,15,67,67,67,67,0],[10,15,15,18,4,67,67,67,67,0],[10,15,15,18,14,67,67,67,67,0],[10,15,15,18,17,67,67,67,67,0],[10,15,15,18,18,67,67,67,67,0],[10,15,15,18,14,67,67,67,67,0],[10,15,15,18,4,67,67,67,67,0],[9,15,15,15,15,67,67,67,67,0],[9,15,15,15,15,67,67,67,67,0],[10,15,15,18,17,67,67,67,67,0]],[[10,15,15,18,17,67,14,67,67,0],[9,15,15,15,15,67,14,67,67,0],[9,15,15,15,15,67,14,67,67,0],[10,15,15,18,4,67,14,67,67,0],[10,15,15,18,14,67,14,67,67,0],[10,15,15,18,17,67,14,67,67,0],[10,15,15,18,18,67,14,67,67,0],[10,15,15,18,14,67,14,67,67,0],[10,15,15,18,4,67,14,67,67,0],[9,15,15,15,15,67,14,67,67,0],[9,15,15,15,15,67,14,67,67,0],[10,15,15,18,17,67,14,67,67,0]],[[10,15,15,13,14,67,14,14,67,0],[9,15,15,15,14,67,14,14,67,0],[9,15,15,15,14,67,14,14,67,0],[10,15,15,4,14,67,14,14,67,0],[10,15,15,14,14,67,14,14,67,0],[10,15,15,14,14,67,14,14,67,0],[10,15,15,14,14,67,14,14,67,0],[10,15,15,14,14,67,14,14,67,0],[10,15,15,4,14,67,14,14,67,0],[9,15,15,15,14,67,14,14,67,0],[9,15,15,15,14,67,14,14,67,0],[10,15,15,13,14,67,14,14,67,0]],[[10,15,15,17,17,67,67,14,67,0],[9,15,15,15,15,67,67,14,67,0],[9,15,15,15,15,67,67,14,67,0],[10,15,15,4,4,67,67,14,67,0],[10,15,15,14,14,67,67,14,67,0],[10,15,15,14,17,67,67,14,67,0],[10,15,15,14,18,67,67,14,67,9],[10,15,15,14,14,67,67,14,67,9],[10,15,15,4,4,67,67,14,67,0],[9,15,15,15,15,67,67,14,67,0],[9,15,15,15,15,67,67,14,67,0],[10,15,15,17,17,67,67,14,67,0]],[[10,15,15,18,17,67,67,67,67,1],[9,15,15,15,15,67,67,67,67,1],[5,15,15,15,15,67,67,67,67,1],[5,15,15,18,4,67,67,67,67,1],[5,15,15,18,14,67,67,67,67,1],[5,15,15,18,17,67,67,67,67,1],[5,15,15,18,18,67,67,67,67,1],[5,15,15,18,14,67,67,67,67,1],[5,15,15,18,4,67,67,67,67,1],[5,15,15,15,15,67,67,67,67,1],[9,15,15,15,15,67,67,67,67,1],[10,15,15,18,17,67,67,67,67,1]],[[10,15,15,18,17,14,67,67,67,1],[9,15,15,15,15,14,67,67,67,1],[5,15,15,15,15,14,67,67,67,1],[0,15,15,18,4,14,67,67,67,1],[10,15,15,18,14,14,67,67,67,1],[10,15,15,18,17,14,67,67,67,1],[10,15,15,18,18,14,67,67,67,1],[10,15,15,18,14,14,67,67,67,1],[0,15,15,18,4,14,67,67,67,1],[5,15,15,15,15,14,67,67,67,1],[9,15,15,15,15,14,67,67,67,1],[10,15,15,18,17,14,67,67,67,1]],[[10,15,15,13,13,14,67,19,67,1],[9,15,15,15,15,14,67,19,67,1],[5,15,15,15,15,14,67,19,67,1],[0,15,15,4,4,14,67,19,67,1],[10,15,15,14,14,14,67,19,67,1],[8,15,15,14,17,14,67,19,67,1],[8,15,15,14,18,14,67,19,67,1],[10,15,15,14,14,14,67,19,67,1],[0,15,15,4,4,14,67,19,67,1],[5,15,15,15,15,14,67,19,67,1],[9,15,15,15,15,14,67,19,67,1],[10,15,15,13,13,14,67,19,67,1]],[[10,0,0,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[0,15,15,4,4,14,67,19,19,1],[10,15,15,14,14,14,67,19,19,1],[9,15,15,14,17,14,67,19,19,1],[9,15,15,14,18,14,67,19,19,1],[10,15,15,14,14,14,67,19,19,1],[0,15,15,4,4,14,67,19,19,1],[5,15,15,15,15,14,67,19,19,1],[9,15,15,15,15,14,67,19,19,1],[10,0,0,15,15,14,67,19,19,1]],[[10,15,15,13,13,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[5,15,15,15,15,14,67,19,19,0],[0,15,15,4,4,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,10],[9,15,15,14,17,14,67,19,19,9],[9,15,15,14,18,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,10],[0,15,15,4,4,14,67,19,19,9],[5,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,13,13,14,67,19,19,0]],[[10,15,15,17,17,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[5,15,15,15,15,14,67,19,19,0],[0,15,15,4,4,14,67,19,19,9],[10,15,15,14,14,14,67,19,19,10],[10,15,15,14,17,14,67,19,19,10],[10,15,15,14,18,14,67,19,19,10],[10,15,15,14,14,14,67,19,19,10],[0,15,15,4,4,14,67,19,19,9],[5,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[10,15,15,17,17,14,67,19,19,0]],[[0,15,15,15,15,14,67,19,19,0],[9,15,15,15,15,14,67,19,19,0],[9,15,15,4,4,4,4,4,19,0],[9,15,4,4,4,4,4,4,18,0],[9,4,4,14,14,14,14,4,17,0],[9,4,4,14,17,17,14,4,16,0],[9,4,4,14,18,17,14,4,16,0],[9,4,4,14,14,14,14,4,17,0],[9,15,4,4,4,4,4,4,18,0],[9,15,15,4,4,4,4,4,19,0],[9,15,15,15,15,14,67,19,19,0],[0,15,15,15,15,14,67,19,19,0]]]}
All I would suggest is making it into a 'caricature'; emphasising the contrast and details to make it clear at the smaller scales...
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Zephyris »

Zephyris wrote:
Phreeze wrote:a nice feature request would be a simple color picker
Very possible, just need some time to do it!
The latest version on the OpenTTD Coop repo now has a colour picker :) There are also a few new hidden features accessible via the javascript console:
mirrorVoxels(axis)
e.g. mirrorVoxels("y")
Mirrors the voxel data around the selected axis

slideVoxels(axis, distance)
e.g. slideVoxels("x", 8 )
Slides the voxel data along the selected axis by the selected distance

scaleVoxels(power2Scale)
e.g. scaleVoxels(2)
Scales the image by 2^power2Scale; ie. 1=2x, 2=4x, -1=1/2x, -2=1/4x
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by PikkaBird »

robo wrote:Another problem is that the resolution of the sprites is too low to create something reasonable in my opinion.
You know OpenTTD can show sprites at 4x the resolution of TTD, right? Hand-drawing extra zoom sprites would probably be very tedious, so this might be a perfect niche for the PixelTool.
User avatar
YNM
Tycoon
Tycoon
Posts: 3570
Joined: 22 Mar 2012 11:10
Location: West Java

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by YNM »

Zephyris wrote:All I would suggest is making it into a 'caricature'; emphasising the contrast and details to make it clear at the smaller scales...
Wonder why you added those blue pixels, but I have to admit, that way it's looking like as if it's a shorter version of the real thing...
YNM = yoursNotMine - Don't get it ?
「ヨーッスノットマイン」もと申します。
User avatar
robo
Route Supervisor
Route Supervisor
Posts: 398
Joined: 14 Jan 2007 12:14

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by robo »

PikkaBird wrote:
robo wrote:Another problem is that the resolution of the sprites is too low to create something reasonable in my opinion.
You know OpenTTD can show sprites at 4x the resolution of TTD, right? Hand-drawing extra zoom sprites would probably be very tedious, so this might be a perfect niche for the PixelTool.
Yes, the zoomable full-HD-resolution is the best improvement of openttd in my opinion and I think many old but good 2D-games could see a revival if the producers would care about the new HD-resolution.
The easiest way to create some good sprites in my opinion is to create the largest zoom version with 3D-software (for example sketchup), apply only the sunny colours and export the rendered 2D-image in a tool like Pixeltool which ideally automatically appliess the shadows and create the sprites for smaller resolutions.
User avatar
Phreeze
Director
Director
Posts: 514
Joined: 12 Feb 2010 14:30
Location: Luxembourg

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Phreeze »

that's largeley off-topic...


thx for the color-picker btw ;) I think you can add the "download at 1px zoom" to the stable version btw ;)
User avatar
Phreeze
Director
Director
Posts: 514
Joined: 12 Feb 2010 14:30
Location: Luxembourg

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Phreeze »

ahhh another feature request, easily feasable:
- when exporting the PNG, can you make the "white" a nonwhite 225,225,225 ? too lazy to recolor to prevent warnings ;)
Transportman
Tycoon
Tycoon
Posts: 2781
Joined: 22 Feb 2011 18:34

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Transportman »

Phreeze wrote:ahhh another feature request, easily feasable:
- when exporting the PNG, can you make the "white" a nonwhite 225,225,225 ? too lazy to recolor to prevent warnings ;)
You just should not use the pure white. If you don't use it and you get warnings, it indicates something is wrong in your code, as it then has the wrong sprite sizes.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
User avatar
Phreeze
Director
Director
Posts: 514
Joined: 12 Feb 2010 14:30
Location: Luxembourg

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Phreeze »

i am not using the pure white, and i'm using the tutorial templates which work fine, allthough around the blue from the pixeltool, there is a pure white.
I could review the code, but afaik, the sprites are well defined. I think even the non-used pixels in the sprite-PNG are "checked" for pure-white..i may be wrong...
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5601
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by PikkaBird »

Phreeze wrote:i may be wrong...
You are wrong.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Zephyris »

IIRC pixeltool excludes the pure white from its shading algorithm, so you should never get bits of the vehicle shaded to pure white unless the voxel value itself is pure white.
Transportman
Tycoon
Tycoon
Posts: 2781
Joined: 22 Feb 2011 18:34

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Transportman »

Phreeze wrote:I think even the non-used pixels in the sprite-PNG are "checked" for pure-white..i may be wrong...
They are not checked unless your code checks them, which would indicate that your code is using the wrong coordinates or sizes. And changing them to nonwhite is going to result in graphical errors in your set, without giving a warning.
Phreeze wrote:i am not using the pure white, and i'm using the tutorial templates which work fine, allthough around the blue from the pixeltool, there is a pure white.
Each graphical template needs its own corresponding code with coordinates and sizes. You can't just take the code from template A and use it for template B.

@Zephyris: Would it be possible to also display the coordinates and sizes corresponding with the dimensions?
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
User avatar
Phreeze
Director
Director
Posts: 514
Joined: 12 Feb 2010 14:30
Location: Luxembourg

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Phreeze »

i was wrong....shame on me :X must have been that copy-paste-devil ^^
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Zephyris »

Transportman wrote:@Zephyris: Would it be possible to also display the coordinates and sizes corresponding with the dimensions?
Certainly quite possible, I need a decent formula for aligning vehicle sprites automatically from 2D or 3D dimensions though... Is there one?
Transportman
Tycoon
Tycoon
Posts: 2781
Joined: 22 Feb 2011 18:34

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Transportman »

Zephyris wrote:
Transportman wrote:@Zephyris: Would it be possible to also display the coordinates and sizes corresponding with the dimensions?
Certainly quite possible, I need a decent formula for aligning vehicle sprites automatically from 2D or 3D dimensions though... Is there one?
I was just talking about coordinates and sizes of the boxes. An equation for that should be simple, as you know the location of the first box and all dimensions are known. Offsets are more difficult, if not impossible, to calculate.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
User avatar
oftcrash
Transport Coordinator
Transport Coordinator
Posts: 304
Joined: 03 Jan 2013 17:20
Location: New England, USA

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by oftcrash »

This app is a lot of fun! Perfect to mess with while I'm sitting on a conference call. I've built a couple semi trucks, a variety of trailers, my house, my VW Golf, my wife's MINI, a motorcycle, a limo, a lunar cargo rocket transport. Its like playing with Legos!

Not that I would consider anything I built particularly good, but I'm getting better. :)

Hopefully tonight I'll be able to actually get one of these into NML to play with more. I'll probably also do a little cleanup in Gimp or Photoshop if I decide to publish anything.
Truck 1
Truck 1
semi-truck1.png (2.44 KiB) Viewed 4657 times
truck 2
truck 2
semi-truck2.png (2.09 KiB) Viewed 4657 times
Flatbed trailer
Flatbed trailer
semi-trailer-flatbed-red.png (1.13 KiB) Viewed 4657 times
User avatar
Phreeze
Director
Director
Posts: 514
Joined: 12 Feb 2010 14:30
Location: Luxembourg

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Phreeze »

cool trucks :)

the pixeltool is really nice. it's a perfect base which you can modify in photoshop afterwards to correct some pixels and add lights and details.

I'll see in the next weeks if it can handle steamers ;)
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: PixelTool - Voxel-based Vehicle Editor/Renderer

Post by Zephyris »

oftcrash wrote:This app is a lot of fun!
Very nice trucks there :D Great work!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 14 guests