Forum Replies Created
-
AuthorPosts
-
core3dCustomer
Wow, that’s so cool.
core3dCustomeryes i was figured out, thanks anyway
core3dCustomerYou can check yourself, i tried with chrome, opera, firefox and also via vpn.
no firewall and no proxy.https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:1e5e88da2e/applications/pointerlock/pointerlock.html
core3dCustomerYes it’s works thank you.
core3dCustomeri found the problematic object and isolated it. Scene file in attachment.
Looks like OSL map cause the problem, deleted and remaking it solved this.core3dCustomerOK, nevemind, i figure it out. :)
core3dCustomerIts all in your html file. You can change them.
<!DOCTYPE html> <!-- __V3D_PUZZLES__ - enable Puzzles button in the App Manager --> <!-- __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated --> <html lang="en"> <head> <title>Verge3D Web Interactive</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <!-- Search Engines --> <meta name="description" content="Interactive 3D Web application made with Verge3D. Immerse yourself in amazing graphics experience offered by state-of-the WebGL and HTML5 technologies."> <!-- Twitter --> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="Verge3D Web Interactive"> <meta name="twitter:description" content="Interactive 3D Web application made with Verge3D. Immerse yourself in amazing graphics experience offered by state-of-the WebGL and HTML5 technologies."> <meta name="twitter:image:src" content="https://cdn.soft8soft.com/images/player_socials.jpg"> <!-- Open Graph --> <meta property="og:title" content="Verge3D Web Interactive"> <meta property="og:description" content="Interactive 3D Web application made with Verge3D. Immerse yourself in amazing graphics experience offered by state-of-the WebGL and HTML5 technologies."> <meta property="og:image" content="https://cdn.soft8soft.com/images/player_socials.jpg"> <meta property="og:type" content="website"> <meta name="generator" content="Verge3D 3.2.0">
core3dCustomerblocked because of a disallowed MIME type (“text/html”)
i think this is python server config related.
there should be ` if (request.url.endsWith(‘.js’)) {
response.writeHeader(200, {
‘Content-Type’: ‘application/javascript’
})
}` on server config… i didn’t look, i’m just assumingcore3dCustomerThis is great! Thank you
core3dCustomerHere:
Edit: sorry i misread your post, you want explanation…core3dCustomerunfortunately same error… “Uncaught ReferenceError: Lensflare is not defined”
using this: lensflare.jscore3dCustomerWhen i remove it i get: “Uncaught ReferenceError: Lensflare is not defined” error.
core3dCustomerI already tried that but still same error…
<script src="v3d.js"></script> <script src="myapp.js"></script> <script src="Lensflare.js"></script>
then i add this:
function runCode(app) { // add your code here, e.g. console.log('Hello, World!'); import { Lensflare, LensflareElement } from 'Lensflare.js'; var textureLoader = new v3d.TextureLoader(); var lensflare = new Lensflare(); var textureFlare0 = textureLoader.load('textures/lensflare/lensflare0.png'); var textureFlare3 = textureLoader.load('textures/lensflare/lensflare3.png'); addLight(0.55, 0.9, 0.5, 5000, 0, - 1000); addLight(0.08, 0.8, 0.5, 0, 0, - 1000); addLight(0.995, 0.5, 0.9, 5000, 5000, - 1000); function addLight(h, s, l, x, y, z) { var light = new v3d.PointLight(0xffffff, 1.5, 2000); light.color.setHSL(h, s, l); light.position.set(x, y, z); lensflare.addElement(new LensflareElement(textureFlare0, 700, 0, light.color)); lensflare.addElement(new LensflareElement(textureFlare3, 60, 0.6)); lensflare.addElement(new LensflareElement(textureFlare3, 70, 0.7)); lensflare.addElement(new LensflareElement(textureFlare3, 120, 0.9)); lensflare.addElement(new LensflareElement(textureFlare3, 70, 1)); light.add(lensflare); }
run code section can recognize another js file?
core3dCustomerI also found a 5 year old article about this. I can’t get it work though but he blend css3d with three.js renderer succesfully.
Embedding webpages in a 3D Three.js scene
and yes we really need this type of features in puzzles…2020-07-19 at 10:27 am in reply to: Any users want to share combined verge3D with code examples 3d? #30346core3dCustomeri really would like to know how to add terrain raycast this one… and this one; instancing performance
-
AuthorPosts