# VRML Loader and "uv" attributes

**URL:** <https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914>\
**Category:** Questions\
**Tags:** uv, vrml-loader\
**Created:** [June 16, 2023, 1:50pm UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914 "2023-06-16T13:50:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![winnip\_fr](https://avatars.discourse-cdn.com/v4/letter/w/c67d28/32.png) [@winnip\_fr](https://discourse.threejs.org/u/winnip_fr)\
**Post date:** [June 16, 2023, 1:50pm UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914/1 "2023-06-16T13:50:43Z")

</div>

Hi,

when I use the vrml loader of threejs in the geometry attributes there is no “uv” attributes that I need to use another module:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/b/3/b361b13499d6005f30b4313d7eaab8eee3df3c23.png)

Is there a way to calculate theses attributes, after the import?  
Thanks.

Nota: If I use a version of three.js \> 140, I get this error while importing my vrml

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/d/b/dba8975291c9fe30f59fe5402e17d900d5f16a21.png)

Do I use wrongly the importer or is it a bug?

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [June 16, 2023, 1:57pm UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914/2 "2023-06-16T13:57:38Z")

</div>

UVs involve a lot of artistic choices, it’d be difficult to generate good ones automatically. Usually people use software like Blender (search for something like “Blender UV unwrapping tutorial”) and then export to formats like glTF. Trying to use the VRML format with modern modeling tools may be difficult.

---

<div class="post-metadata">

**Author:** ![winnip\_fr](https://avatars.discourse-cdn.com/v4/letter/w/c67d28/32.png) [@winnip\_fr](https://discourse.threejs.org/u/winnip_fr)\
**Post date:** [June 16, 2023, 2:06pm UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914/3 "2023-06-16T14:06:17Z")

</div>

Thanks for the reply.  
Unfortunately I can’t change the object format my customer provides… It is VRML.  
Isn’t exist a value meaning “do nothing”? like fill with ones, or zero?  
What will be the size of this attribute? the number of vertex? triangles or something else?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 16, 2023, 3:42pm UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914/4 "2023-06-16T15:42:53Z")

</div>

> [@winnip\_fr](#):
>
> Nota: If I use a version of three.js \> 140, I get this error while importing my vrml

Do you mind sharing a VRML file that triggers the error?

---

<div class="post-metadata">

**Author:** ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)\
**Post date:** [June 18, 2023, 5:22pm UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914/5 "2023-06-18T17:22:42Z")

</div>

> Isn’t exist a value meaning “do nothing”? like fill with ones, or zero?  
> What will be the size of this attribute? the number of vertex? triangles or something else?

If another module requires UVs, then I don’t think filling in empty UVs is going to fix much. Maybe you can share more detail here?

---

<div class="post-metadata">

**Author:** ![winnip\_fr](https://avatars.discourse-cdn.com/v4/letter/w/c67d28/32.png) [@winnip\_fr](https://discourse.threejs.org/u/winnip_fr)\
**Post date:** [June 19, 2023, 7:38am UTC](https://discourse.threejs.org/t/vrml-loader-and-uv-attributes/52914/7 "2023-06-19T07:38:14Z")

</div>

Sure,

You can find it here:

> **["Test Vrml" (TestVRML.wrl) is available for download](https://www.transfernow.net/en/dltransfer?utm_source=20230619fJfzv0gl&utm_medium=BPsFHiYv)**
>
> Click to download the transfer "Test Vrml" (1 files, 14.5 KB) with TransferNow
