Giter Site home page Giter Site logo

Comments (7)

BabylonJSGuide avatar BabylonJSGuide commented on July 25, 2024 1

Thank you for bringing the dead links to our notice. Without users bringing them to our notice they are easily missed. The links are to an external website that no longer appears to be available and they will have to be recreated and stored internally. It does give users a choice of using CreateScreenshot or PrtScr so IMHO it remains but needs new images.

from olddocumentationsite.

deltakosh avatar deltakosh commented on July 25, 2024 1

Agree with @BabylonJSGuide
Do not under estimate what people may need. We are not all skilled developers like you

from olddocumentationsite.

fabsharp avatar fabsharp commented on July 25, 2024

Do I have to use existing Render_Scene_on_a_PNG.md ? There are some dead links and - no offense - but it's not very helpfull :p .

from olddocumentationsite.

fabsharp avatar fabsharp commented on July 25, 2024

@BabylonJSGuide, @deltakosh, the "not very helpfull" wasn't appropriate sorry !

from olddocumentationsite.

deltakosh avatar deltakosh commented on July 25, 2024

No worry:)

from olddocumentationsite.

BabylonJSGuide avatar BabylonJSGuide commented on July 25, 2024

Have updated the page. Depending on whether I have misunderstood how to apply CreateScreenshot or not there may be a couple of issues with the original article. These I have corrected. If I have misunderstood please let me know how the following two things can be achieved and I will correct my update and provide examples.

Original - Another cool aspect of using this feature is that you can use a non-active camera to create the screenshot, so you can produce many screenshots, without switching cameras!**
**** I cannot get different views by using an inactive camera.

  1. If you want to have a custom width and height (like 600x400) .......... implication is that you can change the aspect ratio of the image - whereas it seems to me that the rendered image is placed in its correct aspect ratio in the center of a created image of the given size.

I will leave this issue open until the above points are cleared up.

from olddocumentationsite.

sebavan avatar sebavan commented on July 25, 2024

Hello @BabylonJSGuide ,

About 1. The camera is only use to collect the desired aspect ratio. The rendered image will be the canvas itself in any case. I am suspecting it is to prevent weird artifacts on the canvas during the screenshot. Bascially rendering from a special camera needs to be addressed through the CreateScreenshotUsingRenderTarget function.

About 2. correct aspect ratio does not change but rendered image is placed in the middle of the created image.

Please, let me know if I am not clear enough.

from olddocumentationsite.

Related Issues (20)

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.