Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to have 2 or more index buffers when creating custom mesh with Qt 3D?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to have 2 or more index buffers when creating custom mesh with Qt 3D?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 119 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RayterexR Offline
    RayterexR Offline
    Rayterex
    wrote on last edited by
    #1

    I have two different buffers, one containing vertex coordinates and second one containing vertex normals. In most cases they are organized the same so I can use one index buffer, but is it possible to use 2 different index buffers if data is organized somehow different?

    I would like to do something like

    custom_geo.addAttribute(vtx_pos_attribute)
    custom_geo.addAttribute(vtx_pos_index_attribute)
    custom_geo.addAttribute(vtx_normal_attribute)
    custom_geo.addAttribute(vtx_normal_index_attribute)
    

    but I think that my second index attribute just overrides previous one. Anyone has any idea how to fix this?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved