Closed chenzeh closed 1 month ago
Since I don't know what your code does, here some things to check:
vao_points_.setVertexAttribute(0, bufPoints_, 4, AttributeType::FLOAT, false, sizeof(glow::vec4), nullptr);
As I said, I can only give general advice here.
I hope that it worked out; anyway, if you have further questions, please reopen the issue.
Hi @jbehley , thanks you for your great work. Thank you for providing me suggestions on another issue post, and I understand you are currently verrrrrry busy. I am working on customize your finest work to visualize the RGB information on viewer, and I have the new data with RGB. I start to make some code change but faced a lot of problem, hope you and anyone who also see this post can give me some hints. I start with change the code in KittiReader.cpp and store RGB info, and I also follow the similar way that how vertex information(x,y,z) transport to Shader, main change in Viewport.cpp, I put data into memory "bufTempRGBs.assign(points[t]->RGBs);" such as you did to points: "bufTempPoints.assign(points[t]->points);", and follow the similar path to send RGB info to draw_points.vert. but it seems not working, I checked the data before it assigned to GlBuffer(data exist and all correct at this step), so I assume it has something wrong with transport the data into buffer or get the data from buffer to the shader, but cannot figure out what exactly the issue is. Do anyone else face the similar issue before, or do anyone also tried to add RGB info to this tool. I am looking forward to see your great ideas, thank you.