Go Back   AC3D Forums > General > AC3D General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 16th June 2008, 02:27 PM   #1
David Fisher
Junior Member
Member
 
Join Date: Oct 2003
Posts: 10
Question vrml texture does not display

I'm having to export my ac objects to vrml, when I open the vrml file using Cosmoplayer there is no texture displayed just the solid.

I have used both small sized jpg and bmp images with 8 char file name lengths mapped to the object using the Texture Editor. The file name is embedded correctly in the vrml file.

Anybody have any ideas on how to get the texture to display in vrml?
David Fisher is offline   Reply With Quote
Old 16th June 2008, 03:50 PM   #2
Klyde
Senior Member
Professional user
 
Klyde's Avatar
 
Join Date: Mar 2008
Location: USA
Posts: 227
Default Re: vrml texture does not display

Is the refrence to the texture and the location of the actual texture the same. In translating it into vrml, the editor or vrml viewer, sometimes assumes that the texture is in the same directory as the .wrl and remember vrml can not use some formats, in fact I think vrml is limited to jpeg, PNG, and maybe GIF(I know some GIF don't work in some VRML viewrs/editors. Am not fmilliar with Cosmo, I use VrmlPad.)
__________________
VR is the future, The future is NOW!!.

Last edited by Klyde; 16th June 2008 at 03:52 PM.
Klyde is offline   Reply With Quote
Old 16th June 2008, 04:08 PM   #3
David Fisher
Junior Member
Member
 
Join Date: Oct 2003
Posts: 10
Default Re: vrml texture does not display

this is the opening sequence to the vrml before it starts into the point coordinates and the reference is to the file location:


#VRML V2.0 utf8

Group {
children [

# Object "block"
Shape {
appearance Appearance {
texture ImageTexture { url "C:/astroarchaeology/THE_PAPER/Sites/tiraghoil/tirahoil.bmp" }
textureTransform TextureTransform {
}
material Material {
diffuseColor 1 1 1
specularColor 0.2 0.2 0.2
emissiveColor 0 0 0
shininess 1.000000
transparency 0.000000
}
}
David Fisher is offline   Reply With Quote
Old 16th June 2008, 04:11 PM   #4
Klyde
Senior Member
Professional user
 
Klyde's Avatar
 
Join Date: Mar 2008
Location: USA
Posts: 227
Default Re: vrml texture does not display

VRML 2.0 does not support the use of .bmp format. .jpg, .png, and some .gif change the texture to one of these. I use .jpg unless I need the texture to have the transpaency trait then I use .png
__________________
VR is the future, The future is NOW!!.
Klyde is offline   Reply With Quote
Old 16th June 2008, 04:29 PM   #5
David Fisher
Junior Member
Member
 
Join Date: Oct 2003
Posts: 10
Default Re: vrml texture does not display

I've also tried it with a jpg file still no texture
David Fisher is offline   Reply With Quote
Old 16th June 2008, 05:00 PM   #6
Klyde
Senior Member
Professional user
 
Klyde's Avatar
 
Join Date: Mar 2008
Location: USA
Posts: 227
Default Re: vrml texture does not display

Your:
textureTransform TextureTransform {
}
needs a:
scale

example:
textureTransform TextureTransform {
scale 5 5
rotation 0.78
}
__________________
VR is the future, The future is NOW!!.

Last edited by Klyde; 16th June 2008 at 05:04 PM.
Klyde is offline   Reply With Quote
Old 16th June 2008, 05:22 PM   #7
David Fisher
Junior Member
Member
 
Join Date: Oct 2003
Posts: 10
Default Re: vrml texture does not display

if it needs the scale and rotation elements, then this is something that is missing from the AC3D export plugin.

but dispite that, any idea on how I can determine what the scale and rotation values should be?

I tried the examples you gave but still no texture
David Fisher is offline   Reply With Quote
Old 16th June 2008, 05:37 PM   #8
Klyde
Senior Member
Professional user
 
Klyde's Avatar
 
Join Date: Mar 2008
Location: USA
Posts: 227
Default Re: vrml texture does not display

Can you send me the file and the texture, I will put it n Vrmlpad and see if I can figure out the problem. I am sure that it is not the fault of ac3d as I use it all the time and have no problems.
__________________
VR is the future, The future is NOW!!.
Klyde is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 10:52 AM.


AC3D Forum
(C) Inivis Limited 2020