Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Need help creating verticies in C# using DarkGTK.NET

Author
Message
Tom E
12
Years of Service
User Offline
Joined: 30th Mar 2011
Location:
Posted: 31st Mar 2011 04:38 Edited at: 31st Mar 2011 19:43
I have been trying to figure out how to make f.ex a cube from verticies.
I know how to make a cube from verticies. but i dont know how to make verticies in DarkGDK.Net
I cant find any info on this.. maybe its so obvious that ppl dont even mention it.
I would also like to know how to make a mesh from the verticies..

I know i can load mesh from file but i dont want that.

just to make it a litle more clear what im trying to do is

its alla this in (Processing)

beginShape(QUADS);

fill(0, 1, 1); vertex(-1, 1, 1);
fill(1, 1, 1); vertex( 1, 1, 1);
fill(1, 0, 1); vertex( 1, -1, 1);
fill(0, 0, 1); vertex(-1, -1, 1);

fill(1, 1, 1); vertex( 1, 1, 1);
fill(1, 1, 0); vertex( 1, 1, -1);
fill(1, 0, 0); vertex( 1, -1, -1);
fill(1, 0, 1); vertex( 1, -1, 1);

fill(1, 1, 0); vertex( 1, 1, -1);
fill(0, 1, 0); vertex(-1, 1, -1);
fill(0, 0, 0); vertex(-1, -1, -1);
fill(1, 0, 0); vertex( 1, -1, -1);

fill(0, 1, 0); vertex(-1, 1, -1);
fill(0, 1, 1); vertex(-1, 1, 1);
fill(0, 0, 1); vertex(-1, -1, 1);
fill(0, 0, 0); vertex(-1, -1, -1);

fill(0, 1, 0); vertex(-1, 1, -1);
fill(1, 1, 0); vertex( 1, 1, -1);
fill(1, 1, 1); vertex( 1, 1, 1);
fill(0, 1, 1); vertex(-1, 1, 1);

fill(0, 0, 0); vertex(-1, -1, -1);
fill(1, 0, 0); vertex( 1, -1, -1);
fill(1, 0, 1); vertex( 1, -1, 1);
fill(0, 0, 1); vertex(-1, -1, 1);

endShape();

makes you able to modify all points in program or create object out of only points if that makes sense

Login to post a reply

Server time is: 2024-03-29 11:13:53
Your offset time is: 2024-03-29 11:13:53