Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default projection in the render script #5584

Open
britzl opened this issue Feb 23, 2021 · 2 comments
Open

Change default projection in the render script #5584

britzl opened this issue Feb 23, 2021 · 2 comments
Labels
breaking change Issue introducing a breaking change camera engine Issues related to the Defold engine feature request A suggestion for a new feature render

Comments

@britzl
Copy link
Contributor

britzl commented Feb 23, 2021

The default stretch projection is rarely the best choice. We should change this for new projects.

To not break old games one idea would be to update the template projects to use a new .render file.

Perhaps add

  • stretch.render_script
  • fixed.render_script
  • fixed_fit.render_script
  • perspective.render_script / 3d.render_script (or simply render both 2d and 3d, see below)

Other things to consider:

  • Letterboxing
  • Screen to world
  • Render meshes and models
@britzl britzl created this issue from a note in 1.2.181 (To do) Feb 23, 2021
@britzl britzl added feature request A suggestion for a new feature render labels Feb 23, 2021
@realstudent
Copy link

My separate proposition If you planing to update template projects in near future
#5592

@gianmichelemariani
Copy link
Sponsor

I like the idea of having separate render scripts depending on the feature. That creates an easier entry point for newcomer and an introduction to the render scripts itself.
I guess of the other things to consider is the screen to world conversion. That is always something people bang their head on at first.
I was planning to do a video tutorial on this but I'll wait till the new features are implemented.

@britzl britzl added this to To do in 1.2.182 via automation Mar 29, 2021
@britzl britzl removed this from To do in 1.2.181 Mar 29, 2021
@britzl britzl removed this from To do in 1.2.182 Apr 19, 2021
@britzl britzl added this to Discuss in Issue Review Jul 21, 2021
@AGulev AGulev added camera breaking change Issue introducing a breaking change labels Dec 12, 2023
@AGulev AGulev added the engine Issues related to the Defold engine label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Issue introducing a breaking change camera engine Issues related to the Defold engine feature request A suggestion for a new feature render
Projects
Development

No branches or pull requests

4 participants