• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Design & Development v
1 2 3 4 5 … 11 Next »
X3D / VRML import plugin

 
  • 0 Vote(s) - 0 Average
X3D / VRML import plugin

edb
Offline

Member

Posts: 135
Threads: 16
Joined: Nov 2022
#1
12-01-2022, 02:30 PM (This post was last modified: 05-28-2023, 03:20 AM by edb.)
I'm making an import plugin to complement the VRML export plugin already in Wings3D. It can import from X3D, VRML 2.0, a bit of VRML 1.0 and possibly SGI Inventor files as they are very similar to VRML 1.0 files.

Example X3D file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D version="3.0" profile="Immersive" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.0.xsd">
    <head>
        <meta name="filename" content="untitled.x3d" />
        <meta name="generator" content="Blender 2.77 (sub 0)" />
    </head>
    <Scene>
        <NavigationInfo headlight="false"
                        visibilityLimit="0.0"
                        type='"EXAMINE", "ANY"'
                        avatarSize="0.25, 1.75, 0.75"
                        />
        <Background DEF="WO_World"
                    groundColor="0.051 0.051 0.051"
                    skyColor="0.051 0.051 0.051"
                    />
        <Transform DEF="Cube_TRANSFORM"
                   translation="0.000000 0.000000 0.000000"
                   scale="1.000000 1.000000 1.000000"
                   rotation="0.000000 0.707107 0.707107 3.141593"
                   >
            <Transform DEF="Cube_ifs_TRANSFORM"
                       translation="0.000000 0.000000 0.000000"
                       scale="1.000000 1.000000 1.000000"
                       rotation="1.000000 0.000000 0.000000 0.000000"
                       >
                <Group DEF="group_ME_Cube">
                    <Shape>
                        <Appearance>
                            <Material DEF="MA_Material"
                                      diffuseColor="0.800 0.800 0.800"
                                      specularColor="0.401 0.401 0.401"
                                      emissiveColor="0.000 0.000 0.000"
                                      ambientIntensity="0.333"
                                      shininess="0.098"
                                      transparency="0.0"
                                      />
                        </Appearance>
                        <IndexedFaceSet solid="true"
                                        coordIndex="0 1 2 3 -1 4 7 6 5 -1 0 4 5 1 -1 1 5 6 2 -1 2 6 7 3 -1 4 0 3 7 -1 "
                                        >
                            <Coordinate DEF="coords_ME_Cube"
                                        point="1.000000 1.000000 -1.000000 1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 0.999999 1.000000 0.999999 -1.000001 1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 1.000000 "
                                        />
                        </IndexedFaceSet>
                    </Shape>
                </Group>
            </Transform>
        </Transform>
        <Transform DEF="Lamp_TRANSFORM"
                   translation="-4.076245 5.903862 1.005454"
                   scale="1.000000 1.000000 1.000000"
                   rotation="-0.498084 -0.762016 -0.413815 1.513875"
                   >
            <PointLight DEF="LA_Lamp"
                        ambientIntensity="0.0000"
                        color="1.0000 1.0000 1.0000"
                        intensity="0.5714"
                        radius="30.0000"
                        location="-0.0000 -0.0000 0.0000"
                        />
        </Transform>
        <Transform DEF="Camera_TRANSFORM"
                   translation="-7.481132 5.343665 -6.507640"
                   scale="1.000000 1.000000 1.000000"
                   rotation="-0.093039 -0.968741 -0.229967 2.347036"
                   >
            <Viewpoint DEF="CA_Camera"
                       centerOfRotation="0 0 0"
                       position="0.00 0.00 -0.00"
                       orientation="-0.92 0.35 0.17 0.00"
                       fieldOfView="0.858"
                       />
        </Transform>
    </Scene>
</X3D>

[Image: MbDJZ2T1_o.png]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
X3D / VRML import plugin - by edb - 12-01-2022, 02:30 PM
RE: X3D / VRML import plugin [WIP] - by micheus - 12-01-2022, 07:09 PM
RE: X3D / VRML import plugin [WIP] - by edb - 12-02-2022, 02:28 PM
RE: X3D / VRML import plugin [WIP] - by edb - 03-08-2023, 01:26 PM
RE: X3D / VRML import plugin [WIP] - by edb - 03-09-2023, 12:56 PM
RE: X3D / VRML import plugin [WIP] - by edb - 04-10-2023, 12:39 PM
RE: X3D / VRML import plugin [WIP] - by tkbd - 05-22-2023, 12:14 PM
RE: X3D / VRML import plugin [WIP] - by edb - 05-23-2023, 12:44 PM
RE: X3D / VRML import plugin [WIP] - by edb - 05-28-2023, 03:20 AM
RE: X3D / VRML import plugin - by tkbd - 05-28-2023, 04:39 AM
RE: X3D / VRML import plugin - by edb - 05-28-2023, 05:05 PM
RE: X3D / VRML import plugin - by Xavier - 10-12-2023, 06:43 PM
RE: X3D / VRML import plugin - by edb - 10-12-2023, 10:36 PM
RE: X3D / VRML import plugin - by edb - 10-18-2023, 09:11 PM
RE: X3D / VRML import plugin - by micheus - 01-20-2025, 06:20 PM
RE: X3D / VRML import plugin - by edb - 01-24-2025, 02:32 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode