• I tried to create a gallery with the flying car object as a sample, I can see the car in the preview (eyeball) for the gallery in the plugin UI, but when I paste the shortcode into a page, nothing appears. But I noticed all of my other tools that use charts.js via CFF plugin (calculated fields forms) were broken. So by deactivating the threepress plugin my calculated fields all re-appeared. I suspect there is some kind of js conflict going on between CFF and Threepress. But when I deactivated the CFF plugin, I cannot get the Threepress gallery shortcode to render anything after several attempts. I wonder if there is any further guidance you could offer? I will try this also on another website (where I will also deactivate the CFF I am running there also). I’m keen to get this working as I’d like to start scripting some parametrically-editable js polyhedra, but I can’t even get the canvas or the sample object to render yet :/ Thanks in advance. Andy

    • This topic was modified 9 months, 2 weeks ago by andyro.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author kerryoco

    (@kerryoco)

    Hmm, I’ll have to check that out. That could very well be a WP.com limitation. Threepress is coded to ‘unlock’ glb uploads which hasn’t been an issue on any self-hosted I’ve been aware of, but I wouldn’t be surprised if the WP.com servers forbid that. I’ll make a note to check it; got to step away for a bit now though.

    Thread Starter andyro

    (@andyro)

    No it’s good – I just had to add the model from your UI (+) not from the general media uploader…https://openbuilding.ca/tools/threepress-test/ – success so far. I just can’t get the model converter I was using to capture textures, transparencies, etc. yet: https://products.aspose.app/3d/conversion/obj-to-glb – might need to find some different converters/formats/authoring tools. Being faithful to the geometry/math is important ultimately.

    • This reply was modified 9 months, 1 week ago by andyro.
    Plugin Author kerryoco

    (@kerryoco)

    Blender is best for exports yea. Latest versions have glb convert / export built in, and I’m not an expert on the various settings, but most material export settings are available in the export dialogue.

    For the parameters, you probably want this mini library. It’s the same you saw earlier – “dat.gui”.

    You make “a GUI”, “a folder”, and then when you tag / add the properties in they become available automatically as inputs if I remember correctly.

    Plugin Author kerryoco

    (@kerryoco)

    Your galleries on the Threepress page will be in the global THREEPRESS.galleries array. To access your model you have to get a little creative, but you can dig around in the console until you find it.

    It will be something like:

    var my_model = THREEPRESS.galleries[0].SCENE.children[0]
    Thread Starter andyro

    (@andyro)

    Thanks, the GUI is beyond my abilities. But I’d like to try it somehow anyways. Is it possible to over-write or otherwise upload my own HDRI backgrounds? My scenes all look a little dark and I’m not sure if that’s the gallery settings or my object settings. I maxxed lighting. In this example file over at three.js: https://threejs.org/examples/#webgl_materials_envmaps – they use the same bridge HDRI but it is much brighter than what I am trying here: https://openbuilding.ca/tools/threepress-test/

    Plugin Author kerryoco

    (@kerryoco)

    Sorry it’s probably an issue with the Threepress HDRI implementation; it was never completed as fully as it should have been. You can implement your own using the same method that you would add your own GUI, but if you check out the docs for HDRI in threejs you’ll see it’s very finnicky to get right.

    The GUI is a little easier. I was planning at some point to allow custom js adds, but in the meantime, you can use a plugin like Header Footer Scripts to inject your own. First add that CDN link to the dat.gui script. And then also add a script of your own. If you can, find another way to test, even if it’s just running the script in the console, to make it go faster. If you get the dat.gui included on your site, I could even do a sample of the rest on your page probably.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Plugin Conflict’ is closed to new replies.