My first project with Verge 3D.

Home Forums Projects My first project with Verge 3D.

Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #24563
    3dguima3dguima
    Newbie

    My first project with Verge 3D.
    https://3dguima.github.io/3d-Interativo/
    A little help …
    Any tutorial on creating a button that turns the sound on and off?
    I managed to create to play the audio, but I can’t do it like giving a stop.
    Thanks.

    • This topic was modified 2 weeks, 4 days ago by 3dguima3dguima.
    #24566
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    a nice start!

    Any tutorial on creating a button that turns the sound on and off?

    see the Teapot Heater demo in your Verge3D distribution where such the button exists

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #24571
    3dguima3dguima
    Newbie

    Thanks Yuri!
    I will study the code.
    One observation is that the presentations are too heavy for me, I don’t understand why.

    #24626
    AndrejusAndrejus
    Newbie

    Very nice :good:

    #24663
    3dguima3dguima
    Newbie

    Hello @yuri!
    I opened the Teapot Heater project but it is very complex for me at the moment. Excuse me.
    If you have any other tips in a simpler video or project I would appreciate it.
    Thanks for everything.

    #24675
    Yuri KovelenovYuri Kovelenov
    Developer

    Sure!

    The most simple way is to just have 2 3D objects which will serve as buttons for playing and pausing the sound.

    A more advanced way is to use just 1 object which will pause/resume playing the sound upon repeated clicks, as described here.

    Finally, you can use an HTML button to do the same.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #24689
    3dguima3dguima
    Newbie

    “The most simple way is to just have 2 3D objects which will serve as buttons for playing and pausing the sound.”
    – I will see and study!

    “A more advanced way is to use just 1 object which will pause/resume playing the sound upon repeated clicks, as described here.”
    – I had already achieved this effect. I will visit the link and study to see if I did the same or if there is a better way.

    “Finally, you can use an HTML button to do the same.”
    – I will also visit to study and try to learn.

    Thank you, thank you, thank you.
    🍻

    #24758
    3dguima3dguima
    Newbie

    Thank you @Andrejus! :)

    #24795
    3dguima3dguima
    Newbie

    A doubt and a help please …
    I understood how to create the system with “PLAY and PAUSE” for music (audio).
    I didn’t find or understand how to create “PLAY and STOP”, where the music stops with the “STOP” button and starts from the beginning if the “PLAY” button is pressed again.

    #24796

    Hi,

    I didn’t find or understand how to create “PLAY and STOP”, where the music stops with the “STOP” button and starts from the beginning if the “PLAY” button is pressed again.

    If you are using puzzles for playing/pausing audio, then you can also utilize the “rewind sound” puzzle: https://www.soft8soft.com/docs/manual/en/puzzles/Sound.html#rewind_sound
    A combination of “pause sound” and “rewind sound” puzzles will make the audio play from the start next time you use “play sound”.

    Co-founder and lead developer at Soft8Soft.

    #24844
    3dguima3dguima
    Newbie

    Hi, @ivan!
    That was what I was trying to understand.
    I’m not a programmer, I just try to get some code success so I’m sorry for the question if it’s not correct …
    Wouldn’t a specific stop function, such as the play and stop functions, be simpler?
    Thank you for your help.

    #24862

    I’m not a programmer, I just try to get some code success so I’m sorry for the question if it’s not correct …

    Sure, the question is fine, we also have a dedicated forum section for feature requests if you’d like to point out some missing features: Bug Reports and Feature Requests.

    Wouldn’t a specific stop function, such as the play and stop functions, be simpler?

    Yes, it’s definitely simpler. I’m not sure that we’ll add it in the near future, but this can ease the learning curve. Thanks for the suggestion!

    Co-founder and lead developer at Soft8Soft.

    #24941
    AvatarAl Sande
    Licensee

    Hi, @3dguima..

    I use a simple puzzle and a couple of objects to control the sound. I did a screenshot where you can see the puzzle as well as the sound controls I made in Blender… This plays “tunes.mp3” in the application directory folder (or whatever your filename is).

    I’ve made a couple a bit more complex but with this same logic – but this has all of the basics.

    I’ve attached the image. I hope this helps.

    Al

    • This reply was modified 6 days, 1 hour ago by AvatarAl Sande.
    Attachments:
    You must be logged in to view attached files.
    #24964
    3dguima3dguima
    Newbie

    Hi, @al-sande!

    I ill see.
    Thank you!

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.