From MAYA to VRML to JAVA 3D
I am doing a project at University whereby I am creating a virtual village. I am creating the buildings etc. using the MAYA package and then exporting the buildings (individually) into VRML.
I am unclear as to how I then get my models from VRML into JAVA 3D. Any help/suggestions welcome!
Mazz
[319 byte] By [
Mazz] at [2007-9-26 1:30:31]

Hi!
I will not be able to help you out but I am working on similar sort of Virtual world (Still working on it or its in the initial stage). But mine is different in the sense that my objects are iteractive like If some one changes color or changes the size, the other clients would be able to see the changes.
I was wondering what is the advantage of using Maya or likes and then using it in Java 3D. Since your topic relates So I thought we could exchange some ideas.
Javed
Hello
Basically, I'm just using polygon planes and cubes to create buildings. Each building is being built as a separate MAYA program.
I have created a 2D map and the plan is to embed each individual model into an individual web page using JAVA. The user should then be able to click on a location on the 2D map and be taken to the web page with that building in it.
However, i have no idea how to embed 3D models into web pages!! MAYA is a good modelling package to use as it's quite versatile.
I'm unclear at the moment as to how I'm going to use JAVA 3D but it's been suggested by my supervisor as it's supposed to provide lots of interaction.
What is your project? What approach are you using? Are you using MAYA, JAVA 3D etc.?
M.
Mazz at 2007-6-29 1:28:42 >

You can load your geometry into Java3D using the different geometry loaders. A list is available at http://www.j3d.org/utilities/loaders.html
Among others, there are loaders for .obj, .wrl, .3ds, and .dxf files. Just export your models into one of those formats and use the loaders to load them into Java3D scenes.
By the way, if you are new to Java3D I recommend that you read Sun's Java3D tutorial as well as some of the information on the Java3D collateral page.
http://java.sun.com/products/java-media/3D/collateral/
B.D.
Just post the vrml objects. No need to create an entire applet. The user can just click on the vrml link and the vrml object will be displayed in the web browser.
The problem is that I need to be able to interact with the model once it is on the web site. ie if the user clicks on the door of a model, it should jump to (via a hyperlink) another web page with a model of the inside of the same building. The VRML browser doesn't seem to let you do this.
Mazz
Mazz at 2007-6-29 1:28:42 >

in fact, VRML itself is very rich and allows you to add interaction ('sensors') and linking to other VRML files. maybe MAYA does not support these features when exporting to VRML, so you would have to code this by yourself.
I've been reading up on touch sensors in VRML as per your suggestion. Do you know if it's possible to include hyperlinks within VRML? For example my Church model has a foundation stone with the name of the founder on it. i would like to be able to show the founders name as a hyperlink so that when the user clicks on the name they will be taken to a web site containing information about the founder. I would like to know if this is possible as I have not found anything about it in the tutorials as yet.
Also is it possible to write code in VRML that will override the normal navigation mode? I should like to be able to specify the starting point that the user will be at when opening the model (ie by the front door) and also write code to enable the user to use the mouse to navigate the area (ie mouse pushed forward, user appears to move forward in the room etc.) Is this poosible in VRML coding? Do you know where I might find good tutorials to assist with either of these issues?
Thanks, Mazz.
Mazz at 2007-6-29 1:28:42 >

http://www.vapourtech.com/vrmlguide.Floppies tutorial on VRML is excellent except for his scripting chapter.All you have to do is define a camera postion for each location that you want to change and have the sensor call that defined location.
Hello,I am working on a collaborative support tool.In my applet, I use Vrml97.jar as a loader to load my VRML model from the server.My applet can be initialized,but my VRML loader is unvisiable.How can I do?Thank you!
Hello,I am working on a collaborative support tool.In my applet, I use Vrml97.jar as a loader to load my VRML model from the server.My applet can be initialized,but my VRML model is unvisiable.How can I do?Thank you!
I have that problem too. When the applet,which contain Vrml scene,is loaded in the HTML file,the following error
"exception:access denied: java.lang.RunTime exitVM" occurred......how can I solve it?
Also, I would like to know how can I loaded the URL eg.www.java.sun.com in the browser after clicking certain scene in the applet?
ShanC at 2007-6-29 1:28:42 >
