Forum Replies Created
-
AuthorPosts
-
core3d
CustomerWow, that’s so cool.
core3d
Customeryes i was figured out, thanks anyway
core3d
CustomerYou 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
core3d
CustomerYes it’s works thank you.
core3d
Customeri found the problematic object and isolated it. Scene file in attachment.
Looks like OSL map cause the problem, deleted and remaking it solved this.core3d
CustomerOK, nevemind, i figure it out. :)
core3d
CustomerIts 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">
core3d
Customerblocked 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 assumingcore3d
CustomerThis is great! Thank you
core3d
CustomerHere:
Edit: sorry i misread your post, you want explanation…core3d
Customerunfortunately same error… “Uncaught ReferenceError: Lensflare is not defined”
using this: lensflare.jscore3d
CustomerWhen i remove it i get: “Uncaught ReferenceError: Lensflare is not defined” error.
core3d
CustomerI 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?
core3d
CustomerI 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? #30346core3d
Customeri really would like to know how to add terrain raycast this one… and this one; instancing performance
-
AuthorPosts