PDA

View Full Version : VRML 1.0 texture import problem


Larry Edwards
4th February 2004, 10:33 PM
Hello,

I'm trying to import a VRML 1.0 model that has a texture file reference in it, i.e.:

Texture2 { filename "/home/ledwards/foo.jpg" }

The model geometry loads fine but I don't see any texture on import. Also, if I then export there is no texture reference in the file. I've tried both JPEGs and SGI rgb format, I can't get either to work.

I've also tried to load a VRML 1.0 file with an embedded texture, i.e.:

Texture2 { image 0x00 0x01 ... 0x12 }

and I see the status messages:

Importing VRML1 file
Assembling AC3D structure...

and then ac3d hangs. Is there a way to make this work (I have "Output VRML textures" turned on in the Files Settings).

I'm using a dual Xeon cpu Dell Precision 650, with an NVIDIA Quadro FX 3000 graphics board. AC3D prints out the following on startup:

OpenGL 1.4.0 NVIDIA 44.96 by NVIDIA Corporation, renderer: Quadro FX 3000/AGP/SSE2

I'm using the evaluation version of AC3D... if this can be done, you'll have one very happy new customer.

Thanks!

-Larry

Larry Edwards
4th February 2004, 10:49 PM
I just found the Objext Texture menu item and tried loading the texture manually as a separate step. That did cause a change in color, but still no texture.. probably the texture coordinate mapping is wrong, but I couldn't seem to make any change that produced a correct result.

I forgot to mention one thing, the object being loaded is an indexed face set... a terrain mesh.

Thanks for any help,

-Larry

Andy
5th February 2004, 12:25 PM
Hi Larry,

You need the jpeg plugin in order to load a jpeg texture (and use of plugins requires an AC3D licence).

If you change your texture to a .gif (or rgb), then edit the name in the vrml file, it should be OK.

Inline textures are not supported but it shouldn't hang - thanks for reporting that.

Andy

Larry Edwards
5th February 2004, 02:53 PM
Hi Andy,

Actually .rgb was the first thing I tried. I just tried .gif and still no luck. I checked again to make sure that texture is turned on in the Ortho and 3d menus, and it was.

I also tried exporting to VRML1 (also tried VRML2) and no texture shows up in the file.

Anything else I should try?

Thanks!

-Larry

Andy
6th February 2004, 05:48 PM
Larry,

I looked and found a problem in the VRML parser - it means that 4.0 doesn't load textures.

I've fixed this for the next release. If you need me to convert any of your VRML files into AC3D format, let me know.

Andy