help with vrml code

They have: 5,633 posts

Joined: Jan 1970

I am just getting started in VMRL and I want to play around a bit.
I have a box (see attached code) and I want to put a white strip down the center of the box like it was painted on. How can I do this?

#VRML V2.0 utf8
Group {
children
[
Shape
{
appearance Appearance
{
material Material
{
diffuseColor 0.3 0.4 0.6
}
}
geometry Box
{
size 10.0 0.3 6.0
}
}
]
}

Thanks

He has: 9 posts

Joined: Sep 2004

Hey, sorry I don't have an answer for you, but I do have a question. Why are you playing around with VRML? The language is pretty dead isn't it? I mean, take up Flash or something--it can pump out the same results, if not better. Obviously VRML is pretty washed up given the amount of people who've responded to this question...

mk

He has: 1,758 posts

Joined: Jul 2002

VRML was just a bit of a fad. I've never seen anything created with it that was worth viewing. Most people use flash or shockwave for 3d interfaces n stuff nowadays. Unfortunatly you won't find many people with generalised knowledge about VRML. You'd be better to find a specialist VRML site/forum.

Sorry I couldn't help!

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.