opengl-skyboxes-and-photoshop-tutorial

Creative commons skyboxes for use in OpenGL C++ and photoshop tutorial for how to create custom high resolution cubemap skyboxes

https://github.com/sheraadams/opengl-skyboxes-and-photoshop-tutorial

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.7%) to scientific vocabulary

Keywords

c game-development game-programming glsl graphics graphics-engine graphics-programming opengl opengl-tutorial skybox
Last synced: 6 months ago · JSON representation

Repository

Creative commons skyboxes for use in OpenGL C++ and photoshop tutorial for how to create custom high resolution cubemap skyboxes

Basic Info
Statistics
  • Stars: 18
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Topics
c game-development game-programming glsl graphics graphics-engine graphics-programming opengl opengl-tutorial skybox
Created about 3 years ago · Last pushed 10 months ago
Metadata Files
Readme Citation

README.md

About the Project

This is a repository resource loaded with high-resolution skyboxes for use with OpenGL (C++). Most of the skyboxes here are open source but are cited below for reference. Tutorials are linked below to demonstrate Photoshop's best practices for preserving detail and resolution when working with the images.

Skybox Previews

Photoshop Tutorial Links

Using OpenGL and Photoshop to make 20000 x 15000, 300 dpi resolution skyboxes in Photoshop in less than two minutes.

Other videos:

Also check out how to configure your opengl project and how to create game assets.

Tutorial Previews

Screenshot 2023-01-26 112904

Function

The skyboxes use the following C++ function to create the skybox with OpenGL. Note that left and right are horizontally reflected. Also, front and back are horizontally reflected.

cpp vector<std::string> faces { "resources/textures/space/right.jpg", // right "resources/textures/space/left.jpg", // left "resources/textures/space/top.jpg", // top "resources/textures/space/bottom.jpg", // bottom "resources/textures/space/front.jpg", // front "resources/textures/space/back.jpg", // back }; unsigned int cubemapTexture = texture.loadCubemap(faces)

XCode Usage

Open a terminal in the project directory and run the code to remove the old build folder and generate a new one with the Xcode project file.

```bash mkdir build cd build cmake -G Xcode ..

Usage: when updating the build folder, remove it first then regenerate the folder as above

rm -rf build ``` Set the working directory in Xcode using Product > Scheme > Edit Scheme > Run Debug > Options > Working Directory > (Check Set Custom) > Project directory/build.

Build and run the project.

License:

The code is based on various tutorial code from LearnOpenGL.com.

Tutorial code is Joey DeVries and licensed under the CC BY 4.0 License.

Modifications and additional contributions are Shera Adams and licensed under the Apache 2.0 License.

Proudly crafted with by Shera Adams.

Image and Media References

Check out my references here.

Proudly crafted with by Shera Adams.

Owner

  • Name: Shera Adams
  • Login: sheraadams
  • Kind: user
  • Location: Burlington, VT
  • Company: The Hoffner Group

Software Engineer / Graphics Engineer

GitHub Events

Total
  • Watch event: 3
  • Push event: 2
  • Fork event: 2
Last Year
  • Watch event: 3
  • Push event: 2
  • Fork event: 2