Giter VIP home page Giter VIP logo

convert360's People

Contributors

mateuszitelli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

convert360's Issues

Bug in sampling

There seems to be a bug in the sampling, see images attached.

Running the bin/convert360 script with python 3, after having installed modules dexcribed below, having placed freeglut.dll in bin folder, and modified line 187 in projector.py GLUT.glutCreateWindow(b"Render")

# Added ability to use without installing with pip install
# pip install imageio, argparse (arg parser), tqdm (smart progess meter), pyopengl
import sys, os
sys.path.append(os.path.abspath(os.path.join('..')))

import convert360

cubemap

right
top
back

down
front
left

Bad interpreter: no such file or directory.

I get the following error when running this

was@SKYNET-MASTER:/mnt/d/linux/gas/gaseous/Input/Cubemaps$ convert360 -i global_clouds_1.png -o global_clouds_cubemap.png 4096 4096
-bash: /home/was/.local/bin/convert360: /home/mateus/dev/still360/env/bin/python: bad interpreter: No such file or directory

It seems to be referencing a hard location on Mateus's computer, which ofc doesn't exist on mine.

Cannot run

Hat off! I am extremely happy to see this initiative! However I get a runtime error.

I suspect it has to do somehow with the OpenGL Shader version, but after several hours of googling and testing I cannot figure it out. Error message:


anders$ convert360 -i testin.jpg -o testout.jpg -s 300 300
Traceback (most recent call last):
File "/usr/local/bin/convert360", line 29, in
args.output_type)
File "/Users/anders/Library/Python/2.7/lib/python/site-packages/convert360/init.py", line 26, in main
with projector(output_size) as renderer:
File "/Users/anders/Library/Python/2.7/lib/python/site-packages/convert360/projector.py", line 119, in init
GL.GL_VERTEX_SHADER)
File "/Users/anders/Library/Python/2.7/lib/python/site-packages/OpenGL/GL/shaders.py", line 226, in compileShader
shaderType,
RuntimeError: ("Shader compile failure (0): ERROR: 0:2: '' : version '320' is not supported\nERROR: 0:2: '' : syntax error: #version\nERROR: 0:3: 'precision' : syntax error: syntax error\n", ['\n#version 320 es\nprecision highp float;\nlayout(location = 0) in vec3 position;\nlayout(location = 1) in vec2 texCoord;\nout vec2 texCoordOut;\nvoid main()\n{\n gl_Position = vec4(position, 1.0);\n texCoordOut = texCoord;\n} '], GL_VERTEX_SHADER)

I've tried to update to latest xcode (Version 8.3.3, 8E3004b).
I also ran: xcode-select --install
I downloaded GLview which shows this, if related:

OpenGL version: 4.1 INTEL-10.25.13
OpenCL platform: OpenCL 1.2 (Apr 4 2017 19:07:42) (FULL_PROFILE)
Metal platform: Features 1v1, 1v2
Mac OS X 10.12.5 (16F73)


Also these are the python versions if relevant. I guess this is what I get with latest xcode:

anders$ python --version
Python 2.7.10
anders$ python3 --version
Python 3.6.1


If I set the size larger than 512 * 512, the output will be corrupted.

I tried to process the following video files: 360/VR Master Series | Free Download | View On Low Waterfall with Nice City on Vimeo Download this, "UHD 4K"
However, the output video collapses as follows. Look at the screenshots.

convert360 -i in.mp4 -o out1024.mp4 -s 1024 1024

Screenshot from 2019-07-27 14-04-44
Screenshot from 2019-07-27 14-01-54

When I checked the properties of the video, the video itself is output at 3072 ร— 2048, but the contents seem to have been cut to 1536 ร— 1024.

With the default settings, it seems that the output is correct.

convert360 -i in.mp4 -o out512.mp4 -s 512 512

Screenshot from 2019-07-27 14-04-59

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.