Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Pyspades map editor w/ shadow calculation

All things voxel.

Pyspades map editor w/ shadow calculation

Postby Dany0 » Sat Aug 25, 2012 6:43 pm

Without blur, heightmap -> calculate shadows outputs a colormap with shadows using Yourself's algo. Also asks for sun angle(actually, could ask for sun position too, but whatever). Focusing on something else now, feel free to integrate the feature more.

https://dl.dropbox.com/u/18131766/run%20%282%29.py
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm

Re: Pyspades map editor w/ shadow calculation

Postby Influx » Tue Aug 28, 2012 6:28 pm

I'm not sure where to save this Run.py. Does it go in the Map Editor folder? Do we save it in the dist/scripts folder? It sounds interesting and I'd love to be able to try it out.
User avatar
Influx
Member
 
Posts: 115
Joined: Thu Jan 12, 2012 11:05 pm
Location: Not France.

Re: Pyspades map editor w/ shadow calculation

Postby Dany0 » Tue Aug 28, 2012 7:43 pm

Save it in pyspades/tools/editor.

You need to compile pyspades from source. Nice avatar btw 10/10.
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm


Return to Mapping



Who is online

Users browsing this forum: No registered users and 3 guests

cron