Forum Replies Created
-
AuthorPosts
-
2021-02-08 at 10:02 am in reply to: how do you call the percentage variable from the init tab in exec script puzzle #38190Ivan LyubovnikovStaff
Hi,
You can use a variable to assign the percentage value to. And then in “exec script” it should be available from the built-in VARS object:
Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
From the second picture you posted it seems that your application uses an “exec script” puzzle with some custom code inside it. That code utilizes a javascript feature that is not supported in IE11: arrow functions (the part “s => s.name” on the line 998 in the picture) – that’s why it doesn’t work. You just need to rewrite the code in that “exec script” puzzle via traditional functions.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi, thanks for the report! This bug will be fixed in the next update.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
We managed to track this issue down and will make a fix in the next verge3d update. Thanks for the report!
Co-founder and lead developer at Soft8Soft.
2020-11-27 at 9:27 am in reply to: how can i convert polarAngle, aziumthalAngle, and distance to vector3. #36007Ivan LyubovnikovStaffHi,
You might find this method useful: Vector3.setFromSphericalCoords(radius, phi, theta), where phi is the polar angle and theta is aziumthal.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffi assume use that for iframe right?
Yes, you can use it in the iframe “src” attribute.
but why it’s only work on the duplicated one?.
the original one doesn’t have that index when it first uploaded. do verge only update the existing file?It should update existing files and upload newly created files as well. So, if you try to reupload the original project again, will it fix the issue or not? If index.html will still be missing, then I’d suggest to follow the advice posted here: https://www.soft8soft.com/topic/ui-problem-uploading-on-wordpress-site-via-iframe/#post-35320 – so you can see in the Blender console which exactly files from your project were uploaded and if there were any errors that could cause the issue with index.html.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffSo, does the link “index.html” not work if you click on it?
Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffIf you go to the Verge3D Network Directory in the App Manager there should be the listing of all the projects/files you’ve uploaded:
Is index.html listed there?
Attachments:
You must be logged in to view attached files.Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
the problem is when I upload, the one uploaded is the one without customization (Army.html)
Do you mean uploading to Verge3D CDN (the button with an arrow pointing upwards)?
Co-founder and lead developer at Soft8Soft.
2020-11-25 at 9:56 am in reply to: Verge3D Blender: Wire render causes other objects to lose smooth shading #35854Ivan LyubovnikovStaffHi,
Thanks for the bug report! We’ll fix this bug in the next Verge3D update. The reason why this happens is that those objects share the same material (called “White” in your test file). For now, as a workaround you can make single-user copies of such shared materials.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi Branden,
There must be a way to specify an precise color while using the Filmic view transform.
You can disable Filmic per material via js API. There’s a toneMapped material property, which needs to be set to “false”:
This is how it can be done for the “orange bullet.blend” example:
var led = app.scene.getObjectByName('led'); led.material.toneMapped = false;
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffIs anyone willing to share an example of their React wrapper component?
we’ve updated the documentation about React/Verge3D integration (https://www.soft8soft.com/docs/manual/en/programmers_guide/Integration-with-Reactjs-Vuejs.html#Verge3D_React) – the example there shows how to wrap a verge3d application with a React component
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffminor update: we’ve updated the documentation about using React/Vue with the Puzzles Editor: https://www.soft8soft.com/docs/manual/en/programmers_guide/Integration-with-Reactjs-Vuejs.html#using_the_puzzles_editor
– it’s a bit easier than the approach described in this thread here: https://www.soft8soft.com/topic/vue-js-puzzle-editor/#post-27426Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffHi,
Verge3D doesn’t do such kind of optimizations. You can surely replace or change the exported images. As long as you keep the same name there shouldn’t be any problems with that.
Co-founder and lead developer at Soft8Soft.
Ivan LyubovnikovStaffAlways 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 camerascene = 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_scriptIn both cases you can just use
app.scene
,app.camera
andapp.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.
-
AuthorPosts