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.

Code Examples Integration

Home Forums Puzzles Code Examples Integration

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47193
    grimmy
    Customer

    Hi, how would I go about intergrating some of the code examples (https://github.com/Soft8Soft/verge3d-code-examples/) into my puzzles? Is there an easy way?

    I’ve tried creating my own Javascript block and simply pasting in code but there are so many errors (‘BufferGeometryUtils is not defined’…but then again I ‘Cannot use import statement outside a module .. etc) that I have no idea where to start in un picking through the issues.

    The examples are largely useless if there is no way to easily get them into V3D and test and modify them myself.

    At this moment I’m really looking to be able to play with things like shaders and real time manipulation of materials and vertices and some o the example seem to be a good start for this, if only I could get them to actually run.

    Any ideas? Thanks

    CHeers

    #47218
    GLiFTeK
    Customer

    Hi,
    Your post reminds me of me about two years ago, starting my Verge 3D journey! :good:

    My first suggestion is to read up on the javascript exec puzzle, and how to transfer your puzzle values into your exec puzzle script by using [VARS].

    Then I’d suggest understanding the namespace for “app” for your scene and renderer etc that verge uses (very important)

    Also, bookmark and study the developers page.

    Merely cutting and pasting example code into exec puzzles won’t work, you have to implement and adapt your code according to the puzzle framework.

    Join the discord channel in my profile links to view more discussions on the subject!

    Good luck!
    :good: :good: :good:

    #47228

    We might need to write some Wiki article on that matter… :scratch:

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #48561
    AVerge3Der
    Participant

    I agree, this is a good idea. We want new users to not only join us, but stay with us. :yes:

    #52915
    barman126
    Participant

    i need this tks :heart:

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