We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Noob question regarding points_sprites example

Home Forums Puzzles Noob question regarding points_sprites example

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #35347
    sirhc
    Customer

    Hi there :bye: ,

    How would I go about implementing this point sprite example into my puzzle project??? :wacko: :unsure:

    https://cdn.soft8soft.com/demo/examples/index.html#webgl_points_sprites

    Help is much appreciated!!!

    Greets Chris

    Technical Artwork Specialist@TBL.nl

    #35367

    Hi,

    this example is code-based (you can see the sources by clicking the bottom right button). You can possibly use the exec script puzzle to run the code.

    Chief 3D Verger | LinkedIn | Twitter

    #35371
    sirhc
    Customer

    Hi Yuri,
    Tnx for the awnser…
    I tried that but it didn’t work… :-(
    My coding skills aren’t so good….

    So:
    camera = new v3d.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 2000);———> how do I use my exciting camera

    scene = new v3d.Scene();———> how do I use my exciting scene

    renderer = new v3d.WebGLRenderer();———>HHow do I convert this to my exciting scene??

    Could U be more specific what to put in the exec puzzle.??? :rose:

    tnx!!

    Technical Artwork Specialist@TBL.nl

    #35408

    if coding is a problem, then you might try it in a different way – just make transparent planes with snowflake textures that are animated using their UV coordinates. Something like this: https://cdn.soft8soft.com/demo/applications/xmas_vr/xmas_vr.html

    Chief 3D Verger | LinkedIn | Twitter

    #35415
    sirhc
    Customer

    Hi Yuri,
    I’ve seen and checked that solution…..tnx.
    I kinda wanna figure out how to implement these coding examples in pluzzle’s for the future. Not only in case of the snowflakes….
    I keep getting stuc wanna implement these example files into my projects…
    Always on the same thing: the code file’s make their own canvas camera’s en render’s:

    So:
    camera = new v3d.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 2000);———> how do I use my exciting camera

    scene = new v3d.Scene();———> how do I use my exciting scene

    renderer = new v3d.WebGLRenderer();———>HHow do I convert this to my exciting scene??
    How do I convert that to my puzzle project….
    Help is much appreciated!!!

    Technical Artwork Specialist@TBL.nl

    #35511

    yes, those examples are too low-level for just copying and pasting code. We’ll think how we can make it easier.

    Chief 3D Verger | LinkedIn | Twitter

    #35514
    sirhc
    Customer

    I’m willing to take another look myself to figure this out…
    Can U at least point me in the right direction then?…..

    Also I tried to use the execute puzzle to create buffergeometrie,….
    can’t seem to make that work either,…. :wacko:
    Is there an working example anywhere??

    Technical Artwork Specialist@TBL.nl

    #35779

    Always on the same thing: the code file’s make their own canvas camera’s en render’s:

    So:
    camera = new v3d.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 2000);———> how do I use my exciting camera

    scene = new v3d.Scene();———> how do I use my exciting scene

    renderer = new v3d.WebGLRenderer();———>HHow do I convert this to my exciting scene??
    How do I convert that to my puzzle project….

    Hi, if you want to add code from examples either into your application’s js files or into puzzles via “exec script”, then there is an “app” variable for accessing your camera, scene, etc…

    “app” is a parameter in the runCode() function (see more info here: https://www.soft8soft.com/docs/manual/en/introduction/Using-JavaScript.html#Method_2_Standard)

    Also, “app” is built-in in “exec script”:
    https://www.soft8soft.com/docs/manual/en/puzzles/Advanced.html#exec_script

    In both cases you can just use app.scene, app.camera and app.renderer to reference what is already created in your application.

    Also I tried to use the execute puzzle to create buffergeometrie,….
    can’t seem to make that work either,….
    Is there an working example anywhere??

    That shouldn’t be a problem. Can you describe what you exactly want to achieve?

    Co-founder and lead developer at Soft8Soft.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.