x3dom

Issue with “blocky” model in x3dom

梦想的初衷 提交于 2021-01-29 02:01:59
问题 I am trying to use a 3d Studio Max model with x3dom. I did not create the model nor do I know much about 3d rendering/animation. The image on the left shows the rending of the model from 3d Studio Max. The image on the right shows the same model inside of x3dom. link to image I started off with a .3ds, a .max, and a .wrl file. I converted all three of these to .x3d. Each one gave the same results. I am new to x3dom, but it seems pretty straightforward as far as displaying pre-made models. Is

Issue with “blocky” model in x3dom

一世执手 提交于 2021-01-29 01:59:12
问题 I am trying to use a 3d Studio Max model with x3dom. I did not create the model nor do I know much about 3d rendering/animation. The image on the left shows the rending of the model from 3d Studio Max. The image on the right shows the same model inside of x3dom. link to image I started off with a .3ds, a .max, and a .wrl file. I converted all three of these to .x3d. Each one gave the same results. I am new to x3dom, but it seems pretty straightforward as far as displaying pre-made models. Is

viewing a X3DOM file locally

丶灬走出姿态 提交于 2020-06-29 04:38:28
问题 I am running Linux Mint 17.1 (Rebecca) on my Dell 4x Intel(R) Core(TM) i3-5005U CPU. I have done X3D in a viewer in the past, but am now try to do X3DOM in a Google Chrome v42 browser. I can, for example display examples.x3dom.org/example/x3dom_helloWorld.xhtml from x3dom.org website. But when I copy locally to my machine and try to view I get "XMLHttpRequest cannot load file:///home/andrewmneiderer/src/Web3D/X3DOM/x3dom.swf. Cross origin requests are only supported for protocol schemes: http

viewing a X3DOM file locally

丶灬走出姿态 提交于 2020-06-29 04:38:11
问题 I am running Linux Mint 17.1 (Rebecca) on my Dell 4x Intel(R) Core(TM) i3-5005U CPU. I have done X3D in a viewer in the past, but am now try to do X3DOM in a Google Chrome v42 browser. I can, for example display examples.x3dom.org/example/x3dom_helloWorld.xhtml from x3dom.org website. But when I copy locally to my machine and try to view I get "XMLHttpRequest cannot load file:///home/andrewmneiderer/src/Web3D/X3DOM/x3dom.swf. Cross origin requests are only supported for protocol schemes: http

How can I trigger JavaScript in a VRML Anchor—is it possible to use an Event Listener?

 ̄綄美尐妖づ 提交于 2020-02-26 00:53:49
问题 I'm using the X_ITE javascript-WebGL library to display a legacy VRML project in modern browsers. Anchors in the VRML code currently open HTML files in separate windows (on the same domain) like this: Anchor { url "javascript: window.open('./data/583.html' other_stuff…)" description etc.… } or by calling a function and passing the relevant argument: url "javascript: showInfo('583')" Both produce CORS errors, which I can get around by simply opening the URL: url "data/583.html" However,

Adding an IndexedLineSet in X3Dom

爷,独闯天下 提交于 2019-12-25 09:24:30
问题 When working with X3D via X3Dom, sometimes I'd like to add objects dynamically. As an example, I might have a function like the following to add a line: function add_line(lineString) { var lineString = lineString || random_line(); var orbit = $("<shape></shape>"); scene.append(orbit); var indexedLineSet = $("<IndexedLineSet></IndexedLineSet>"); orbit.append(indexedLineSet).attr('coordIndex', '0 1'); var coordinate = $("<coordinate></coordinate>"); coordinate.attr('point', lineString);

unable to color faces using indexedfaceSet in x3dom

时光怂恿深爱的人放手 提交于 2019-12-24 05:26:36
问题 I am looking for a way to display some meshes with color mapping in Chrome browser, so I have tried x3dom and indexedFaceSet . I assume there is a way to assign colors to vertices so that the color of the face is interpolated or at least I should be able to assign different constant color to each face. It seems that no matter what I try, I can only display lines of the faces and defined colors have no effect. Currently, I have this html code: <html> <head> <script type='text/javascript' src=

VRML to X3D Conversion

◇◆丶佛笑我妖孽 提交于 2019-12-03 12:30:26
问题 I'm working on a web application that manages VRML files. I also want to let users see the uploaded files, without requiring a specific plug-in or player. X3DOM allows viewing X3D files without plug-ins on most browsers, so I'd like to use it. Alas, it works on X3D files, and not VRML files. I need to convert VRML files to the X3D format. The same people behind X3DOM released a package called InstantReality that has a utility that converts VRML to X3D. However, I'd much rather not use an

VRML to X3D Conversion

折月煮酒 提交于 2019-12-03 03:43:00
I'm working on a web application that manages VRML files. I also want to let users see the uploaded files, without requiring a specific plug-in or player. X3DOM allows viewing X3D files without plug-ins on most browsers, so I'd like to use it. Alas, it works on X3D files, and not VRML files. I need to convert VRML files to the X3D format. The same people behind X3DOM released a package called InstantReality that has a utility that converts VRML to X3D. However, I'd much rather not use an external utility (I'm not even sure I'm allowed to use it on a commercial environment, I couldn't find its

Bouncing Ball. Making it slow down at peak of height

自闭症网瘾萝莉.ら 提交于 2019-11-27 09:54:12
I have created a bouncing ball animation in x3d. I am just curious how I could make the ball slow down at the peak of its height to make it look more realistic. Thank you in advance. <X3D profile="interactive"> <Scene> <Background skyColor='0.5 0.5 1'/> <Transform DEF="Ball" translation="0 1 0" > <TouchSensor DEF="Touch"/> <Shape> <Appearance> <Material diffuseColor="1 0 0 "/> </Appearance> <Sphere radius='1'/> </Shape> </Transform> <TimeTrigger DEF="Trigger"/> <TimeSensor DEF="Clock" loop="false" cycleInterval="5" /> <PositionInterpolator DEF="Position" key="0.0 0.5 1.0" keyValue="0 1 0 0 5 0