RemedyBG»Forums
9 posts
formatting float array as vector 3's
Edited by ssoher on

Hi, I've recently started using RemedyBG and I have a simple question. I have an array of floats to upload vertex positions to OpenGL, at each index a component, in order. Now I want to visualize the values as a table in the watch window. Right now I'm using the below formatting, it gets the job done but it's a lot of typing. I have tried mtx1x3 with an array size next to it but it doesn't parse (even it did parse it wouldn't be correct anyways). Is there a better way to do this?

terrain.model.meshes[0].vertices, terrain.model.meshes[0].vertexCount { @idx __index; @X $; @Y terrain.model.meshes[0].vertices[__index*3+1]; @Z terrain.model.meshes[0].vertices[__index*3+2]}

Thank you.

315 posts / 1 project
None
formatting float array as vector 3's

I can't think of a shorter way than what you've written. Once custom formatters are built this should become simpler.

9 posts
formatting float array as vector 3's
Replying to x13pixels (#30065)

It's okay, just wanted to make sure I wasn't doing something stupid. I'm really enjoying the debugger so far, thank you!