The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to embed 3D files on my html pages?
calmabubbasst
post Oct 23 2023, 04:08 AM
Post #1


Member
***

Group: Members
Posts: 45
Joined: 20-July 22
Member No.: 28,449



Hi folks,
here I am again with my strange questions,
today I would like to insert 3D models into my html pages.

I've read several pages and seen several solutions, but each one gives me complex problems or doesn't work at all.

With this code I can view the "Deer.x3d" file (the sample file found with the code) but I can't see my "h146.x3d" test file ...

Could you tell me why I can't just copy the code and replace my 3D model with deer.x3d?

Can you suggest me another method to embed my 3d file into an html page?


CODE

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>My first X3DOM page</title>
    <script type='text/javascript' src='https://www.x3dom.org/download/x3dom.js'> </script>


</head>
<body>
<h1>Using the Inline Node</h1>

<p>
    This example includes an external x3d scene. You can even manipulate its content during runtime.
</p>
<x3d width='500px' height='500px'>
    <scene>
            <viewpoint position="-1.9 1.7 -2.8" orientation="0.04 0.9 0.1 3.7"></viewpoint>
            <Inline nameSpaceName="Deer" mapDEFToID="true"
                    onclick='redNose();' url="https://doc.x3dom.org/tutorials/models/inline/Deer.x3d" />
    </scene>
</x3d>

<p>
    This example includes an external x3d scene. You can even manipulate its content during runtime.
</p>
<x3d width='500px' height='500px'>
    <scene>
            <viewpoint position="-1.9 1.7 -2.8" orientation="0.04 0.9 0.1 3.7"></viewpoint>
            <Inline nameSpaceName="De5er" mapDEFToID="true"
                    url="http://www.nastri-trasportatori.com/3D/h146.x3d" />
    </scene>
</x3d>

</body>
</html>


IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
calmabubbasst
post Oct 30 2023, 10:21 AM
Post #2


Member
***

Group: Members
Posts: 45
Joined: 20-July 22
Member No.: 28,449



Hi @coothead, tnx to your help i've got this
https://www.nastri-trasportatori.com/3dmd/test33.html

instead i dont understand whats wrong to my files ... I've transleted it from .stp to .glb with online translator, so i dont know how to check coding ..

As i tell you, the strange things it's that in my win10 explorer, that files runs good ...

here my 3D files videos https://streamable.com/wzqv0d
<iframe src="https://streamable.com/e/wzqv0d" width="560" height="277" frameborder="0" allowfullscreen></iframe>

Maybe you are able to suggest me how to check coding and fix - ora how to embedd others 3D format files?

Many thanks for your support and patience smile.gif

This post has been edited by calmabubbasst: Oct 30 2023, 10:23 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 9th May 2024 - 03:21 PM