This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > February 2004 > newer then new
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| pacific 2004-02-23, 2:31 pm |
| Hi,
The next months I'm going to do nothing else than 3d-programming and designing but right now I dont know nothing but making some 3D-models in 3dsMax.
My first assignment (on a univ in belgium) is to make a shop-environment to evaluate the color of a product.
Herefor it must be possible to change the color of the product online.
Is this possible with VRML or X3D?
I'm allready following this forum for a week and I'm very thankfull for the the information about the players and the editors and other advices.
Thx, P. | |
|
|
"pacific" <pacific.123j8r@mail.forum4designers.com> wrote in message
news:pacific.123j8r@mail.forum4designers.com...
>
> Hi,
>
> The next months I'm going to do nothing else than 3d-programming and
> designing but right now I dont know nothing but making some 3D-models
> in 3dsMax.
> My first assignment (on a univ in belgium) is to make a
> shop-environment to evaluate the color of a product.
> Herefor it must be possible to change the color of the product online.
> Is this possible with VRML or X3D?
>
> I'm allready following this forum for a week and I'm very thankfull for
> the the information about the players and the editors and other
> advices.
>
> Thx, P.
>
>
>
> --
> pacific
> ------------------------------------------------------------------------
> Posted via http://www.forum4designers.com
> ------------------------------------------------------------------------
> View this thread: http://www.forum4designers.com/message49603.html
>
Yup, an object can change with basic VMRL coding skills. A quick search in
google located this page.
http://www.epcomm.com/cybertown/mall/colorChange.htm
Should gie you a good head start...
--
James
turajbNOSPAM@hoflink.com
(Remove NOSPAM When Emailing)
| |
| Joerg Scheurich aka MUFTI 2004-02-24, 8:29 am |
| >> Herefor it must be possible to change the color of the product online.[color=darkred]
Sure. In simplest case with a slider like in the following file
(you may need 3 sliders for red/green/blue).
But be warned: Matching colors on the monitor to colors in real world is
rather impossible, at least difficult.
You company could bankrupt from "not the color i ordered" complains 8-(
People using computers to build printed catalogues use advanced
monitor calibration devices.
The biggest difference in color depends from the usage of a CRT or
LED monitor....
#VRML V2.0 utf8
Transform
{
children
[
Shape
{
appearance Appearance
{
material DEF Material1 Material
{
}
}
geometry Sphere
{
}
}
]
translation 0 1.811223 0
}
DEF Transform1 Transform
{
children
[
Shape
{
appearance Appearance
{
material Material
{
diffuseColor 1 7.843137e-2 3.137255e-2
}
}
geometry Box
{
size 0.500000 0.500000 0.500000
}
}
DEF PlaneSensor1 PlaneSensor
{
}
]
}
ROUTE PlaneSensor1.translation_changed TO Transform1.set_translation
DEF Script1 Script
{
eventIn SFVec3f vec3f1_in
eventOut SFColor color1_out
url
[
"java script:
// eventOut SFColor color1_out //
function vec3f1_in(value)
{
// value SFVec3f
if ((value.x >= 0) && (value.x <= 1))
if ((value.y >= 0) && (value.y <= 1))
color1_out = new SFColor(value.x, value.y, 1);
}
"
]
}
ROUTE PlaneSensor1.translation_changed TO Script1.vec3f1_in
ROUTE Script1.color1_out TO Material1.set_emissiveColor
Transform
{
children
[
Shape
{
appearance Appearance
{
material Material
{
diffuseColor 1 7.843137e-2 3.137255e-2
}
}
geometry Text
{
string
[
"drag the box around"
]
}
}
]
scale 0.500000 0.500000 0.500000
translation -2.273106 -0.883187 0
}
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|