FSIC Messageboard
  Tech Talk
  VRML, OPS, AC3D, and very CONFUSED!

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   VRML, OPS, AC3D, and very CONFUSED!
Jaguar
Pilot
posted 06-06- 08:38 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
ok, I hoping sombody can clear all this up for me. I would like to use the VRML format to take a model from AC3D to OPS. Now there are 3 versions of VRML that AC3D can export: VRML1, VRML 2, and VRML 2 with proto. I am using the last version of Hippie's AC3D plugins, but I don't think he has touched the VRML import/export codes.
I can export and import fine with VRML 1 in AC3D.
With VRML 2, I can't import anything I export with it because it just messes up the program when I try.
With VRML 2 with proto, When I try to import the exported file, nothing is imported and it says: importing VRML1 file FAILED.
I know AC3D exported something into the VRML 2 files, cause the files are around 40Kb. I'm thinking the VRML 2 files are corrupted by AC3D's export function though...... anyways, when I try to import any of the 3 files into OPS I get the following screen:

There is nothing for me to select to import. I do name the object in the little name box before exporting in AC3D. I'm wodering, does OPS not handle the VRML 1 format that AC3D exoprts? or is something wrong with the way AC3D exports VRML 1 files?

Thanks for your help!


oh yeah, I'm using OPS v B1.3.0
------------------
Cheers!
Jaguar
The FS Hangar

[This message has been edited by Jaguar (edited 06-06-2000).]

IP: Logged

Bryan Russell
Pilot
posted 06-06- 08:51 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
The OPS plugin supports VRML97 which is VRML 2.0. Well at least it supports the stuff I've been able to test.

The "VRML.FFP : Error on line..." messages mean there is a syntax error in the file, which means either a incorrectly formed VRML97 file of the file isn't VRML97.

Mail me the files and I can have a look. I should be able to tell if its VRML97 or not by looking at it.

IP: Logged

Jaguar
Pilot
posted 06-06- 08:55 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
Sent. Thanks!

IP: Logged

Hippie
Pilot
posted 06-06- 09:23 PM     Click Here to See the Profile for Hippie     Edit/Delete Message   Reply w/Quote
One thought, if you used the .OL import
in AC3D, I store matrices in the object
URL fields, the VRML export will try and
save these as actual URLS in the VRML file,
since they are not valid URLs this may
cause problems.

Is it better to build a full model
in AC3D, use .OL export and build
a .SM to load into OPS?


Hippie.

IP: Logged

Bryan Russell
Pilot
posted 06-06- 09:26 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
OK there are two new things I will need to add support for for VRML2 and VRMLProto (VRML1 just isn't suported at the moment).

In the meantime you could try and add some transformations to the objects in AC3D so that it might force a 'Transform' node to be written out, which is what OPS is expecting.

Here's the gory technical details if you want them. It might help to pre-check some VRML file you have trouble with.

OPS is expecting the following for VRML2 files:

code:

DEF <objectname> Transform {
translation x y z
rotation x y z a

children [
Shape {
appearance Appearance {
material Material {
diffuseColor r g b
transparency a
}
texture ImageTexture {
url "tex_name"
}
}

geometry DEF <objectname>-FACES IndexedFaceSet {
coord DEF <objectname>-COORD Coordinate { point [...]}
coordIndex [...]
texCoord DEF <objectname>-TEXCOORD TextureCoordinate { point [...]}
texCoordIndex [...]
}
}
]
}

I can't remeber if the current version needs the DEF for the co-ordinate and face set definitions or not but I will make sure the next one doesn't.

------------------


[This message has been edited by Bryan Russell (edited 06-06-2000).]

IP: Logged

Hippie
Pilot
posted 06-06- 09:38 PM     Click Here to See the Profile for Hippie     Edit/Delete Message   Reply w/Quote
BTW AC3D doesn't have a VRML 2.0 importer!
It can only import VRML 1.0.


Hippie

IP: Logged

Hippie
Pilot
posted 06-06- 09:50 PM     Click Here to See the Profile for Hippie     Edit/Delete Message   Reply w/Quote
AC3D doesn't have any concept of an objects
rotation, I have to keep track of that
myself in the .OL import/export and rotate
plugins. Don't think AC3D will ever output
that rotation x y z a stuff in a VRML file.

Hippie

IP: Logged

Bryan Russell
Pilot
posted 06-06- 11:13 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
Does it have a concept of translation? If not then it is probably a good idea to stick with OL export/compile as you have suggested.

Probably an idea anyway as without the rotation stuff the VRML plugin really adds no more functionality.

Jag: If you just want individual meshes to import you could just use the LOD format as I have (or at least think I have) fixed up OPS's LOD plugin.

I'll do the VRML fixes anyway since they shouldn't be too hard.

IP: Logged

Jaguar
Pilot
posted 06-07- 02:55 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
I tried exporting lods from AC3D (with hippie's new tools) then importing them into OPS, but the object gets all messed up. (I'll grab a screen shot for you). So I went back a few versions of hippie's tools, but the lod just won't import into the new beta of OPS. OPS just crashes.

Thats the reason I was hoping to use VRML. I was under the impression that it was better than the LOD format.

At times like this I wish I was a programmer!

Thanks again guys!
Jaguar

IP: Logged

Jaguar
Pilot
posted 06-07- 08:01 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
Ok, this is what the file looks like when importing it onto the aft section of the lanc.

I tried importing some other LOD files but they get scrambled just like this one.... I think it might be something with the LOD import code in OPS.

IP: Logged

Snickers
Pilot
posted 06-07- 10:40 PM     Click Here to See the Profile for Snickers   Click Here to Email Snickers     Edit/Delete Message   Reply w/Quote
Cool! That airframe must be ultrastable, non stallable etc etc.. heck with what you were trying to build, Go with it!!!

------------------
Snickers
=FC=

IP: Logged

Jaguar
Pilot
posted 06-08- 08:33 PM     Click Here to See the Profile for Jaguar   Click Here to Email Jaguar     Edit/Delete Message   Reply w/Quote
LOL! ok Snickers, but you Texture Map the beast!

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c