How to add specular map,bump map and colour texture in one object using x3d?

user2676909

I want to find a way to add specular map and bump map on a object,but after I read the documantation of vrml97 and x3d ,I can not find any method.

Traian

In order to add color/light to an object you can use Appearance node:

Appearance { 
  exposedField SFNode material          NULL
  exposedField SFNode texture           NULL
  exposedField SFNode textureTransform  NULL
}

The material field can be a Material node:

Material { 
  exposedField SFFloat ambientIntensity  0.2         # [0,1]
  exposedField SFColor diffuseColor      0.8 0.8 0.8 # [0,1]
  exposedField SFColor emissiveColor     0 0 0       # [0,1]
  exposedField SFFloat shininess         0.2         # [0,1]
  exposedField SFColor specularColor     0 0 0       # [0,1]
  exposedField SFFloat transparency      0           # [0,1]
}

Or, if you want to add texture to your object you can use texture or textureTransform fields.

You can find all you need on web3d.org.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to use more then one value using map

How to add Map<String, string> into Map<String, List<Object>> in java

How to convert a Map of Map to Map of Object using Stream

Change Highmaps map colour

Colour polygons of a map in R?

How to properly map a 2D image texture to an icosphere

How to add/mutate a Map object in MutableAggregationBuffer in UDAF?

How can I add a glossiness / specular texture to a GLTF model?

Flatten 3D object to create a template for a 2D texture map

How to add custom property of object using .map

Jumbled Texture output when using D3D11_MAPPED_SUBRESOURCE and Map/Unmap

How can I map an Object into another one?

How to bind texture just to one object in OpenGLES?

List Add Map Object

React Native How do I add an object in an array using the map?

R heatmap - how to get uniform colour map?

x3d texture filtering mode

Colour certain map tiles

D3 heat map - Colour scale only showing one colour

Array to image with colour map

How to get the "x" element in React JS while using the map object

How to map one object with nested list to list of objects using Automapper or LINQ?

How to add to std::map an object with constant field?

How to set object value one by one in into text field using map function in reactjs

How to add a property to my object using a map

How to add to an object keys and values of a Map as properties?

How to add elements in an object while traversing through an array using map?

How to Map nested Object in using a map in react

How to convert and map javascript object to a proper one