CameraObscura
CameraObscura
CameraObscura brings the photography and painting in your Minecraft world.
What is photography and paintings?
Photographs and paintings are... map items that contains an image on it. Image can be based on player skin (photo), on picture file uploaded to server, or... image based on a pixel-art created using colored wool.
Video
Features
- Creating photo using photo camera (three types of photo: full-size, top-half, face)
- Creating photo using tripod-camera (Camera Obscura :)) Economy supported (player must pay for picture)
- Creating picture using png-image ploaded to the server
- Creating picture using pixel-art created with colored wool
- Copy-protection for maps used as pictures
- Picture owners features: limit of pictures per owner, copy protection, ability to change owner of picture.
- Remove picture and re-use map with same id for future pictures
- Crafting recipes for photo camera, photo paper. Creating tripod-camera without any commands.
Why do I want it?
If you need to bring additional fun to your server.... Hell, no! If you have a server you need CameraOscura! :)
How to use it?
- Install
- Configure plugin (edit the config.yml file)
- Upload some backgrounds (recommended size 128x128), upload pictures.
- Start server and made a picture!
How to make a picture?
- Photo camera. You can create a photo camera (by default it's a watch item with data equal to 1: you can use "camera" to make a pictures, but you can not use watch to make a picture) and photo paper (by default photo-paper is a paper sheet with data equal to 1: you cannot use regular paper to create pictures). Click any player with a camera. One sheet of paper will be removed from your inventory and picture (map) will be given to you.
- Camera obscura (tripod camera). You must build a tripod camera. Place fence, note block on the top of it, and... camera at the side of note block. Than take a photo paper and click to button (camera lens). Note: Both cameras supported three types of photos defined by distance from camera to player: head photo, top-half photo, full length photo. All photos are printed on the background. Backgrounds are png-images uploaded to specified folder (/CameraObscura/backgrounds/). Camera obscura can be configured to use any predefined background.
- Create photo of any player (even offline player) using commands. Hold one sheet of photo paper in hand and type commands: /photo head <player name>, /photo top <player name>, * /photo full <player name>
- Create a picture based on image file. You need to upload image (only png-file supported now) to /CameraObscura/images/ folder and type /photo image <image name>
- Create a picture based on colored wool pixel-art, You need to create a picture using colored wool. Type /photo brush to enable brush mode. Left clicking with brush (feather item) will select 1st point (top left!), right clicking will select 2nd point (bottom right). Type command:
- /photo paint <picture_name> to create a picture resized to 128x128
- /photo paint center <picture_name> to create a picture and place it at center of the map. Picture will not be resized so it could be too little... Note: you can repaint previously created picture using command /photo repaint {center} <picture_name> (don't forget to hold in hand picture that you need to repaint)
How to create camera set it on the tripod?
There's some recipes
Commands
You can check help in game using command /photo help or find command list here
Permissions
All permissions listed here
Configuration
You can configure plugin only by editing config.yml file.
bStats and update checker
CameraObscura includes two features that use your server internet connection. First one is bStats, using to collect information about plugin (plugin version, amount of servers, etc.) and second is update checker (required to find newer version of CameraObscura at dev.bukkit.org). If you don't like this features you can easy disable it. To disable update checker you need to set parameter "enabled" to "false" in bStats/config.yml.
Support my work
@dalphi
After performing some test at my local machine and at our server I cannot reproduce: all recipes works fine.
May be you using any recipe control plugin, that could block CameraObscura's recipes? Is there any error in server.log?
Everything seems to work fine, except the recipes.
My config.yml is here: http://pastebin.com/hDSfKgA6
@dalphi
Great! I will create FAQ section and describe this "solution" there :)
@fromgate
Thank you, that works. I apologize for jumping to the conclusion that the is plugin defective:)
@dalphi Sometime spent in google: http://stackoverflow.com/questions/5402735/using-java-awt-library-in-linux-x11-issue
Can you try to enable headless mode, like described in that page?
@fromgate
Can you see if on the Linux server if the plugin works when the $DISPLAY shell variable is not set?
The line in the error report: at sun.awt.X11.XToolkit.<init>(XToolkit.java:362)
indicates it's attempting to do something with the Linux X11 Display, which it can't do when the DISPLAY variable is not set. I've had this problem on all plugins that attempt to manipulate an image.
@Mortalsinn
my second plan is to create a custom upload box on my website linked to the /image file directory on my server so they can upload their 128x128 photos and then use /photo image while holding the paper.
Nice idea. I think I can add a support for player-bounded folders for image locations.
@Mortalsinn
Ok, I'll create a separated permission. One thing I planning to - support for HD Skins.
@dalphi
Hello, thank you for report.
Strange I created it at windows, but we use at linux server. MCStats shows that most of plugin users using Linux and Java 7: http://mcstats.org/plugin/CameraObscura
Now I have no idea what is reason of your bug, but I will think about it. If I find a solution, I will inform you.
Does this not work on headless Linux servers? I have sun java 1.7.0_11.
I get this when trying to generate a photo, and the server is hung: http://pastebin.com/DzyMvY6L
I think so because I don't want my users to have access to /photo head, /photo top, /photo full
Basically I want them to have the usage of the camera / photo paper crafting / usage - which they do now
my second plan is to create a custom upload box on my website linked to the /image file directory on my server so they can upload their 128x128 photos and then use /photo image while holding the paper.
If they have access to /photo top, head, full sure that still makes the paper useful but kinda nukes the purpose for the camera regarding self shots
@Mortalsinn
Now this permission is: camera-obscura.photo
Hmm... May be it will be better to made a different permission for this command?
What is the permission for /photo image [file name] ?
v0.1.2/3
@simplify3
:) Nice! You know you can use random backgrounds. Just upload some 128x128 png-pictures to your CameraObscura/backgrounds/ folder and set "default-background: random" in config.yml :)
Ok, not that /photo is popular BUT over 1900+ photo have been taken. Here is de-duped gallery of 700+ unique photos taken with Camera Obscura on ken.ignorelist.com - Ken's Server: http://alturl.com/uzdjz
VERY popular plugin.
@Abnormal_Zombie
Name will be change, but data (or durability) will not changed. Simple paper is: PAPER:0 Photo paper (by default) is: PAPER:1
This is the coolest plugin ever.
EDIT: What would happen if a player were to rename paper to photo paper using an anvil?
@TommyBoy566
yes, CameraObscura will work with cb1.4.7-r1.
Does this work on Bukkit 1.4.7 r1.0?