Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
Mesh and vertex buffer
Moderator: Support
-
- Posts: 48
- Joined: 06 Nov 2014, 15:07
Mesh and vertex buffer
Hello
Is it possible to create a mesh from scratch ? (position of vertices / indices / normal / UV)
And/or modify one ? (e.g. moving the vertices of a rectangle / giving new positions)
Could be really useful for a lot of cool stuff : "shape surface like" object, texture displacement,...
Thanks
Is it possible to create a mesh from scratch ? (position of vertices / indices / normal / UV)
And/or modify one ? (e.g. moving the vertices of a rectangle / giving new positions)
Could be really useful for a lot of cool stuff : "shape surface like" object, texture displacement,...
Thanks
Re: Mesh and vertex buffer
yes and no. You can modify stuff in the Vertex Shader. You can't create/modify meshes before rendering.
-
- Posts: 48
- Joined: 06 Nov 2014, 15:07
Re: Mesh and vertex buffer
Hi Lerou
thank you
I already use the vertex buffer but always with math functions : sin to create waves in the z axis, stuff like that.
but I can't find how to move the xy positions of the vertices of a rectangle to specific positions.
I imagine there is may be a way to calculate a transform matrix from 4 positions and multiply this matrix in the vertex shader. ???
thank you
I already use the vertex buffer but always with math functions : sin to create waves in the z axis, stuff like that.
but I can't find how to move the xy positions of the vertices of a rectangle to specific positions.
I imagine there is may be a way to calculate a transform matrix from 4 positions and multiply this matrix in the vertex shader. ???
Re: Mesh and vertex buffer
Sure, doing that all the time. Check out some of the Glare plugins in the Store
-
- Posts: 48
- Joined: 06 Nov 2014, 15:07
Re: Mesh and vertex buffer
Know your plugins : really cool !
thank you
thank you
-
- Posts: 33
- Joined: 30 Sep 2015, 10:49
Re: Mesh and vertex buffer
Right now in Ventuz there's no way to access the FBO afaik. Though normally you wouldn't want to modify the models directly anyway.
Instead, like lerou said, the normal approach would be to load your mesh, and transform it in the vertex shader using matrices. That's what modern GPUs are designed for. You let the shaders do the actual computing, and everything else makes sure that the computing is under control, i.e. load mesh, compile shaders, populate the FBO, and then feed the GPU pipelines with the FBO, where the computing actually starts to happen.
In case a mesh should be modified, artists are in charge of that. They will use their tools to create a new mesh and all you have to do is to hand the new mesh over to your shaders.
Instead, like lerou said, the normal approach would be to load your mesh, and transform it in the vertex shader using matrices. That's what modern GPUs are designed for. You let the shaders do the actual computing, and everything else makes sure that the computing is under control, i.e. load mesh, compile shaders, populate the FBO, and then feed the GPU pipelines with the FBO, where the computing actually starts to happen.
In case a mesh should be modified, artists are in charge of that. They will use their tools to create a new mesh and all you have to do is to hand the new mesh over to your shaders.
Re: Mesh and vertex buffer
That's what old GPUs were designed for Modern GPUs offer compute shaders and are designed for you to generate and modify geometry. That's the dream! However in Ventuz I'd already be happy if I could generate geometry or textures from a script, because I need that all the time for effects. Not for models though, that's really a designer's jobTVM Cracklings wrote:That's what modern GPUs are designed for.
-
- Posts: 33
- Joined: 30 Sep 2015, 10:49
Re: Mesh and vertex buffer
Excuse me, I was thinking about DX7 when talking about "modern gpu"lerou wrote:That's what old GPUs were designed for Modern GPUs offer compute shaders and are designed for you to generate and modify geometry.
To make the point clear, you were absolutely right. I was just trying to keep it as simple as possible, and I think for beginners (I'm no expert either btw.), VS+PS would probably be enough to play around for a while, till they eventually bump into the limit of this DX9 pipeline, and think, "well, I wish I could do this in my shader..." Only then can they really appreciate the coolness of those new features, and understand why they were implemented on the hardware level the way they are.
At least that's what happened to me anyway.
More on topic: I was actually thinking about a GPU based particle system in Ventuz the other day, and ... yeah. Wasn't thinking properly when I wrote about the model, I'd take that back Would indeed be nice if we could interact with the mesh loader in some way.
P.s., Does anybody have any insight as to whether a more up-to-date version of custom shader compiler will be supported in Ventuz5?
-
- Posts: 48
- Joined: 06 Nov 2014, 15:07
Re: Mesh and vertex buffer
Hi there
Happy of this cool discussion.
I'm actually struggling to find the right way to manage this "GPU spread".
I thought to an array of float4x4 but can't figure if the shader allow that. ?
I've already find a way to edit live the 4 vertices of a simple rectangle (a dynamic shape surface).
I have to find the way for a more complex grid (tesselation 16x16) to have correct UV mapping. I think I will look for an "homography transformation matrix". Does that exist ?
thanks
Lerou said
Happy of this cool discussion.
I'm actually struggling to find the right way to manage this "GPU spread".
I thought to an array of float4x4 but can't figure if the shader allow that. ?
I've already find a way to edit live the 4 vertices of a simple rectangle (a dynamic shape surface).
I have to find the way for a more complex grid (tesselation 16x16) to have correct UV mapping. I think I will look for an "homography transformation matrix". Does that exist ?
thanks
Lerou said
Like++However in Ventuz I'd already be happy if I could generate geometry or textures from a script, because I need that all the time for effects. Not for models though, that's really a designer's job