Forum Replies Created
-
AuthorPosts
-
Ivan LyubovnikovStaff
Hi,
Can you provide a test file with both textures to reproduce the issue?
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffIf you need to add proper playback controls to your scene, then it will require some coding, since such feature is not implemented in puzzles.
Basically, in order to control playback of a video texture you need to create your own custom UI elements. There’s an example of something like that (although not a 3d scene, just a regular html page): https://jsfiddle.net/wqr7S/4/
So in theory, you can make the code form that example work with a video texture in a 3d scene.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffI’ve stumbled on another problem – when the height reaches a certain point (controlled by a morph value – shape key) this one face on the front gets all strange, as per the photo.
Oh, yeah, this one of the limitations of shape keys. We should probably add information about that in the manual.
The reason the face looks weird is because a certain shape key when fully applied turns some faces inside out and verge3d doens’t handle this case well. The “diagonal.frame” object has a couple shape keys like that (heightOpen and moveDownOpen):
The solution is to rework these shape keys, for example heightOpen can be changed to this:
– this way there’s no faces turned inside out anymore. There is a drawback though – the shape key now affects the mesh to a lesser extent than before. It means that in order to acheive the same shape with this new shape key you need to use larger values (more than 1) in puzzles, i.e. if you change a shape key to be 3 times smaller then you can just multiply the morph factor by 3 right before using it in “set morph factor” puzzles.Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffThanks for the link!
It turned out that something is wrong with that object’s material (“CoverFinish”), particularly with the “unitDiffuse” node:
If you set the node’s “Blend” parameter to anything but zero it fixes the issue. It’s probably an edge case and we’ll look into that. For now you can just set “Blend” to 0.001 and it should work.
Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
Do you mean playing video files via audio/video puzzles?
And about the video player function you mentioned: do you mean usual video playback controls?
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
It looks like a bug with the normals/lighting. Can you provide a link to the scene?
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
Here’s an example of such puzzle setup:
Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffWhich version of Verge3D do you have? That helper was added just recently in Verge3D 3.7 pre4.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi, it’s in the Verge3D subcategory. See here: https://www.soft8soft.com/docs/manual/en/max/Lighting-and-Rendering.html#light_probes
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffStrange, it’s not showing up. Here is a zip of the file
Thanks for the test file! We’ve managed to reproduce this bug and we will fix it in the next verge3d update.
Co-founder and lead developer at Soft8Soft.
2021-04-13 at 8:56 am in reply to: MultiLine never works for me (Verge3D for Max Version: 3.6.1) #40122Ivan LyubovnikovStaffHi, I couldn’t reproduce the bug with the multiline puzzle. Can you show us what that error exactly looks like or maybe a link to your app?
Co-founder and lead developer at Soft8Soft.
2021-04-13 at 8:41 am in reply to: Uncaught (in promise) TypeError: Cannot read property ‘slice’ of null at v3d #40121Ivan LyubovnikovStaffHi, can you share a link to your application?
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
You should use the application’s main camera for that, it’s available from the application instance as
app.camera
. Also, theproject
method returns coordinates in range of [-1, 1]. You can convert them to screen pixels like this:myVec3.project(app.camera); var width = app.getWidth(); var height = app.getHeight(); var x = (0.5 + myVec3.x / 2) * width; var y = (0.5 - myVec3.y / 2) * height;
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
There’s no particular example of something like you described, but it’s not very difficult to implement. If you already have the buttons and the iframes on the page, then you can use the “onclick” and “set prop” puzzles as follows:
– basically here you listen to the “click” event and when it happens you set the “src” attribute of your iframe to some page address, which will reload the iframe content.
Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi sirhc,
Touch speed is affected by a different property
rotateSpeedTouch
. So you also need to add this line:app.controls.rotateSpeedTouch *= -1;
Co-founder and lead developer at Soft8Soft.
-
AuthorPosts